[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m1ej54nn8q.fsf@frodo.ebiederm.org>
Date: Mon, 04 Aug 2008 20:40:05 -0700
From: ebiederm@...ssion.com (Eric W. Biederman)
To: "H. Peter Anvin" <hpa@...or.com>
Cc: Mike Travis <travis@....com>, Yinghai Lu <yhlu.kernel@...il.com>,
Ingo Molnar <mingo@...e.hu>,
Thomas Gleixner <tglx@...utronix.de>,
Dhaval Giani <dhaval@...ux.vnet.ibm.com>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 00/16] dyn_array and nr_irqs support v2
"H. Peter Anvin" <hpa@...or.com> writes:
> Mike Travis wrote:
>>>
>>> So on my wish list is to stably encode the MSI interurrpt numbers. And
>>> using a sparse irq address space I can. As it only takes 28 bits to hold
>>> the complete bus + device + function + msi source [ 0-4095 ]
>>
>> Don't you need "domain" (node) in the bus:device:function:vector combination?
>> (Or [hack] use a lot bigger field for bus with the node encoded into it.)
>>
>
> You definitely need domain, and that blows the 32-bit limit quite out of the
> water.
Yes. Although when I dreamed it up it domain wasn't more then a twinkle in
someone's eye on x86. I'm not certain it is much more than that now.
The interesting implication of this is that if you have the right hardware
and are absolutely loopy you can have more interrupt sources than can
be described in a 32bit unsigned int, and certainly more than any sane person
would allocate in a statically sized array.
Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists