Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6181555rwb; Tue, 22 Nov 2022 09:45:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf4KDJhC/Mu1x3P8fqL7ontvTBYPZ3C9K7fLx6iHmjTkq/Gyir09RaZvdVg22E9+m29555xn X-Received: by 2002:a17:902:e415:b0:186:fd58:c700 with SMTP id m21-20020a170902e41500b00186fd58c700mr5150847ple.119.1669139131598; Tue, 22 Nov 2022 09:45:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669139131; cv=none; d=google.com; s=arc-20160816; b=KG+1j8+fH/zf+8PKbfejnmWPvh6vTbPTdfEYUSZLbcltW02fPYJpHBbAtHlaJhv9HO rBfqbRZOSOlZL/y2p0INjXANoG057DuyvJ/gr7ldloVepcsdNbGEnr66uMJwmxZII1mO 7jBWmywwIu/6/C41lLr1LnsWoSFEcPT0QOJVcLQGDipmGNWw9/xskPdgV1BoqwEoq7Bp 3u/R6agbER8wSRWqpJiMTplxgkaPq1FOHP0wxLgFwXrtOrnJIwSVPOildx2t7xha2SNJ 3eabScf3W3upncGliSW844sJ4i0SHtrsptw0+JDrW+abnDkXtQDVcWCZ5GF+Z0In5Av8 QQ/w== 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:dkim-signature; bh=k4uP8dELhFbIvkyhK9+bqcJeoJO5K7XJKD6l9EdGF5o=; b=bJAcoZcWL+eheCsXc+YEg+9O4K06q687UbJ8ghRnvChI4Qg4Q9nwt5iit9evKqC81g KZPtXLC4s0Q/C4UXAeUihZbK4CQIULpzMVY+EcgvVo5JoxPTNuQwFA0deF1NlHVEfszJ l4/A9DfK/kuftHyhRVL1cgRSM35hKJ/3nigGn5Pjqs0wRcrPrE//4bEP9Q6/C6c7czJD rcfc43jhgDAXsHFuo9TzM5Y3KDHGt7bzICkj6Gb2wWLIiA6H2+UjM20rMBEto+4qVXb3 7OUWo5YI0dH7ZWHTNBZqmvFuaCiGqYQ3GjMTLfEGSl2uGiWYZNbWDvoRIPKSn9PqrXML cmnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=knhLOPsI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm18-20020a656e92000000b0046ed58fb265si3291943pgb.277.2022.11.22.09.45.20; Tue, 22 Nov 2022 09:45:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=knhLOPsI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233478AbiKVR2Z (ORCPT + 90 others); Tue, 22 Nov 2022 12:28:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231842AbiKVR2X (ORCPT ); Tue, 22 Nov 2022 12:28:23 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B63676152 for ; Tue, 22 Nov 2022 09:28:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EA64D617FB for ; Tue, 22 Nov 2022 17:28:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53FBBC433C1; Tue, 22 Nov 2022 17:28:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669138101; bh=bPGORzn/O+lk6aHPgo/zL2qYgbZzPpf9Wn0quTNAY3Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=knhLOPsIKyVoFTl5kAH4EdE983hWomqK6BYc1AVmzMlyiMs5jtoo45vIdA0aeqNjz 5//NlABsPxh6h4eMGj2709VOZQqBLfECd/gASvC3VJENWGaW6VvCGH+CIbHPE+x/jw URGVd0bwof88pR5PIoq2rcGhdw8bjQTNmA58hWj+lW0qLqeYihzKmmxcdvthRGxhYM cK+r/HR+Obi6P/sUz3q5QKNem9MyFb+gSjwFf3cFIj/A5nCdOshyUs/dOMSgXt6lo2 DdCBSo0cUrGU3p20A2OmSvfOEuT+x+gXDAB26tjqzcgrVYhm0viWpc12mAlOwaJiql hqYdaGxHVC8Nw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oxX4E-007vIc-W4; Tue, 22 Nov 2022 17:28:19 +0000 Date: Tue, 22 Nov 2022 17:28:18 +0000 Message-ID: <86o7syoq4t.wl-maz@kernel.org> From: Marc Zyngier To: Icenowy Zheng Cc: Thomas Gleixner , Palmer Dabbelt , Paul Walmsley , Samuel Holland , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH] irqchip/sifive-plic: drop quirk for two-cell variant In-Reply-To: <20221121042026.419383-1-uwu@icenowy.me> References: <20221121042026.419383-1-uwu@icenowy.me> 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 (aarch64-unknown-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: uwu@icenowy.me, tglx@linutronix.de, palmer@dabbelt.com, paul.walmsley@sifive.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Nov 2022 04:20:26 +0000, Icenowy Zheng wrote: > > As the special handling of edge-triggered interrupts are defined in the > PLIC spec, we can assume it's not a quirk, but a feature of the PLIC > spec; thus making it a quirk and use quirk-based codepath is not so > necessary. It *is* necessary. > > Move to a #interrupt-cells-based practice which will allow both device > trees without interrupt flags and with interrupt flags work for all > compatible strings. No. You're tying together two unrelated concepts: - Edges get dropped in some implementations (and only some). You can argue that the architecture allows it, but I see it is an implementation bug. - The need for expressing additional information in the interrupt specifier is not necessarily related to the above. Other interrupt controllers use extra cells to encode the interrupt affinity, for example. I want these two things to be kept separate. Otherwise, once we get some fancy ACPI support for RISCV (no, please...), we'll have to redo the whole thing... > In addition, this addresses a stable version DT binding violation -- > Linux v5.19 comes with "thead,c900-plic" with #interrupt-cells defined to > be 1 instead of 2, this commit will allow DTs that complies to Linux > v5.19 binding work (although no such DT is devliered to the public now). *That* is what should get fixed. Thanks, M. -- Without deviation from the norm, progress is not possible.