Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1630054pxb; Mon, 13 Sep 2021 01:49:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTdyy1BM87lK253IAdWEEKTq4zcYXRgciXTYQD76bRkvjgV6AxwsAI4BTMchYJyYrnmWHm X-Received: by 2002:a17:906:8a41:: with SMTP id gx1mr10066266ejc.507.1631522951774; Mon, 13 Sep 2021 01:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631522951; cv=none; d=google.com; s=arc-20160816; b=XqFX3o6MNYKYNn3vSdmfJRtMXim++OEpMO+CUNIf1+47Q6JUrnDy7AbhP0ZAsIQbUp m23JgaTCpHTXthBEUBGUplbPUMRBAnn6YYCskgvuNtFhJKxJx3DE3zUxEXVVTBuVscZ8 ykA9cRDptcF1avB/ZLSW3qCWBz9zfOdTvw8/o6nFAq2qFwymZJ9RFrMTwH4i02lE1Q5m 0NYlxjdzbQK7u4ikUa16OUrgfK0mHs2Wx2NK6xB8Za3sAlPURyRjQ+oC/OIHMGmelLxg jkAesN7FQD6kACYZ6/l4HE2wSSUettNJGlJgSjx76Rhq34/62ErBo5L8pnQUebeDxliR iPMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=3xA6WliwGm5jheo/QDh1OhhZHgC8t0qVZf0QWCOOHQY=; b=HirOo5e5AaeiEccU+g5BLbQt+pgv3YK/q6cWfGDVXTOMU5Of8kqKd1oxPPEMfcSluv gAmhZZ793ViuPFXnPimGErojkY0ToU9z1Cf6rVNjm1Plzn3velDHDSDDvkH/CDvNTnif xuWzl9ZYt5xj46UhUkag5ruZ7v1hM+cmKdE/aw34RufWOowSyHTE2lu2BPjEHin3aE1o /xBOefjCuePulttvjCNYq5iGk0RsCXbABanzbPknWpE6jSXOH+ZHd774KHzKjSlyGHRK xGK8cMN6jpBi59hQDBgyXqgtWr73zPcq/bmXBCD3iCr60by7GgMCXmQo0WbQEgEQQGXa CGrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=QK6e7NYj; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="k7OjXt+/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id og42si3706235ejc.692.2021.09.13.01.48.48; Mon, 13 Sep 2021 01:49:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=QK6e7NYj; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="k7OjXt+/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238025AbhIMIql (ORCPT + 99 others); Mon, 13 Sep 2021 04:46:41 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:40311 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236022AbhIMIqk (ORCPT ); Mon, 13 Sep 2021 04:46:40 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 563CF580C64; Mon, 13 Sep 2021 04:45:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 13 Sep 2021 04:45:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=3xA6WliwGm5jheo/QDh1OhhZHgC 8t0qVZf0QWCOOHQY=; b=QK6e7NYjQrp3tC9TWK86Gz7Llio7+rF5/1HJVaEFRSU hm2686y27TjHe+yJ37qLGYnfd4xHOdMPASf1rPnSgC7lKW7sKhsr1WGlunegHLyP 1BdtwcGB+0tYCUuW7LAYIWxQ//uEIw+SvAd83lOSzzQJuHZzTjWOL7axsfxTAsaF NPnxjr4s+kqB09JEzRn6eywmxALCnAw4zPqw5V9BBckKB52aufakZ9iKGufj/7aF QZzB4eVRb98Z3LoCV6sQ4LeHkQIwJi9qvEgFEKcLIvUoqtooFJ2lTNU+7mbw3Rj/ C2WaOdVdxA3lKpBNTL9BcPTp6VQCHcMbeXCbcFb8cKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=3xA6Wl iwGm5jheo/QDh1OhhZHgC8t0qVZf0QWCOOHQY=; b=k7OjXt+/juxGGdFbWdXMNy BZ5IJiEWYmT62dPp6ekQ/Mb9USqzKMaNXssS/U8ddVrj5J35CZg1+yXLxTbXv1Gz z52tz7cVTBV19ptU0HlrMfr7JRRAg5zn6vyo025iWM03Zw0KlN1dJolHW5vdewOp ZT+jUaYMjzm3DXWaBumhNi+HRiCdbTXeSSi1xxsi56/8/KF9Jp/nOJNW2zikUqrD NZjk8+btDjxFK5hlt6U9UquOWh95iACkP/SI/a98Z5abkIz77TGgxaiiDcnZv680 W6OAjtsomwZd9BLvL4uO1GI/a1NpHcV5axUeKGHW0p1FUywy1WnNGO8WVKTYzqPg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudegjedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepleekgeehhfdutdeljefgleejffehfffgieejhffgueefhfdtveetgeehieeh gedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh grgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 Sep 2021 04:45:21 -0400 (EDT) Date: Mon, 13 Sep 2021 10:45:20 +0200 From: Maxime Ripard To: guoren@kernel.org Cc: anup.patel@wdc.com, atish.patra@wdc.com, palmerdabbelt@google.com, christoph.muellner@vrull.eu, philipp.tomsich@vrull.eu, hch@lst.de, liush@allwinnertech.com, wefu@redhat.com, lazyparser@gmail.com, drew@beagleboard.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, taiten.peng@canonical.com, aniket.ponkshe@canonical.com, heinrich.schuchardt@canonical.com, gordan.markus@canonical.com, Guo Ren , Chen-Yu Tsai Subject: Re: [RFC PATCH V4 6/6] riscv: soc: Add Allwinner SoC kconfig option Message-ID: <20210913084520.kkbsupogkzv226x3@gilmour> References: <20210911092139.79607-1-guoren@kernel.org> <20210911092139.79607-7-guoren@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="p2xnpxdfevxsmmn3" Content-Disposition: inline In-Reply-To: <20210911092139.79607-7-guoren@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --p2xnpxdfevxsmmn3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Sat, Sep 11, 2021 at 05:21:39PM +0800, guoren@kernel.org wrote: > From: Liu Shaohua >=20 > Add Allwinner kconfig option which selects SoC specific and common > drivers that is required for this SoC. >=20 > Allwinner D1 uses custom PTE attributes to solve non-coherency SOC > interconnect issues for dma synchronization, so we set the default > value when SOC_SUNXI selected. >=20 > Signed-off-by: Liu Shaohua > Signed-off-by: Guo Ren > Signed-off-by: Wei Fu > Cc: Anup Patel > Cc: Atish Patra > Cc: Christoph Hellwig > Cc: Chen-Yu Tsai > Cc: Drew Fustini > Cc: Maxime Ripard > Cc: Palmer Dabbelt > Cc: Wei Wu > --- > arch/riscv/Kconfig.socs | 15 +++++++++++++++ > arch/riscv/configs/defconfig | 1 + > 2 files changed, 16 insertions(+) >=20 > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > index 30676ebb16eb..8721c000ef23 100644 > --- a/arch/riscv/Kconfig.socs > +++ b/arch/riscv/Kconfig.socs > @@ -70,4 +70,19 @@ config SOC_CANAAN_K210_DTB_SOURCE > =20 > endif > =20 > +config SOC_SUNXI > + bool "Allwinner SoCs" > + depends on MMU > + select DWMAC_GENERIC > + select ERRATA_THEAD > + select RISCV_DMA_NONCOHERENT > + select RISCV_ERRATA_ALTERNATIVE > + select SERIAL_8250 > + select SERIAL_8250_CONSOLE > + select SERIAL_8250_DW > + select SIFIVE_PLIC > + select STMMAC_ETH > + help > + This enables support for Allwinner SoC platforms like the D1. > + I'm not sure we should select the drivers there. We could very well imagine a board without UART, or even more so without ethernet. These options should be in the defconfig. Maxime --p2xnpxdfevxsmmn3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYT8PoAAKCRDj7w1vZxhR xbVnAQCSKte+mjnWETzsLGCmouHNDj3ez50SJLr19qM4sU85pwD6AxCJ/iy45OIu yqt3psn20BR6AvoN5uS5dcTBkr2TLgI= =Tz1F -----END PGP SIGNATURE----- --p2xnpxdfevxsmmn3--