irq/platform-MSI: Increase the maximum MSIs the MSI framework can support
authorMaJun <majun258@huawei.com>
Tue, 22 Dec 2015 02:47:22 +0000 (10:47 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 29 Dec 2015 10:58:53 +0000 (11:58 +0100)
The current MSI framework can only support 256 platform MSIs. But on Hisilicon
platform, some network related devices has about 500 wired interrupts.

To support these devices and align with MSI-X increase the maximum to 2048
devices.

Signed-off-by: Ma Jun <majun258@huawei.com>
Cc: <Catalin.Marinas@arm.com>
Cc: <linux-arm-kernel@lists.infradead.org>
Cc: <Will.Deacon@arm.com>
Cc: <mark.rutland@arm.com>
Cc: <marc.zyngier@arm.com>
Cc: <jason@lakedaemon.net>
Cc: <lizefan@huawei.com>
Cc: <huxinwei@huawei.com>
Cc: <dingtianhong@huawei.com>
Cc: <liguozhu@hisilicon.com>
Cc: <guohanjun@huawei.com>
Link: http://lkml.kernel.org/r/1450752442-9392-1-git-send-email-majun258@huawei.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/base/platform-msi.c

index a203896f204f31d38c40c0bc5867e85899f3ea5e..47c43386786b13229f4fbeb5cbdbfe03a2009804 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/msi.h>
 #include <linux/slab.h>
 
-#define DEV_ID_SHIFT   24
+#define DEV_ID_SHIFT   21
 #define MAX_DEV_MSIS   (1 << (32 - DEV_ID_SHIFT))
 
 /*