Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26597841rwd; Mon, 3 Jul 2023 11:57:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHXfL8ba+893vxdbg8aQyqJm+XYleQi57N7XFsk9O5kFabjgQUdDr7zVf6QEB4MEJLXnaVf X-Received: by 2002:a05:6a00:24d1:b0:682:2152:45df with SMTP id d17-20020a056a0024d100b00682215245dfmr11430150pfv.9.1688410650026; Mon, 03 Jul 2023 11:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688410650; cv=none; d=google.com; s=arc-20160816; b=Kwd4nqdio755J7kOgsCivP3pugGUCTlL4S1Ef8UW3QglcZVFDBe4rKaqvL6xI9qvZY zNcxBDmn7hsI50OsoptPbpWQfp97lGAxz0WlE8C7v3xfnKK6agyomgHEdPIjrWeQqyMw wuFvUe/M3tW0yIlZUSqUBzIIBt90+UwPFrbKncbFK9zfWBjv1rN1hw9+zUMkmFJZ/ItI 756Mk+DszgjpjC0PHDfIyt4Wk/Ky/aVQluFWNCOcJmwnFwHy4ULoconcAgWmuXD6b32t TdAockBJRPrCpiPBcwGtBR+yH8AE5SVi5vcMKrVPSYDh6WvotQtiQ2yg4fCxtfPcCCNQ zOcg== 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=ZEiAB1Fl6zSAU2C8MFoKskl62sleMRt7oqs2urY+W1Y=; fh=+RiXx8VylocaXbw0qslw6mTSW9JtauOzehpK1wDQ57U=; b=I6hn2sXjMUHCosXbJq6lCAh5d/T4FlPK+fFMdNTtpfxguOd7r/r+T29nwiT5kfAXmP GvsJoVWtQjvuABozzO193HywLASu9HObn7kY81WvIt595mW7M8nKwSXzvwx8Bseb3hAY 3vC3zdjJHplCJffyL5XOOEo80ZAQrX8wSu9fLUOLIyrD70IdpcMJ8U07zUifxsCVZ3jm gH1IGAjJItVRllb2n8wWNpNR6WUxcIv2Dtv3AQFcCGjLWjOdFWmAUGvyEVVq+06dSZIO 3RNRaSVOeFWXecK1Hwy2uEKm9PACsQhGzmSF9jBWEtV/FuE24GzZiMt0cTT0af41l/bL jSkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iFBATVd/"; 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 x34-20020a634a22000000b0054ff42d3833si19285736pga.336.2023.07.03.11.57.15; Mon, 03 Jul 2023 11:57:30 -0700 (PDT) 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="iFBATVd/"; 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 S230121AbjGCSmd (ORCPT + 99 others); Mon, 3 Jul 2023 14:42:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbjGCSmb (ORCPT ); Mon, 3 Jul 2023 14:42:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA708E64 for ; Mon, 3 Jul 2023 11:42:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 81C726100C for ; Mon, 3 Jul 2023 18:42:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5D50C433C7; Mon, 3 Jul 2023 18:42:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688409749; bh=ak7CRcSEzl92AIv7ty+8mdZMIXPfH1X1lmjQ31H8fZA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iFBATVd/6dCJC/RSUNCK0CAfnuDUaoypWoaqEvv92jGZ0JS6l5rf1gG33mC0iwh4R GVB0usJRP5jA54niWzzhkm2706qtGePD6Qhw2wTTlSxGWATMEjjSH3hSRB7o1k5Rxa lQABRCkxAKPdEymlfHlUQEtRBVxvaIZln/p2arhlipd9VEG2PB/uUKZVXAqDD9LURx J1L6WlvlrgV2qrfdIEtNp6TD3Jo/tOa1maRgDNAa10IHGWrh35BH3dhgrZdcQXqP1k qoBcJOItgkTTYn9XYA9zW0k9xDSsAvRkzeoLLir9FLb8ecXdI9Ox17wvDYLgmu9iS4 uxW+rMIbeKgoA== 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 1qGOVH-00AF1y-Nq; Mon, 03 Jul 2023 19:42:27 +0100 Date: Mon, 03 Jul 2023 19:42:27 +0100 Message-ID: <86y1jwx2ek.wl-maz@kernel.org> From: Marc Zyngier To: Sebastian Reichel Cc: Chris Morgan , Yixun Lan , Thomas Gleixner , Heiko Stuebner , linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCH v1 1/1] irqchip/gic-v3: Enable Rockchip 3588001 erratum workaround for RK3588S In-Reply-To: <20230703174233.wn7jusqeh3udusdz@mercury.elektranox.org> References: <20230703164129.193991-1-sebastian.reichel@collabora.com> <863525x7eb.wl-maz@kernel.org> <20230703174233.wn7jusqeh3udusdz@mercury.elektranox.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/28.2 (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: sebastian.reichel@collabora.com, macromorgan@hotmail.com, dlan@gentoo.org, tglx@linutronix.de, heiko@sntech.de, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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, 03 Jul 2023 18:42:33 +0100, Sebastian Reichel wrote: > > > > --- > > > drivers/irqchip/irq-gic-v3-its.c | 3 ++- > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c > > > index 1994541eaef8..034ece9ac47c 100644 > > > --- a/drivers/irqchip/irq-gic-v3-its.c > > > +++ b/drivers/irqchip/irq-gic-v3-its.c > > > @@ -4727,7 +4727,8 @@ static bool __maybe_unused its_enable_rk3588001(void *data) > > > { > > > struct its_node *its = data; > > > > > > - if (!of_machine_is_compatible("rockchip,rk3588")) > > > + if (!of_machine_is_compatible("rockchip,rk3588") && > > > + !of_machine_is_compatible("rockchip,rk3588s")) > > > return false; > > > > > > its->flags |= ITS_FLAGS_FORCE_NON_SHAREABLE; > > > > I don't mind taking this, but it also mean that only a new kernel > > will boot. > > Yes. My assumption is, that this is considered a fix and landing in the > 6.5 cycle. The rk3588s.dtsi from v6.4 does not yet have the GIC ITS > nodes. So there is not yet a tagged kernel with the boot failure. The > first one will be v6.5-rc1. Ah, fair enough. In this case I'll queue this patch without any remorse. > The quirk in the GIC driver only landed in v6.4, so anything older > is broken anyways. So effectively we are talking about v6.4 booting > a v6.5 DT, which is not something we guarantee to be working as far > as I know. In general, I do make a point in making things work *in both directions*. But given that this is an erratum, there isn't much we can do, and advertising an ITS to a kernel that cannot handle it is doomed. Thanks, M. -- Without deviation from the norm, progress is not possible.