From patchwork Tue May 8 07:22:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 10385479 Return-Path: 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 C360F60159 for ; Tue, 8 May 2018 07:23:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8C6F28CE1 for ; Tue, 8 May 2018 07:23:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D3A228CE5; Tue, 8 May 2018 07:23:57 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 E427C28CFB for ; Tue, 8 May 2018 07:23:56 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:From:To: Subject: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=yk6Aip174/EQPtR/qftoHOBRc12Ikr6yjrkGh2ylqH4=; b=XrT2YO0hrO0wel kI9SBmis9EpIiI8/IsIdb9uzyLU/x6exsMRTnUIF/iMYdvJRuVSG4I3/P2mkjRgqDUY/1eZ7gtxO/ xYqmPYgPcBoiAFZJvKza3dnZBRXAwnWg8VydcLaqP21MGN2vfNXu8VvsYkcyCQkiL9WFZkNa7pUw6 76OYEBhPNu6EB6ND4C667JRxDm0+IAx8o0HTDx+tv4KCXQOPfvQRtVwY77EUP1FmjTi6Lvypo8Iq+ amBVBQBQleHgkY8JTTS2fjJP0/VJ5ynKTkkKt/P0kop/ycNaXEUsxXCE0FPC/EfW7HiHVK4/qs2sP KlfJ3FfPvfx8qkAmLL5A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fFwyT-00084j-8k; Tue, 08 May 2018 07:23:49 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fFwyO-00083A-Qs for linux-arm-kernel@lists.infradead.org; Tue, 08 May 2018 07:23:46 +0000 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8CAAF217B4; Tue, 8 May 2018 07:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525764214; bh=VSeUDLx77dlgq9P2Q7SwvVOiCQS5mgacyHcxPaV2k5I=; h=Subject:To:Cc:From:Date:From; b=ZBONxDrxWlnMf7d7IXiNmYZ+E+KQ5FuyUtMRnkN8HEd1oCCJMD+esmrEFAIgqJRxi 1c+NfbdLvarKhJGJMu6fh+Xf/LRZDUNEeKU/4DIwYHZR2iWja0UVnW5E7vrT9jdFrk hooUvd5F5MlFULW3goaB87/AQaT3rQij2JzDwwyc= Subject: Patch "irqchip/qcom: Fix check for spurious interrupts" has been added to the 4.14-stable tree To: 1525184090-26143-1-git-send-email-agustinv@codeaurora.org, agustinv@codeaurora.org, gregkh@linuxfoundation.org, jason@lakedaemon.net, linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, tglx@linutronix.de, timur@codeaurora.org From: Date: Tue, 08 May 2018 09:22:49 +0200 Message-ID: <152576416995100@kroah.com> MIME-Version: 1.0 X-stable: commit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180508_002344_927554_81416E87 X-CRM114-Status: GOOD ( 12.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: stable-commits@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This is a note to let you know that I've just added the patch titled irqchip/qcom: Fix check for spurious interrupts to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: irqchip-qcom-fix-check-for-spurious-interrupts.patch and it can be found in the queue-4.14 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. From 1bc2463cee92ef0e2034c813d5e511adeb58b5fd Mon Sep 17 00:00:00 2001 From: Agustin Vega-Frias Date: Tue, 1 May 2018 10:14:50 -0400 Subject: irqchip/qcom: Fix check for spurious interrupts From: Agustin Vega-Frias commit 1bc2463cee92ef0e2034c813d5e511adeb58b5fd upstream. When the interrupts for a combiner span multiple registers it must be checked if any interrupts have been asserted on each register before checking for spurious interrupts. Checking each register seperately leads to false positive warnings. [ tglx: Massaged changelog ] Fixes: f20cc9b00c7b ("irqchip/qcom: Add IRQ combiner driver") Signed-off-by: Agustin Vega-Frias Signed-off-by: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: timur@codeaurora.org Cc: linux-arm-kernel@lists.infradead.org Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/1525184090-26143-1-git-send-email-agustinv@codeaurora.org Signed-off-by: Greg Kroah-Hartman --- drivers/irqchip/qcom-irq-combiner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Patches currently in stable-queue which might be from agustinv@codeaurora.org are queue-4.14/irqchip-qcom-fix-check-for-spurious-interrupts.patch --- a/drivers/irqchip/qcom-irq-combiner.c +++ b/drivers/irqchip/qcom-irq-combiner.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. +/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -68,7 +68,7 @@ static void combiner_handle_irq(struct i bit = readl_relaxed(combiner->regs[reg].addr); status = bit & combiner->regs[reg].enabled; - if (!status) + if (bit && !status) pr_warn_ratelimited("Unexpected IRQ on CPU%d: (%08x %08lx %p)\n", smp_processor_id(), bit, combiner->regs[reg].enabled,