Message ID | 1507907807-10148-1-git-send-email-shankerd@codeaurora.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5880760360 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 13 Oct 2017 15:17:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47E0F290AA for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 13 Oct 2017 15:17:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CCE9290AC; Fri, 13 Oct 2017 15:17:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BE9F4290AA for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 13 Oct 2017 15:17:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=B6HnW/+Lq5Q24MaPUG3o/nX0vjKqDtfAend5TAxmv18=; b=ldl FhoNLx/E+af0NVQC7R1NZqmY+9fkdM3yMhFTI22QLRCiQvFdHHYhiGXAgfSE5VFAo5RI5/+MDtDTp bOseOTkynTCsT/Kvm5f3E8m9Do+UZLawlBMSAgtPymHP4VejDOtVog+zrb1mKmco4YVaALyjvQnch N8K2O6jaaj8iq0KHhKg0tfSRO+mIkOA64/6Y9+Ew8UQXcyn5jGJoGn4Py1kZofTi3Fr43a/EtgOB5 OubTns+EKH8/lNhXx/XYnD6k0JeCkRytScNrHPaP+xZ6XW4FHKtSdW/++DU4nfBRW652PVCgPUo/3 F0TxEj86/3bPP8tsOjO99MYxflZnJnA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e31iC-0006lF-JI; Fri, 13 Oct 2017 15:17:20 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e31i9-0006ks-FC for linux-arm-kernel@bombadil.infradead.org; Fri, 13 Oct 2017 15:17:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KhM7u/kItCjOcKAOZbLH4YnlEqllqzD+vsoRW40+Z5I=; b=XaAzPno7D2G0DznahnlApbdvb McnLMRfHokPCV1HL100Vt5M3Hsdw7oEiHbZxl8j1r06wpYrOWXw+aXCHq54DwHKyXB5xaUOoG5s6p tQPr0H+RWRnJ6lVrMfw8dCYqlXotI+cj8zrjIHbYnDJf428TPtolVqiY2sSkYbVhC31tzDPI6QNBE RlTvg/51xRQ2e7PJ3cQ/Qz5Hp+oUlyA0jB2+Yp2bQlL3VKQXDDWk2Qncc5Htv++gQeXRHcqZsy0sE elzP0t7fLvwaJkMcgrb3nHup212qKfGGXU1XdUlyVRPHyH2svYVEQ0hXnXlrxzTh6FbNbXAejUMz5 1NcuaSseA==; Received: from smtp.codeaurora.org ([198.145.29.96]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e31i4-0002OS-U9 for linux-arm-kernel@lists.infradead.org; Fri, 13 Oct 2017 15:17:14 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D57EE61B65; Fri, 13 Oct 2017 15:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1507907811; bh=2P+OiN2fzD1c5fhda3CxF5UcernNKtxl95F8JJFQIsI=; h=From:To:Cc:Subject:Date:From; b=BvXNP6QGdhe5267zj0iX4fgLWEMbcdFm74L0e/tmuB6T3B223B6g8HgT5jiC956p6 7iDlQ1S7npa8tLdNCc59izAyp+vjSxUJdtBptB/Dtw/NSR70b3aBZOXoECz0EcpfQ+ /KWznDlgjQtF6UuMcrse0BXr27MOwAQXQuQFBHGs= Received: from shankerd-ubuntu.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: shankerd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id CF8FE61A49; Fri, 13 Oct 2017 15:16:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1507907810; bh=2P+OiN2fzD1c5fhda3CxF5UcernNKtxl95F8JJFQIsI=; h=From:To:Cc:Subject:Date:From; b=Wz3TTKFLSzSARDP7akYoMWbvQ5UCqg8e2w+h2gtsNB1DO3fBTFuYvKZaPYBFgKuOA 05LHRWEikYMMmWuVQ5Of+Bm67fifc3gDhJgj843JMA8Ig0UatU+0F3i3IVJ745cp2I qnbX5tGzw0BoPbriDfr2quDXWpSgQiyNPjuA1R8g= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CF8FE61A49 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=shankerd@codeaurora.org From: Shanker Donthineni <shankerd@codeaurora.org> To: Marc Zyngier <marc.zyngier@arm.com>, linux-kernel <linux-kernel@vger.kernel.org>, linux-arm-kernel <linux-arm-kernel@lists.infradead.org> Subject: [PATCH v2] irqchip/gic-v3-its: Fix the incorrect BUG_ON in its_init_vpe_domain() Date: Fri, 13 Oct 2017 10:16:47 -0500 Message-Id: <1507907807-10148-1-git-send-email-shankerd@codeaurora.org> X-Mailer: git-send-email 1.9.1 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 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: Thomas Gleixner <tglx@linutronix.de>, Shanker Donthineni <shankerd@codeaurora.org>, Jason Cooper <jason@lakedaemon.net>, Vikram Sethi <vikrams@codeaurora.org> MIME-Version: 1.0 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-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 4b598b6..83220f7 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -2921,7 +2921,7 @@ static int its_init_vpe_domain(void) return -ENOMEM; } - BUG_ON(entries != vpe_proxy.dev->nr_ites); + BUG_ON(entries > vpe_proxy.dev->nr_ites); raw_spin_lock_init(&vpe_proxy.lock); vpe_proxy.next_victim = 0;
The driver probe path hits 'BUG_ON(entries != vpe_proxy.dev->nr_ites)' on systems where it has VLPI capability, doesn't support direct LPI feature and boot with a single CPU. Relax the BUG_ON() condition to fix the issue. Crash log messages on QDF2400 when booting with a single core. ------------[ cut here ]------------ kernel BUG at /v4.14-rc2/kernel/drivers/irqchip/irq-gic-v3-its.c:2854! Internal error: Oops - BUG: 0 [#1] SMP 0.000000] Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.0+ #5 [<ffff000008c2edd8>] its_init+0x310/0x370 [<ffff000008c2da94>] gic_init_bases+0x18c/0x29c [<ffff000008c2de94>] gic_acpi_init+0x118/0x234 [<ffff000008c31f74>] acpi_match_madt+0x44/0x78 [<ffff000008c30a34>] acpi_table_parse_entries_array+0x11c/0x1e0 [<ffff000008c30b20>] acpi_table_parse_entries+0x28/0x30 [<ffff000008c30b4c>] acpi_table_parse_madt+0x24/0x2c [<ffff000008c32234>] __acpi_probe_device_table+0x80/0xdc [<ffff000008c2c760>] irqchip_init+0x30/0x38 [<ffff000008c123e8>] init_IRQ+0xb4/0xe8 [<ffff000008c10a10>] start_kernel+0x238/0x3a0 Code: 14000011 b9407802 6b15005f 54000040 (d4210000) ---[ end trace 4defdcd9ed65d530 ]--- Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org> --- Changes since v1: -Added crash log messages to commit text. drivers/irqchip/irq-gic-v3-its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)