Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2322350pxb; Thu, 4 Nov 2021 18:32:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4GaU1pG1O4kXGgnTjWW/fUEhAl7IIB3YvtjISdVh61vaEPg+lT7AG8OrwUiQOsoy5dyvI X-Received: by 2002:a6b:6c1a:: with SMTP id a26mr39672499ioh.189.1636075947710; Thu, 04 Nov 2021 18:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636075947; cv=none; d=google.com; s=arc-20160816; b=0xh0B6K1f1UPMicKo7i4CWB6HgLkWFdjN27HTUgBR6DeOzWrsv+ZbJlFitP2Mdj7kc Ym2OfF40Wv1gQrIdlz94CVKCbyr1oPxv3PKXdsTRTksug2D1MsBT/VUvFQhmsa/S++ie oQ4pGbx+R3bRSBJ7WRNgZN2sI6KOTPPsB5wQ2A+XvBHF60w2WBTYvpkrLalnzgi2ghcj us/4TiHPN8clqITCBXwv1J2xvcxmMii4nAywCf32VmPXXjuR/xrrV8jyVWemHBJ1cQFM 4YI3OgfezpQQLPyAEUX8INeZWQjiq5Fs1+CvE22rp7Q07LMcMvadldIX4XsiJIgvuY90 OQ0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jOhWGojz2VhT6ySYLpxcmwv9AuNY7pVIlrYDFBUmueo=; b=JcX87eP1lAKyX48NuaQhZvBpcq7LrnRPcpFTxI97n/eRBh7f/oSiOxC7m9nJZWNjt+ oA9g21IExQ1C6HDBDy6xLw0GrG8RzMXnkfpZWRc/C/cD9oQ8qQXLvnh5HZc/TWPnqZNw gFsUdoFz9uYJyoDCkI5Rc7amIyXvZu+TMqjKCP/eHejD6pg3g8lC61CL6VHZGwcb0BWn MtbZzFDxKOM3J8agNNpDuHKxJv+EMztwbH48HwKaB3ql4UhZWxfhJbvKtsXmMQogO3mC fO4CIxqD+GibdSYW29S7UzOW3AQ7p4DBssMyScoSTpYfWE3WbcPuTagDWeNmJPGGAISq +Xgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="vLKs/+rn"; 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 p16si14893146iov.103.2021.11.04.18.32.14; Thu, 04 Nov 2021 18:32:27 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="vLKs/+rn"; 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 S231295AbhKEBJm (ORCPT + 99 others); Thu, 4 Nov 2021 21:09:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:34728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231133AbhKEBJm (ORCPT ); Thu, 4 Nov 2021 21:09:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1FE0861245 for ; Fri, 5 Nov 2021 01:07:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636074423; bh=e16Mi+K8f8A1YlnrwXmStFNz6CID+giZJVpBpRE2tTc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vLKs/+rnOTf+GHM+en71ZdfWoZ9LCvkd38uhyWZZBnqkLkjgBOGFEuC7BbS8IcnDd AlXw78dsDT0hksruuO8HtBrbLdE+IOJCNRkHnbmvP1eL2FAwrZy08nGZGRvlaRqMWc IP9Zb92RRZGuT4hUGhkXQkTPbNHSeHJpfFn0m198OuLz1Kmhzjx3Aju2t/6wsz3rZ4 IjRzhBwjdbK+0SJodYU4NuhOfKDQMKdnbA6zrQuIwCNmN69vEWBzjFXF3zhjxYsApi TJhDC3iCWb2AlBj46anhftyZJtAPHrZkeU1cyQD/XMnmmJdUfTB882X8++cAnm2pwi HPTnDpYjxL4WA== Received: by mail-vk1-f180.google.com with SMTP id 84so2056565vkc.6 for ; Thu, 04 Nov 2021 18:07:03 -0700 (PDT) X-Gm-Message-State: AOAM530BLc0iguGkA6p3PC76mE4sU9Zuop6Ov0WX7EAhNi/PCLurUWXG xta0qpDgpLwGEhVs3kkUweLddEUVYwoEwSgWibc= X-Received: by 2002:a05:6122:d07:: with SMTP id az7mr20321320vkb.22.1636074422159; Thu, 04 Nov 2021 18:07:02 -0700 (PDT) MIME-Version: 1.0 References: <20211101131736.3800114-1-guoren@kernel.org> <871r3w9df1.wl-maz@kernel.org> In-Reply-To: <871r3w9df1.wl-maz@kernel.org> From: Guo Ren Date: Fri, 5 Nov 2021 09:06:51 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V6] irqchip/sifive-plic: Fixup EOI failed when masked To: Marc Zyngier Cc: Anup Patel , Atish Patra , Thomas Gleixner , Palmer Dabbelt , "linux-kernel@vger.kernel.org List" , linux-riscv , Guo Ren , Vincent Pelletier , Nikita Shubin Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 4, 2021 at 10:57 PM Marc Zyngier wrote: > > 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 Okay > > > > 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 Thx for the suggestion, and I would put above in 5.17 as Mark suggested. > > 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. Okay > > M. > > -- > Without deviation from the norm, progress is not possible. -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/