Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751671AbbLUDTI (ORCPT ); Sun, 20 Dec 2015 22:19:08 -0500 Received: from szxga01-in.huawei.com ([58.251.152.64]:46588 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751597AbbLUDTG (ORCPT ); Sun, 20 Dec 2015 22:19:06 -0500 From: MaJun To: , , , , , , , , , , , , , , , , Subject: [PATCH] IRQ/Platform-MSI:Increase the maximum MSIs the MSI framework can support. Date: Mon, 21 Dec 2015 11:18:25 +0800 Message-ID: <1450667905-2968-1-git-send-email-majun258@huawei.com> X-Mailer: git-send-email 1.9.5.msysgit.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.235.245] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.56776F97.004F,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 6e13c78b701fd09c5e41bed79ae12390 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 996 Lines: 36 From: Ma Jun 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 --- 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 #include -#define DEV_ID_SHIFT 24 +#define DEV_ID_SHIFT 22 #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/