Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1296497 > unrolled thread

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

Started byMaJun <majun258@huawei.com>
First post2015-12-22 04:00 +0100
Last post2015-12-29 12:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2] Irq/Platform-MSI:Increase the maximum MSIs the MSI framework can support. MaJun <majun258@huawei.com> - 2015-12-22 04:00 +0100
    [tip:irq/core] irq/platform-MSI:   Increase the maximum MSIs the MSI framework can support tip-bot for MaJun <tipbot@zytor.com> - 2015-12-29 12:10 +0100

#1296497 — [PATCH v2] Irq/Platform-MSI:Increase the maximum MSIs the MSI framework can support.

FromMaJun <majun258@huawei.com>
Date2015-12-22 04:00 +0100
Subject[PATCH v2] Irq/Platform-MSI:Increase the maximum MSIs the MSI framework can support.
Message-ID<qIll8-6s9-15@gated-at.bofh.it>
From: Ma Jun <majun258@huawei.com>

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 <majun258@huawei.com>
---
 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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


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

Fromtip-bot for MaJun <tipbot@zytor.com>
Date2015-12-29 12:10 +0100
Subject[tip:irq/core] irq/platform-MSI: Increase the maximum MSIs the MSI framework can support
Message-ID<qL0kb-824-29@gated-at.bofh.it>
In reply to#1296497
Commit-ID:  aff5e06b0dda7704ff2fa45162cfc4dde316a6f1
Gitweb:     http://git.kernel.org/tip/aff5e06b0dda7704ff2fa45162cfc4dde316a6f1
Author:     MaJun <majun258@huawei.com>
AuthorDate: Tue, 22 Dec 2015 10:47:22 +0800
Committer:  Thomas Gleixner <tglx@linutronix.de>
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 <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 | 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))
 
 /*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web