Message ID | 1450830263-28914-1-git-send-email-Suravee.Suthikulpanit@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 56ECFBEEE5 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 23 Dec 2015 00:26:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6718620394 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 23 Dec 2015 00:26:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7F66A20389 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 23 Dec 2015 00:26:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aBXEi-0007nX-LL; Wed, 23 Dec 2015 00:25:00 +0000 Received: from mail-by2on0094.outbound.protection.outlook.com ([207.46.100.94] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aBXEf-0007gn-Co for linux-arm-kernel@lists.infradead.org; Wed, 23 Dec 2015 00:24:57 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Suravee.Suthikulpanit@amd.com; Received: from ssuthiku-fedora-lt.amd.com (165.204.77.1) by SN1PR12MB0448.namprd12.prod.outlook.com (10.162.105.141) with Microsoft SMTP Server (TLS) id 15.1.361.13; Wed, 23 Dec 2015 00:24:32 +0000 From: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> To: <marc.zyngier@arm.com>, <tglx@linutronix.de>, <jason@lakedaemon.net>, <rjw@rjwysocki.net>, <bhelgaas@google.com> Subject: [PATCH] gicv2m: Miscellaneous fixes for V2m resources and SPI ranges Date: Tue, 22 Dec 2015 16:24:23 -0800 Message-ID: <1450830263-28914-1-git-send-email-Suravee.Suthikulpanit@amd.com> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BY1PR15CA0017.namprd15.prod.outlook.com (25.162.17.155) To SN1PR12MB0448.namprd12.prod.outlook.com (25.162.105.141) X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0448; 2:/c9xoe3E1R8O2MUHVa7dW7gWG2wX8vIFLJ+kgnXPL6jMdZjfFFiBCTLG0VEjZJEBrsCPerjW5irJNHfRR4jbF/Qgm+qmHW8tl1+B642RSud4NZZlZZHDDcqpUaURbxSEh/lTWPbPKib0fyUotizOuw==; 3:KBFUZdfyU+SwIsk/jsV70u+iaN/2tadsm63YjCAw14TeL7a1YB7YfeLKZJKNOLbVWPsAFTouXeixbmtL/ZXhmf8kSVRjU3Lbc4K2w1PFRNJCx971eodY4/wRclPegTkZ; 25:HSMmbRL3zn+WBIDwt+dwwq34ZLVzjNcT7O4TQii+p/OCKFMfDZEmjNotmpQP2Wcl+tFWxBOp9OI6oN/N9qx9/qPgiv/sh15zxmEBdynxfMmr175ExQMTjVs9IhpuZLH/p4IxyS/viNr/z/qqpYpDz/qi2cIWSDTPNtFY5mMPqURLlouhAQti80E5bQq32r3JZMWGsDxudQEw5Q5s1dauWl8nNznsZZEvumeR+zGhdq2FPrHLILF7qBecF9IKrkj4bF4K8pubYZBSYDcecTz7dg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0448; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0448; 20:L/EdAhC4N0FxYP/6uPd/wmi446XcwstA1MDImXppQ2dwWqoRg3SbkkwpLi+5Bm/7Uphwp3xMwcNJHR6inJo56WLY0u/us1YQTY+/K79xVlEiDKOwBTIWuT+In6mnupUruI9lHqPYArZZK9f5Y/tdqsjEYn6YPBCHm33iy+U6sCMPSZ4lg/W0NW+sIFTnzETVOqeDhDWNSkYMyJvkUgCn7arDyrnw+odX00Sro82yxxEnscW6am7GQj2xKeDUVAlwhyNgQi9Csn1jCx2JEbYisqTDLbVSOxNl5um8NOOSLU2pDHfrv6olZmWwGMuynShJPPkayQCmLbNOiia+gl/gyg07ur4viZOFJDKxf13wfubiiPEI+p836b7Xr7P+VD6EF+3OXWBIdXQiIfbkeAJNf3L3KsET6gHMz8Au5ZINt+mYsSON+6LG32mntYLkCEUnOybEtfIFBsTuprKZy99Dp8snFiC/6FV2ANt1wjGHhkvMRiMouxZYFXkJ7oVNJgZL; 4:7+u24PMFr+cx3K+US7mPNhi2GJxnNIqj2uyDfpKKjPoEoYpJly8cweuNFn+3DTB5w3HO95WOP06Xlkg8X6VnhdBABCc3jmZI7cKkmi6OrYz3jySrb3Yk9nM5bkKDvADpeyViyAmoJemEaNImg9406a4atSpVItZ2/X/KPZAjlKEXuzlH2op5XP4aOrYgju88m91OfNG1URICbcWFKnTCCjzRls2H5jp1KVRctBJreu0p95Q9bENcMZtFnJaZ3GACE2yZNyvaKpVox4d76kRtojC1/TP35c4HcUI1t7EwQppbrKKwUIigfNfVeGyZDp2UQ5Vha6+LJIMioxg6g7VcbsKWE3WyMWqSpbji1N7MpUko2rwDIWy4cxkIQm0niFLENglSTVIgZ/CaRpmwmCctgMvLxMSyrqcfPw4C6Z2B9kU= X-Microsoft-Antispam-PRVS: <SN1PR12MB0448E043B0BBA3E43B922A81F3E60@SN1PR12MB0448.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(10201501046)(3002001); SRVR:SN1PR12MB0448; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB0448; X-Forefront-PRVS: 0799B1B2D7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(189002)(199003)(164054003)(106356001)(50466002)(19580405001)(53416004)(47776003)(5003940100001)(50986999)(2201001)(42186005)(50226001)(87976001)(19580395003)(586003)(40100003)(101416001)(229853001)(86362001)(5008740100001)(77096005)(48376002)(6116002)(1096002)(97736004)(36756003)(5004730100002)(189998001)(66066001)(3846002)(122386002)(105586002)(92566002)(5001770100001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0448; H:ssuthiku-fedora-lt.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0448; 23:5VQrWcyQ1aMa8XAsNMHAHZ0Pj2qeGYc2uGkYIy8NR?= =?us-ascii?Q?jK2XckoxICRWm/vdU+5uQDTK1vA3WcUqUB+mFy2vnlDs9xtlUWC2AJLlAhJA?= =?us-ascii?Q?qSEjLny0fYxHRTQcLDrEfsOyM9nr2kjaHj/yxnnFRa3V8OP6GVjf/Cd0Zwsi?= =?us-ascii?Q?SH3u+E+zZxUeOm76QiNt3+r847csoTHhW9bdd53S+PnA1PFbFv3rEBg8/9m+?= =?us-ascii?Q?gGjLlFFqU5I4xfrsR9SSoKKfdcjYtB6bl+snKtMMi6NYCsrai8ip8pY3bwqG?= =?us-ascii?Q?9ESA3PUnUoeWsw9XYmJJ9Aq3LXTa8ES/6DC1TFele036CyX4jo5ES03cWRF/?= =?us-ascii?Q?OzyHwGwxF6z8C9B5Lt5EeIlXT6A7zfFBRJ9hIB07nwJNJ1yL3mOWrR9sqqex?= =?us-ascii?Q?dbLkutVTe6EwmmD4j5klyXFxQRZvJJmgfMv6r2e0r1YeOyLU9RqqTEynOszk?= =?us-ascii?Q?M2NZS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xyizVhmbvqTHVHhMy5f+fyX7CgNsAICmgTXC1gM729H684K2uzzozIsMBBAzLGBP5ZyqB27H0F3SO8yXhRBYmot38LKJHOUodK65ZRMuqaT+sEDTXUgmDmFp4FE2 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2015 00:24:32.8126 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0448 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151222_162457_491710_90CFDC53 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, graeme.gregory@linaro.org, Catalin Marinas <Catalin.Marinas@arm.com>, dhdang@apm.com, Will Deacon <will.deacon@arm.com>, linux-kernel@vger.kernel.org, tomasz.nowicki@linaro.org, linux-acpi@vger.kernel.org, hanjun.guo@linaro.org, Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/irqchip/irq-gic-v2m.c b/drivers/irqchip/irq-gic-v2m.c index 7e2975d..5f346ea 100644 --- a/drivers/irqchip/irq-gic-v2m.c +++ b/drivers/irqchip/irq-gic-v2m.c @@ -365,9 +365,8 @@ static int __init gicv2m_init_one(struct fwnode_handle *fwnode, list_add_tail(&v2m->entry, &v2m_nodes); - pr_info("range[%#lx:%#lx], SPI[%d:%d]\n", - (unsigned long)res->start, (unsigned long)res->end, - v2m->spi_start, (v2m->spi_start + v2m->nr_spis)); + pr_info("range%pR, SPI[%d:%d]\n", res, + v2m->spi_start, (v2m->spi_start + v2m->nr_spis - 1)); return 0; err_iounmap: @@ -456,7 +455,8 @@ acpi_parse_madt_msi(struct acpi_subtable_header *header, return -EINVAL; res.start = m->base_address; - res.end = m->base_address + SZ_4K; + res.end = m->base_address + SZ_4K - 1; + res.flags = IORESOURCE_MEM; if (m->flags & ACPI_MADT_OVERRIDE_SPI_VALUES) { spi_start = m->spi_base;
This patch contain fixes for v2m resources and SPI ranges: * Fix off-by-one error when set up v2m resource end range in gicv2m_acpi_init(). * Fix the off-by-one print error for SPI range. * Use %pR to properly print resource range information. Both ACPI and DT should now print: GICv2m: range[mem 0xe1180000-0xe1180fff], SPI[64:319] Suggested-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> --- Hi Marc, Sorry for this minor last minute fixup. This should go on top of the V7 of the GICv2m ACPI patch series. Although, this is not urgent. Thanks, Suravee drivers/irqchip/irq-gic-v2m.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)