From patchwork Mon Dec 21 03:18:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "majun \(F\)" X-Patchwork-Id: 58773 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp2345649lbb; Sun, 20 Dec 2015 19:19:11 -0800 (PST) X-Received: by 10.98.10.137 with SMTP id 9mr7911984pfk.37.1450667950860; Sun, 20 Dec 2015 19:19:10 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rw4si449133pac.72.2015.12.20.19.19.10; Sun, 20 Dec 2015 19:19:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751672AbbLUDTI (ORCPT + 29 others); 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 Received: from 172.24.1.49 (EHLO szxeml430-hub.china.huawei.com) ([172.24.1.49]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DBF97142; Mon, 21 Dec 2015 11:18:45 +0800 (CST) Received: from localhost (10.177.235.245) by szxeml430-hub.china.huawei.com (10.82.67.185) with Microsoft SMTP Server id 14.3.235.1; Mon, 21 Dec 2015 11:18:34 +0800 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 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 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/ 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)) /*