Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15582527rwb; Mon, 28 Nov 2022 13:26:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf6TdJgzXC08p+Nl+/+CDMRMN0rmjDKAGsXDFu9tZpiH0w++GKkH3eSgS7a3hmqR9/tK4RzV X-Received: by 2002:a17:90a:1090:b0:212:f52e:55c9 with SMTP id c16-20020a17090a109000b00212f52e55c9mr61587036pja.56.1669670816368; Mon, 28 Nov 2022 13:26:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669670816; cv=none; d=google.com; s=arc-20160816; b=jjygVpBiR50/Zm4tGujCASXR52E4V4tWBbvrXX5iZpftBy3Ftljn+r9LoFF7wrQLw0 oakHLiRLFQkkSJvOR4duw16kNs+al4hw/tnfCIuQ6pSX7r2AL0ib/dzKdcbi5O4iJxsV 6eRK9oruxPxeWmt3uoupRVsrs4h/a1tkkqF+MCl8rMtIpkxUzr4EmSqIDiv5j+beQkyZ t5zwaMvtpP4g8opzwaDAldDpRj8VJjB2ncihkb6xSkDm0d5jr+g7mcJDNi24K+yXRHU7 +zyIy6KAGk9mov8qgaEqaWzrvlHqGOvwmw58qPKjbtCE/YTVU1h/Z4rqn1SqjhgRYH3r ZJiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=76PTJt1VdX5B7qnB3hp4GAsxtgbPM2MOGMdaCFiJYUY=; b=MChK8ScYPOl+ItywcAU6X0DvQ+QA3aA0VO8Cghoiqu8Qw2CgkiPJgJqo3u9bzBz7tJ lOpAR20Ib2+hO31FSRl7mEfrp2uP8BB9rJPMN1qGn0FENomTveRQUaWbU7P1VrpWSb51 LXmv83kCnUKaD/xNT7Cm9q172FPj8M8JIc7gnHyjtoq7kaHc1UCnuXNk7/odo+VYP0hL dUrGjOYHsw/s+S52391iQETiqHkKBYTnKtipmtRYH/yBP/As3JrWKfApt95ofPcydi8K YNBGkKA+SH6WC3a4vJ2O4CsZ8jKL2ECgsc2dNcOZcDWNNR5pyST+p9/qx9uluGVaj19g DbXg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a170902c94f00b00172f6726d91si14659650pla.565.2022.11.28.13.26.43; Mon, 28 Nov 2022 13:26:56 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234439AbiK1VFw (ORCPT + 84 others); Mon, 28 Nov 2022 16:05:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234415AbiK1VF2 (ORCPT ); Mon, 28 Nov 2022 16:05:28 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A95CC2F39A; Mon, 28 Nov 2022 13:05:18 -0800 (PST) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ozlJN-00086j-Tx; Mon, 28 Nov 2022 22:05:09 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Conor Dooley , Guo Ren Cc: Samuel Holland , Chen-Yu Tsai , Jernej Skrabec , linux-sunxi@lists.linux.dev, Palmer Dabbelt , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , Jisheng Zhang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andre Przywara , Albert Ou , Anup Patel , Atish Patra , Christian Hewitt , Conor Dooley , Heinrich Schuchardt , Linus Walleij , Paul Walmsley , Stanislav Jakubek Subject: Re: [PATCH v2 11/12] riscv: Add the Allwinner SoC family Kconfig option Date: Mon, 28 Nov 2022 22:05:08 +0100 Message-ID: <4413987.e9J7NaK4W3@diego> In-Reply-To: References: <20221125234656.47306-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SPF_HELO_TEMPERROR 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 Am Sonntag, 27. November 2022, 12:31:15 CET schrieb Guo Ren: > On Sun, Nov 27, 2022 at 12:36 AM Conor Dooley wrote: > > > > On Fri, Nov 25, 2022 at 05:46:55PM -0600, Samuel Holland wrote: > > > Allwinner manufactures the sunxi family of application processors. This > > > includes the "sun8i" series of ARMv7 SoCs, the "sun50i" series of ARMv8 > > > SoCs, and now the "sun20i" series of 64-bit RISC-V SoCs. > > > > > > The first SoC in the sun20i series is D1, containing a single T-HEAD > > > C906 core. D1s is a low-pin-count variant of D1 with co-packaged DRAM. > > > > > > Most peripherals are shared across the entire chip family. In fact, the > > > ARMv7 T113 SoC is pin-compatible and almost entirely register-compatible > > > with the D1s. > > > > > > This means many existing device drivers can be reused. To facilitate > > > this reuse, name the symbol ARCH_SUNXI, since that is what the existing > > > drivers have as their dependency. > > > > > > Reviewed-by: Heiko Stuebner > > > Tested-by: Heiko Stuebner > > > Signed-off-by: Samuel Holland > > > --- > > > > > > Changes in v2: > > > - Sort Kconfig as if we had done s/SOC_/ARCH_/ for future-proofing > > > > > > arch/riscv/Kconfig.socs | 9 +++++++++ > > > 1 file changed, 9 insertions(+) > > > > > > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > > > index 69774bb362d6..4c1dc2ca11f9 100644 > > > --- a/arch/riscv/Kconfig.socs > > > +++ b/arch/riscv/Kconfig.socs > > > @@ -26,6 +26,15 @@ config SOC_STARFIVE > > > help > > > This enables support for StarFive SoC platform hardware. > > > > > > +config ARCH_SUNXI > > > + bool "Allwinner sun20i SoCs" > > > + select ERRATA_THEAD if MMU && !XIP_KERNEL > > depend on MMU > depend on !XIP_KERNEL > select ERRATA_THEAD That sounds like a better variant. The D1 / C906 _needs_ the errata for the memory handling and the other alternative constraints require the !XIP With the select, a xip-kernel would not boot at all on a D1 Heiko