Re: [PATCH 00/16] dyn_array and nr_irqs support v2

From: Eric W. Biederman
Date: Mon Aug 04 2008 - 23:43:24 EST


"H. Peter Anvin" <hpa@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/