[PATCH 1/5] irqchip: gicv3-its: allocate proper size for DT

Yun Wu (Abel) wuyun.wu at huawei.com
Fri Jan 30 17:57:06 PST 2015

On 2015/1/31 3:10, Marc Zyngier wrote:

> On 30/01/15 07:46, Yun Wu wrote:
>> A hardware implementation may be designed to search the device
>> table (DT) using a direct mapping between device ID and memory
>> address, and in this scenario a single page, currently allocated
>> for DT in ITS driver, will be probably not enough.
>> This patch will try best to get this addressed by enlarging DT
>> size with a limitation of MAX_ORDER pages.
>> Signed-off-by: Yun Wu <wuyun.wu at huawei.com>
> A similar patch has been posted already (and is already in my queue):
> https://git.kernel.org/cgit/linux/kernel/git/maz/arm-platforms.git/commit/?h=irq/gic-fixes&id=4be3de2af2a58476f84d678f3e8a3596f23f80d5

Oh, now I see it. How about allocating a order of MAX_ORDER pages and
throwing out a warning if the number of device id bits exceeds maximum
order kernel supports, instead of letting the ITS fail in probing.


More information about the linux-arm-kernel mailing list