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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dean Nelson
Date: Tuesday, September 16, 2008 - 1:46 pm

On Tue, Sep 16, 2008 at 10:24:48AM +0200, Ingo Molnar wrote:

When you speak of a 'regular interrupt' I assume you are referring to simply
the irq number, with the knowledge of what vector and CPU(s) it is mapped to
being hidden?


    sgi-gru driver

The GRU is not an actual external device that is connected to an IOAPIC.
The gru is a hardware mechanism that is embedded in the node controller
(UV hub) that directly connects to the cpu socket. Any cpu (with permission)
can do direct loads and stores to the gru. Some of these stores will result
in an interrupt being sent back to the cpu that did the store.

The interrupt vector used for this interrupt is not in an IOAPIC. Instead
it must be loaded into the GRU at boot or driver initialization time.

The OS needs to route these interrupts back to the GRU driver interrupt
handler on the cpu that received the interrupt. Also, this is a performance
critical path. There should be no globally shared cachelines involved in the
routing.

The actual vector associated with the IRQ does not matter as long as it is
a relatively high priority interrupt. The vector does need to be mapped to
all of the possible CPUs in the partition. The GRU driver needs to know
vector's value, so that it can load it into the GRU.

    sgi-xp driver

The sgi-xp driver utilizes the node controller's message queue capability to
send messages from one system partition (a single SSI) to another partition.

A message queue can be configured to have the node controller raise an
interrupt whenever a message is written into it. This configuration is
accomplished by setting up two processor writable MMRs located in the
node controller. The vector number and apicid of the targeted CPU need
to be written into one of these MMRs. There is no IOAPIC associated with
this.

So one thought was that, once insmod'd, sgi-xp would allocate a message queue,
allocate an irq/vector pair for a CPU located on the node where the message
queue resides, and then set the MMRs with the memory address and length of the
message queue and the vector and CPU's apicid. And then repeat, as there are
actually two message queues required by this driver.


I hope this helps answer your question, or at least shows you what problem
we are trying to solve.

Thanks,
Dean

--
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 ..., Dean Nelson, (Tue Sep 16, 1:46 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 ..., Eric W. Biederman, (Thu Sep 18, 5:28 pm)