Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1758068pxb; Thu, 4 Nov 2021 07:58:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw9tpHqakk8VbzvYzEKAgaOqQw+sg4hBWw7OeBHntjzMaw/zpt4rWd8/iDy6Ia7fVz4vz/ X-Received: by 2002:a05:6e02:1bc8:: with SMTP id x8mr14000292ilv.150.1636037930812; Thu, 04 Nov 2021 07:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636037930; cv=none; d=google.com; s=arc-20160816; b=0Q8iEbP0ws802SRJIrHFUTEXlDoMhXObLv2yCN+1yK4rnxSbiO7WRfONByu8mZFMmu bxip0KIoNiWqTh4J8Hgd3Traat3/zEguymWDAnAMhTVhqzYoVVWOdkCEclRxM1HbRigx +m+ey/zNOcXVxv+8OIjnBd5W1nmpXmWjoUSoAmlhiajLVkJ/OKUpXc/cxL1fXznzrYy1 8JOxcso96N3p2KEDZdWJgxPndtmoGhwGOqBO+xtJClxZez6nTIhHBqoXdPF1rD5w1TRP vQpdMK87Tfm2fgxn5k2+Ej/eK8jjvhTjAOWJOz9ToDMqeNdTBKTgM+YhAGnoIvGcbMul 5h2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=tjHWyq9uFikPSb+Wg0LnpNtcb3+JTClfw1w8apfAN4c=; b=RfqSUKMxBEut0niupEWj3cBDZQe1rWHaGMpcUR5h89vK3dHi8yXsEMDYJvPirpyfeF T042kHOCKJ1ap5+QAwGtleqPDMEXKOLCg7vedZKVByIra0gQO4fL8Qseo/namYXIRXNl zHdblEToOMt3FKOTc07IRNwSg0CXeqAtGV4zm+wDRUiKTRNYBX8WfmVC61dlnJ7ba+zw F/fM2oZxz2ZjQPy7F6YEBJvWHLIZ9oonQ4+MHv55FcQ2yTQGpFf510I0kVs/ECJykGjC bDjSwZZoC/tKR1ZoeHEs2odm16Sa6CnjQZq+WrD0O3gW8hAWc7mXm26WCiUrkEkwCK38 70DA== 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 k13si9613180ilv.35.2021.11.04.07.58.33; Thu, 04 Nov 2021 07:58:50 -0700 (PDT) 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 S231314AbhKDPAD (ORCPT + 99 others); Thu, 4 Nov 2021 11:00:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:34588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230344AbhKDPAC (ORCPT ); Thu, 4 Nov 2021 11:00:02 -0400 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 EE1B5611C3; Thu, 4 Nov 2021 14:57:24 +0000 (UTC) Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) 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 1mieB8-003USb-P8; Thu, 04 Nov 2021 14:57:22 +0000 Date: Thu, 04 Nov 2021 14:57:22 +0000 Message-ID: <871r3w9df1.wl-maz@kernel.org> From: Marc Zyngier To: Anup Patel Cc: Guo Ren , Atish Patra , Thomas Gleixner , Palmer Dabbelt , "linux-kernel@vger.kernel.org List" , linux-riscv , Guo Ren , Vincent Pelletier , Nikita Shubin Subject: Re: [PATCH V6] irqchip/sifive-plic: Fixup EOI failed when masked In-Reply-To: References: <20211101131736.3800114-1-guoren@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: anup@brainfault.org, guoren@kernel.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 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 Thu, 04 Nov 2021 14:40:42 +0000, Anup Patel wrote: > > On Mon, Nov 1, 2021 at 6:47 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 > > > > Reported-by: Vincent Pelletier > > Signed-off-by: Guo Ren > > Cc: Anup Patel > > Cc: Thomas Gleixner > > Cc: Marc Zyngier > > Cc: Palmer Dabbelt > > Cc: Atish Patra > > Cc: Nikita Shubin > > Cc: incent Pelletier > > Please include a Fixes: tag > > Also, I see that you have dropped the DT bindings patch. We still > need separate compatible string for T-HEAD PLIC because OpenSBI > will use it for other work-arounds. > > I suggest to include to more patches in this series: > 1) Your latest T-HEAD PLIC DT bindings patch > 2) Separate patch to use T-HEAD PLIC compatible in PLIC driver No, please keep things separate. The PLIC is broken *today*, and I want to take a patch for -rc1. The rest (compatible and such) is a new feature and can wait until 5.17. M. -- Without deviation from the norm, progress is not possible.