lkml.org 
[lkml]   [2015]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] IRQ/Platform-MSI:Increase the maximum MSIs the MSI framework can support.
Date
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, we need a new maximum value more than 256.

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..9c00d3f 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 22
#define MAX_DEV_MSIS (1 << (32 - DEV_ID_SHIFT))

/*
--
1.7.1



\
 
 \ /
  Last update: 2015-12-21 04:41    [W:0.049 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site