From patchwork Tue May 8 07:23:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 10385481 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 4EA0A60353 for ; Tue, 8 May 2018 07:24:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3499228CFB for ; Tue, 8 May 2018 07:24:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28A3E28CFE; Tue, 8 May 2018 07:24:37 +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 967E028CFB for ; Tue, 8 May 2018 07:24:36 +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=51MymjlkwdYNPGEWtpf7Z3RxN9i6YCzNDWnyPLxGtTI=; b=q0Z58nr9Hk8KHP Cb19iirAyqp1lTSuaMisQ0YSOjYhM2ftA8IIm4hFjXFkBtcMsySzWNp5KcqllTmxDtuwMU1uz9YiA ajokStC312kRs9d9EWukn61f6VjkHNZTo+4IVyWNLv9WxDPt7Yy5HGfoAKyyt7Hm/Doq4sDtutwLM aJpKEwHj3eq3gpIwgfzoYIaBo3WzsdVkN+xwZ20W+RmZEesGjjYLzmfOs/pvIJnWQqL56PVotPa/Q cLFtlSJU3TzqKk/H1jjD3LDq9aKVN3nP51KmG/X1kyQDdzGvBgpM5e2SH0q60fSR8OoFom3g4AC0v JYU+GqAbvT9bF31pNnuA==; 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 1fFwz3-0008R8-7U; Tue, 08 May 2018 07:24:25 +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 1fFwym-00088c-UW for linux-arm-kernel@lists.infradead.org; Tue, 08 May 2018 07:24:11 +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 B81DF2148C; Tue, 8 May 2018 07:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525764238; bh=S6999EfJSnxRKtqmRnxZx61zcpbGp+39yzEBxanVcLg=; h=Subject:To:Cc:From:Date:From; b=IvQBzqvwvyAkVlEILxvcCTfDh2B9UCxke7Mf80/PCV9/ChkmdYAC3qidNp16r7sR/ rnQcXltSuJAgTMIw+wgUs1v03QUbpVUzDicNWdHl34kH+5FErmo3Jldgh2qiQUSMaw HMff9M24vQl5dLqVySPuDgE8wkZAlijJdQYwCqPI= Subject: Patch "irqchip/qcom: Fix check for spurious interrupts" has been added to the 4.16-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:23:06 +0200 Message-ID: <15257641864146@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_002409_070833_C2CF8E02 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.16-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.16 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.16/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,