2015-12-22 02:56:49

by majun (Euler7)

[permalink] [raw]
Subject: [PATCH v2] Irq/Platform-MSI:Increase the maximum MSIs the MSI framework can support.

From: Ma Jun <[email protected]>

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, this value is changed
to 2048.

Signed-off-by: Ma Jun <[email protected]>
---
drivers/base/platform-msi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/base/platform-msi.c b/drivers/base/platform-msi.c
index a203896..47c4338 100644
--- a/drivers/base/platform-msi.c
+++ b/drivers/base/platform-msi.c
@@ -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))

/*
--
1.7.1


Subject: [tip:irq/core] irq/platform-MSI: Increase the maximum MSIs the MSI framework can support

Commit-ID: aff5e06b0dda7704ff2fa45162cfc4dde316a6f1
Gitweb: http://git.kernel.org/tip/aff5e06b0dda7704ff2fa45162cfc4dde316a6f1
Author: MaJun <[email protected]>
AuthorDate: Tue, 22 Dec 2015 10:47:22 +0800
Committer: Thomas Gleixner <[email protected]>
CommitDate: Tue, 29 Dec 2015 11:58:53 +0100

irq/platform-MSI: Increase the maximum MSIs the MSI framework can support

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 <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
---
drivers/base/platform-msi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/platform-msi.c b/drivers/base/platform-msi.c
index a203896..47c4338 100644
--- a/drivers/base/platform-msi.c
+++ b/drivers/base/platform-msi.c
@@ -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))

/*