Re: [RFC 0/4] dynamically allocate arch specific system vectors

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jack Steiner
Date: Thursday, September 18, 2008 - 12:10 pm

On Wed, Sep 17, 2008 at 03:15:07PM -0700, Eric W. Biederman wrote:

Functionally, it does not matter. However, if the IRQ is not a per-cpu IRQ, a
very large number of IRQs (and vectors) may be needed. The GRU requires 32 interrupt
lines on each blade. A large system can currently support up to 512 blades.

After looking thru the MSI code, we are starting to believe that we should separate
the GRU requirements from the XPC requirements. It looks like XPC can easily use
the MSI infrastructure.  XPC needs a small number of IRQs, and interrupts are typically
targeted to a single cpu. They can also be retargeted using the standard methods.

The GRU, OTOH, is more like a timer interrupt or like a co-processor interrupt.
GRU interrupts can occur on any cpu using the GRU. When interrupts do occur, all that
needs to happen is to call an interrupt handler. I'm thinking of something like
the following:

	- permanently reserve 2 system vectors in include/asm-x86/irq_vectors.h
	- in uv_system_init(), call alloc_intr_gate() to route the
	  interrupts to a function in the file containing uv_system_init().
	- initialize the GRU chipset with the vector, etc, ...
	- if an interrupt occurs and the GRU driver is NOT loaded, print
	  an error message (rate limited or one time)

	- provide a special UV hook for the GRU driver to register/deregister a
	  special callback function for GRU interrupts


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] x86_64: (NEW) Dynamically allocate arch speci ..., Eric W. Biederman, (Mon Aug 11, 12:39 pm)
Re: [PATCH] x86_64: (NEW) Dynamically allocate arch speci ..., Jeremy Fitzhardinge, (Mon Aug 11, 12:55 pm)
Re: [PATCH] x86_64: (NEW) Dynamically allocate arch speci ..., Eric W. Biederman, (Mon Aug 11, 1:10 pm)
Re: [RFC 0/4] dynamically allocate arch specific system ve ..., Dimitri Sivanich, (Wed Sep 17, 10:30 am)
Re: [RFC 0/4] dynamically allocate arch specific system ve ..., Eric W. Biederman, (Wed Sep 17, 11:59 am)
Re: [RFC 0/4] dynamically allocate arch specific system ve ..., Eric W. Biederman, (Wed Sep 17, 3:15 pm)
Re: [RFC 0/4] dynamically allocate arch specific system ve ..., Jack Steiner, (Thu Sep 18, 12:10 pm)
Re: [RFC 0/4] dynamically allocate arch specific system ve ..., Eric W. Biederman, (Thu Sep 18, 5:28 pm)