Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5098546rwe; Tue, 18 Apr 2023 01:55:28 -0700 (PDT) X-Google-Smtp-Source: AKy350aNqI2DOqQV2jwjqZRh69Omed8P5E29HsnC2hxKbE3qilxS2BV5m60c6y1OOADAbE7+bYQ/ X-Received: by 2002:a05:6a20:1583:b0:f0:558b:8fbb with SMTP id h3-20020a056a20158300b000f0558b8fbbmr4489224pzj.34.1681808128504; Tue, 18 Apr 2023 01:55:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681808128; cv=none; d=google.com; s=arc-20160816; b=byIo+XXvPYnGHyd275AnPYr5l9jxUVZxVgmTT/UkqUD65P7cH9ifHEBQ/hn5bk7mys 9fzOzbU2zMQQ3OJlizsr6/b9nUZ2BM0/fyFC5BJVf/OCBk73gCysOg63EnU0Ex5MQrVE xyQ8edHlK0BP9FFae9YQclC38FNklOANZ//oKxEp0AkUg0AuZz3el5jZ0sNjf478yxZt c6YFHYBmHrKZclObUayqvXyRBKGhRJg6UFeHNclDo8LUQeS80c4T/teK/nFDDjOt6Goz focBNEp6hu2R8TyAqowfzBKayoYIQyVPYg+MzVl4/FE8mcb+bN7M+BIHu+6bPFxEg0V2 jN9g== 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=6FqylGlSDKMo94AjfrHM7ZUy9pmwjc1DK+2unt+p90M=; b=GbqOnAEtVI0wI+rIaYx9r9IbZQRF1KRZoxcJqx0YVejErmEIewdkQrzFsA0awzzAec EQVUC8DjiwKrdxLeVB8s9ulzlQv21ytO1Y6bOrNL/8tFyCecS1vBoBqSbOyZYpHS3idE Jf5ve0ysu5K1jHEnqpx0HpYNKZVqlBSk4oWLQVmUyG8J7M96/qjE8umr2Od+BjuJhHC3 07pEQP3Jv4Kxerkmt4IhgmaKyQgx6d3aNBFTlAwiUaslHQZuv69cmvT7WUxJLQhdCd5C 8MVf3Jr5EaMdTJZZV7iQ5CJHeFMiyaYAiu3joNdNMhmdhyaxhMX1F9uI51I6dAcLTCaR UKew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b8ll9dxc; 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 r24-20020aa79638000000b0063b8b7d7a14si5525898pfg.70.2023.04.18.01.55.15; Tue, 18 Apr 2023 01:55:28 -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=b8ll9dxc; 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 S230327AbjDRIwx (ORCPT + 99 others); Tue, 18 Apr 2023 04:52:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229824AbjDRIww (ORCPT ); Tue, 18 Apr 2023 04:52:52 -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 E083E1AD; Tue, 18 Apr 2023 01:52:50 -0700 (PDT) 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 7C7CA623D6; Tue, 18 Apr 2023 08:52:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1DD8C433EF; Tue, 18 Apr 2023 08:52:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681807969; bh=70xPBbsh44oN1k6erbly3OaVLsKVZbbBoVAm3vD2DdI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=b8ll9dxckioE9A0c1+ZgHz+sHWGOxwF/CQfkqv1VmqjNAmoCZDkuWKmwqUVedQ+v0 a7dX0RBxjSeQ9/9nb24+CEmtwK2/4z9qHxJ63a5OAvLZhn9kc4LH9WghBgeSsBgW/V Ne2MD40ZYo0g/KsoVsVrBB8dwaHddXfpqhuCCYv6M7kLLxlZ1najAIcUl94MglNQq9 fDhroZE4J1O7KcGp5S7estYGZIwgHMmrXHKgDSGxFxViWWdu8Q2FLWYJJGIfzMXtS+ I9OH4KOoycgqvu23rmYmV2eLp9tGyUUr5yAKX8JyF8f2DBFOQrnm0LTtrda370YOPo qk3YHeQ+tRHhw== 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 1poh4x-009FZV-Fa; Tue, 18 Apr 2023 09:52:47 +0100 Date: Tue, 18 Apr 2023 09:52:47 +0100 Message-ID: <867cu9lggw.wl-maz@kernel.org> From: Marc Zyngier To: Sebastian Reichel Cc: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Thomas Gleixner , Peng Fan , Robin Murphy , Peter Geis , XiaoDong Huang , Kever Yang , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCH v3 1/2] irqchip/gic-v3: Add Rockchip 3588001 errata workaround In-Reply-To: <20230417214035.101190-2-sebastian.reichel@collabora.com> References: <20230417214035.101190-1-sebastian.reichel@collabora.com> <20230417214035.101190-2-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, heiko@sntech.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, tglx@linutronix.de, peng.fan@nxp.com, robin.murphy@arm.com, pgwipeout@gmail.com, derrick.huang@rock-chips.com, kever.yang@rock-chips.com, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.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, 17 Apr 2023 22:40:34 +0100, Sebastian Reichel wrote: > > Rockchip RK3588/RK3588s GIC600 integration does not support the > sharability feature. Rockchip assigned Errata ID #3588001 for this > issue. s/Errata/Erratum/ (here and in the subject). > > Note, that the 0x0201743b ID is not Rockchip specific and thus > there is an extra of_machine_is_compatible() check. > > The flag are named BROKEN_SHAREABILITY to be vendor agnostic, Either "the flag is" or "the flags are". > since apparently similar integration design errors exist in other > platforms and they can reuse the same flag. > > Co-developed-by: XiaoDong Huang > Signed-off-by: XiaoDong Huang > Co-developed-by: Kever Yang > Signed-off-by: Kever Yang > Co-developed-by: Lucas Tanure > Signed-off-by: Lucas Tanure > Signed-off-by: Sebastian Reichel > --- > Documentation/arm64/silicon-errata.rst | 3 +++ > arch/arm64/Kconfig | 10 ++++++++ > drivers/irqchip/irq-gic-v3-its.c | 35 ++++++++++++++++++++++++++ > 3 files changed, 48 insertions(+) > > diff --git a/Documentation/arm64/silicon-errata.rst b/Documentation/arm64/silicon-errata.rst > index ec5f889d7681..46d06ed3e4f4 100644 > --- a/Documentation/arm64/silicon-errata.rst > +++ b/Documentation/arm64/silicon-errata.rst > @@ -205,6 +205,9 @@ stable kernels. > +----------------+-----------------+-----------------+-----------------------------+ > | Qualcomm Tech. | Kryo4xx Gold | N/A | ARM64_ERRATUM_1286807 | > +----------------+-----------------+-----------------+-----------------------------+ > ++----------------+-----------------+-----------------+-----------------------------+ > +| Rockchip | RK3588 | #3588001 | ROCKCHIP_ERRATUM_3588001 | > ++----------------+-----------------+-----------------+-----------------------------+ > > +----------------+-----------------+-----------------+-----------------------------+ > | Fujitsu | A64FX | E#010001 | FUJITSU_ERRATUM_010001 | > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 1023e896d46b..1bc43faef10a 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -1150,6 +1150,16 @@ config NVIDIA_CARMEL_CNP_ERRATUM > > If unsure, say Y. > > +config ROCKCHIP_ERRATUM_3588001 > + bool "Rockchip 3588001: GIC600 can not support shareability attributes" > + default y > + help > + The Rockchip RK3588 GIC600 SoC integration does not support ACE/ACE-lite. > + This means, that the GIC600 may not use the GIC600 sharability feature This sentence makes little sense. It is the GIC driver that cannot make use of the shareability attributes. > + even though it is supported by the IP itself. > + > + If unsure, say Y. > + > config SOCIONEXT_SYNQUACER_PREITS > bool "Socionext Synquacer: Workaround for GICv3 pre-ITS" > default y > diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c > index 586271b8aa39..5b7aa48dde25 100644 > --- a/drivers/irqchip/irq-gic-v3-its.c > +++ b/drivers/irqchip/irq-gic-v3-its.c > @@ -42,9 +42,11 @@ > #define ITS_FLAGS_CMDQ_NEEDS_FLUSHING (1ULL << 0) > #define ITS_FLAGS_WORKAROUND_CAVIUM_22375 (1ULL << 1) > #define ITS_FLAGS_WORKAROUND_CAVIUM_23144 (1ULL << 2) > +#define ITS_FLAGS_BROKEN_SHAREABILITY (1ULL << 3) Having slept on it, I'd rather this is renamed as "FORCE_NON_SHAREABLE", as it better describes what we are doing. The brokenness is an attribute of the platform, not of the flag. > > #define RDIST_FLAGS_PROPBASE_NEEDS_FLUSHING (1 << 0) > #define RDIST_FLAGS_RD_TABLES_PREALLOCATED (1 << 1) > +#define RDIST_FLAGS_BROKEN_SHAREABILITY (1 << 2) Same thing here. Thanks, M. -- Without deviation from the norm, progress is not possible.