Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26480612rwd; Mon, 3 Jul 2023 10:12:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlG/xfbIxcf+60ekD9I0KBltPXw1tRF0SbvgSgW4YVkiVTrk88dFRiSRSKEfJVz+plkOhfIf X-Received: by 2002:a05:6a00:39a2:b0:667:e17e:85b7 with SMTP id fi34-20020a056a0039a200b00667e17e85b7mr13037996pfb.1.1688404356449; Mon, 03 Jul 2023 10:12:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688404356; cv=none; d=google.com; s=arc-20160816; b=WQGF5/Pca6T0j/U4c3mpCwEKJdIZqML1neITEHQwZNKiwaHhugWA6sIKGpyh+KSKAk SDnHar59P+9DhlGpICmugLi/T0937thAdqoU1ynEl/eJCHR6VPj9fWe62pAjAMEEW2W3 /Sugca0MtckIGUtL2thGxo2cZwlFRifp3IRBLFxkMHRQZyb77oA4MUSsPsafr33Oo4fB QPRtYgy4yLvD84C5NiXue+Ih/pctkLiINfq1aVs2DcCk3CIirovUkfdMjpWQKtmu1ybs x/H8V9ceypKjg/fi0fP6StyWZVvvUNXxNwzOBBsiNlGWboLoydxcXBAV/PEBdRhkDpvQ d3yA== 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=QuGxftoacQQFvLiPr+QUVRNlR1c5TxjgY2lZAiH8SDI=; fh=L8c/eG0qLRoRtcoIXWdWUdLFqimA4r0w7qtV8YQDMto=; b=N06+eYoXUR2tzeZjbiC+U2M0iziI/KxSQZ+RQe+xrleEtDSOCePAqqgcgx93H0IHJ9 LGouGEXFoMdyiIdtywiqcE796SDRaMwzXNRKZDtnB/WKiICwrJmHL9U8KmeR8Y+QIzTG fLYmY9+6TvqUE2DGxdrfiVGcyJOH1k3okTDfU/d4P24QtP6J5t0uA98/c/tljgOV+9dy AisboIvkfkFO2rdHBBw9CLp7apq/kJivvq4AhyG7ZiurF0FyaIMAcEo+kq49fDp+hcHa 6HSNzw2xcOOmZeNidv1wSckZoRAGE1Ix93qYE8JG+/jPth2jtF1XXq6u9Z3tQpgoOxOy X9Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ojMC9qMG; 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 bq9-20020a056a000e0900b006813b381be3si10602878pfb.41.2023.07.03.10.12.21; Mon, 03 Jul 2023 10:12:36 -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=ojMC9qMG; 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 S229505AbjGCQyo (ORCPT + 99 others); Mon, 3 Jul 2023 12:54:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbjGCQyl (ORCPT ); Mon, 3 Jul 2023 12:54:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33D78E5D for ; Mon, 3 Jul 2023 09:54:40 -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 C697260A27 for ; Mon, 3 Jul 2023 16:54:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A4F7C433C8; Mon, 3 Jul 2023 16:54:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688403279; bh=1esEcU2jcd4ZFiYLpi/Z/+JsLZfJuT+BZMzPEsrCXIU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ojMC9qMG/1wNxyKIZ1mpop6q9A4xk5udZYn6K9KVoCi5dJ57IARmF9lAF3TxHZn9V X8gtizv8NR6AEQnIaiKvorF4AaFN9PPM/JiQROdJIZEjAAjPkxpwSIWkoBq1iGKo3J nuxeXgU40HyB/X4fwz6zz1/wd2OoeAOcK//SFfAm57n+Tvu7lYe4y0RVbeVffvCJCZ Cbt1aktoxg0uHST16e5oYlXCmaoY8tGveDk6qmae4LTSVe9cQPkd1t/OuKbc9CmgFx 8hkHleHMpzodLtKXJQUKzr4eNrs2y8HMd6nnh9D91n1LBWoShj6KH+S7pBCw5h/Sf9 5xWLKqpo+OgpQ== 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 1qGMou-00ADVA-VJ; Mon, 03 Jul 2023 17:54:37 +0100 Date: Mon, 03 Jul 2023 17:54:36 +0100 Message-ID: <863525x7eb.wl-maz@kernel.org> From: Marc Zyngier To: Sebastian Reichel Cc: Chris Morgan , 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: <20230703164129.193991-1-sebastian.reichel@collabora.com> References: <20230703164129.193991-1-sebastian.reichel@collabora.com> 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, 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=-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,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 17:41:29 +0100, Sebastian Reichel wrote: > > Commit a8707f553884 ("irqchip/gic-v3: Add Rockchip 3588001 erratum > workaround") mentioned RK3588S (the slimmed down variant of RK3588) > being affected, but did not check for its compatible value. Thus the > quirk is not applied on RK3588S. Since the GIC ITS node got added to the > upstream DT, boards using RK3588S are no longer booting without this > quirk being applied. > > Fixes: 06cdac8e8407 ("arm64: dts: rockchip: add GIC ITS support to rk3588") > Signed-off-by: Sebastian Reichel > --- > I recently got a Rock 5A and noticed this issue. Apart from it, the Indiedroid > Nova should also be affected (I don't have that board). There are no other > upstream RK3588S boards at the moment. What about "khadas,edge2"? > --- > 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. Shouldn't you *also* fix the DT so that it advertises rk3588 as a fallback to rk3588s? This would ensure that an old kernel can boot as well. M. -- Without deviation from the norm, progress is not possible.