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...@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. Thanks, Abel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/