Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5303648pxb; Sun, 7 Nov 2021 09:20:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNRC0sUiVKgD8ODkwV3Devc53fINjEZ4st4CE65/SGiiiuIysYpdXxksTptd0uHyOSmgqT X-Received: by 2002:a05:6638:160c:: with SMTP id x12mr4839788jas.60.1636305644696; Sun, 07 Nov 2021 09:20:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636305644; cv=none; d=google.com; s=arc-20160816; b=q6JH3lI4bphF/xlqOvPzEZ6pud/lztGmenRZE4xpIh6G7B01E+HXRZlQX0/msr8Kth 0/5hHLt7DBv2S8N18t9gfW1bwUvgklZqAXaI0sYrdCj2PownbIl/yvtiF/GPIO0sUxR1 BxfdaaiCU+ilFgDfl0n9DTsJHASDwfI28SjuLFbuMnQd6rfalZRVq/AALf+w7uA+JgeZ GUp2YHtX1iQvcQsuGzNojBth3nqiMLIfRPCzhP3kTAojjxSjdULcmj1wtQU7ixI0EdHu /gb6i+zipp/bidAvnKY9uxFMjIO6TOD1sHuraWcjTOV8ShXmZgLHNaXShwKxTgvozw9U hDLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=hy5FFDcYrpZUikI3NS6qO8eehwi5vBjDVeQVoT0N3CY=; b=k/oA9io6UjJC31Vm1gin4Nq8agvJJc3F8X1gSFLFeHtVGbnORgBY/AncjBoq1liQWc aMmpSnyFIm+k5mBVe3gtXnuXkXvqLjFRvIew6Cy4XGVz+qTNM02POrNrdekqoglFW4vd fiRxc2XBwf6SEy5soHF0YbDiPXLq2cY9sT5PqlRDdaRELQA3RS1WVDx6UxRsoar2iFHG OsE7eRLrLHY1u7cJU70Dkk6O7/W60Gy9f0U3qSAeIS78kfv1sB6Bf2QdAx/27aMgnzra DLuPBam4oG5YtfVUf/Hb7aOvqM54Of1Hi2cb1Ebj0CAwHeZUKqxTrTHNVx16Lq3BSMZN DfFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f23si3198286jav.41.2021.11.07.09.20.32; Sun, 07 Nov 2021 09:20:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232053AbhKGNQV (ORCPT + 99 others); Sun, 7 Nov 2021 08:16:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:54322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231136AbhKGNQU (ORCPT ); Sun, 7 Nov 2021 08:16:20 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (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 3B90561074; Sun, 7 Nov 2021 13:13:38 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mjhzM-003xkb-17; Sun, 07 Nov 2021 13:13:36 +0000 MIME-Version: 1.0 Date: Sun, 07 Nov 2021 13:13:35 +0000 From: Marc Zyngier To: Guo Ren Cc: Anup Patel , Atish Patra , Thomas Gleixner , Palmer Dabbelt , "linux-kernel@vger.kernel.org List" , linux-riscv , Guo Ren , Vincent Pelletier , Nikita Shubin , stable@vger.kernel.org Subject: Re: [PATCH V7] irqchip/sifive-plic: Fixup EOI failed when masked In-Reply-To: References: <20211105094748.3894453-1-guoren@kernel.org> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <7f9e088982de34e71b8bf656c770427c@kernel.org> X-Sender: maz@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: guoren@kernel.org, anup@brainfault.org, atish.patra@wdc.com, tglx@linutronix.de, palmer@dabbelt.com, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, guoren@linux.alibaba.com, plr.vincent@gmail.com, nikita.shubin@maquefel.me, stable@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-11-07 13:09, Guo Ren wrote: > On Sat, Nov 6, 2021 at 9:45 PM Anup Patel wrote: >> >> On Fri, Nov 5, 2021 at 3:18 PM wrote: >> > >> > From: Guo Ren >> > >> > When using "devm_request_threaded_irq(,,,,IRQF_ONESHOT,,)" in the driver, >> > only the first interrupt could be handled, and continue irq is blocked by >> > hw. Because the riscv plic couldn't complete masked irq source which has >> > been disabled in enable register. The bug was firstly reported in [1]. >> > >> > Here is the description of Interrupt Completion in PLIC spec [2]: >> > >> > The PLIC signals it has completed executing an interrupt handler by >> > writing the interrupt ID it received from the claim to the claim/complete >> > register. The PLIC does not check whether the completion ID is the same >> > as the last claim ID for that target. If the completion ID does not match >> > an interrupt source that is currently enabled for the target, the >> > ^^ ^^^^^^^^^ ^^^^^^^ >> > completion is silently ignored. >> > >> > [1] http://lists.infradead.org/pipermail/linux-riscv/2021-July/007441.html >> > [2] https://github.com/riscv/riscv-plic-spec/blob/8bc15a35d07c9edf7b5d23fec9728302595ffc4d/riscv-plic.adoc >> > >> > Fixes: bb0fed1c60cc ("irqchip/sifive-plic: Switch to fasteoi flow") >> > Reported-by: Vincent Pelletier >> > Tested-by: Nikita Shubin >> > Signed-off-by: Guo Ren >> >> Looks good to me. >> >> Reviewed-by: Anup Patel > Thx > > @Marc Zyngier > Could you help to take the patch into your tree include "Anup's > Reviewed-by"? Or Let me update a new version of the patch. You should have received [1], which shows you what I have done. M. [1] https://lore.kernel.org/all/163620881803.626.5045336370262044443.tip-bot2@tip-bot2/ -- Jazz is not dead. It just smells funny...