Re: [PATCH RFC 4/4] irq: allow a per-allocation upper limit whenallocating irqs

From: Ingo Molnar
Date: Wed May 25 2011 - 03:55:33 EST



* Milton Miller <miltonm@xxxxxxx> wrote:

> Allow the option to specify an upper limit to the irq numbers for
> each allocation. The limit is non-inclusive, and 0 means no limit
> needed by caller.
>
> Some irq chips can support a relative large and arbitrary range,
> but not infinite. For example, they may use the linux irq number
> as the msi desciptor data, which for msi is 16 bits.
>
> Since e7bcecb7b1 (genirq: Make nr_irqs runtime expandable), checking
> NR_IRQS or even nr_irqs is not sufficient to enforce such requirements
> when sparse irqs are configured.

Would be nice to add some more background info to the changelog, like what bad
things happen if this change is not provided and what good things would happen
if it is provided.

Thanks,

Ingo
--
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/