Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2539887rdb; Wed, 21 Feb 2024 10:40:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVJKgJcwYI3ZepVwXD6V4qD2SgTaY1FTaG6GlegrBgeRJQgUUZRnjBymS8pgWMvnsAbfRJJZbMpeC9a1Di2O2RmJAekNsflik8ZjMfXAA== X-Google-Smtp-Source: AGHT+IGBu7qE6Qcu2fRUUs2JLmwWfwcx/rHbSGkzHILP4mJBjkyYJVNFt2zF6gOS2pIjcSI26y9n X-Received: by 2002:a1f:e207:0:b0:4cb:fc25:7caa with SMTP id z7-20020a1fe207000000b004cbfc257caamr7905068vkg.14.1708540852617; Wed, 21 Feb 2024 10:40:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708540852; cv=pass; d=google.com; s=arc-20160816; b=FBrDW0WBScW9LSw7nFpEimmyzSfraK+ChdWDW1HC36THKXocs1jDB1oghWd8nt9BnY 79qE8lLHndqVXkBJusrlsl0IY35maILyjFomdAwRpXyeZpyILPKifjmz0HIjcm3BztsB FXHDxrnN/+TmBPS0VIWzz7XBF9BQVti0QlCOX+W2QRB/kjr2ZAAh8PDC8o5CZORyKgNv FMePPsUZOLjiJY4uxt4jUnKXLMd11/pYm2qZ2HNJRiBWr+C+j62KBe+6ataSL8f7+U3X k/Go+HxHE0uDOUfqSn6ykLqQcy9aj4lFFZwFVY24eC7mU57OP1VBlMFTJN68qYVqdUpB nzHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=BnNqiTWshd0XTpZyAA+9BD6N6F5j6YPYc5Nmrd2/5Xk=; fh=LXjxVY7YVIZfaWkWftgh1OSG9Tnu/LaVhlDvuaeKQ8I=; b=W/rf5+AaElvyDbc4nXoIIRHw2CSxm+y0FmtraDwwIYLGdCOQGkQmJuEhAFhSMYiaaW gr+4s+aOdl7X/QO3FFSUoYIWHBd3zSadDWzVXXr/F1wmC4Q42rtgCrcGLtaYGIEM8xWy TwE5bAQJPa4BF0nKB6dGOl3f1ckz5B1EKIQY9u2BVQUN8AIVMkunXZwn+v2R7vZojKQc c6gGaaK3GAYZtpJBMXR/3Oy45PR7fcePChPZ77z3TVgw/cWTYhJTYGLf/3SawMeYjkbG BLXyVpA3YFa0Nn/iE24Dy04HnFDcQ3riqu9DO1S2tW8GqH8Li9t9qQWscpC0qTL5XV9h k6QQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=t4uZdl6f; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-75322-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75322-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jl15-20020ad45e8f000000b0068efa58259bsi6664765qvb.157.2024.02.21.10.40.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 10:40:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75322-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=t4uZdl6f; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-75322-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75322-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4B35B1C20DFF for ; Wed, 21 Feb 2024 18:40:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E04A18565E; Wed, 21 Feb 2024 18:40:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="t4uZdl6f" Received: from out203-205-251-36.mail.qq.com (out203-205-251-36.mail.qq.com [203.205.251.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2129581ABB; Wed, 21 Feb 2024 18:40:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.205.251.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708540843; cv=none; b=seiPW6UjyvJoyO15iKRKo2ulYvBHS6DxauhDDcGS8rciS42j1ZgAn5caHvaa1agI9LjDCgOuEKf4SLGYFMVu2QQ/P94HdDAzOwt/8HblDCPt0wiEgpjp4Bzj5BUgXhFuZWXTk10C2JUtguKYflcXa/21k9wbiN2dw9A0Hf1NRKs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708540843; c=relaxed/simple; bh=k1eDqaIswTgqD5OS5/G29+FmITqSVxJ/03sfK8QmKRI=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=XdqzlpomUvXPK3ADYzsh8cc58/xYNu6nVN7MBh2nhVtD+LE7jaCBjaOZHIHFwoCX+t7Kfr05Soxe3HqWFDT5bFMkBk8HM4ou7qseM6f4jTNrKBamzidB3gIWV2meWh5sTWB6V7vEAMt8WyN0c49SsYCUGCcBPXurm/SN6/nWs/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cyyself.name; spf=none smtp.mailfrom=cyyself.name; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b=t4uZdl6f; arc=none smtp.client-ip=203.205.251.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cyyself.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=cyyself.name DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1708540831; bh=BnNqiTWshd0XTpZyAA+9BD6N6F5j6YPYc5Nmrd2/5Xk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=t4uZdl6fkRhcOwnoXeDRYcUWI78Yp1r6+4UaiqEws09JVtE5Kn6EE94U0rp562qMW pCNntZrUGz+R9aSEDfaleSbYWDnHsC/e7bvAbjeIORlANQkUQa5hpoSWnL7dfk+FMW wBW20tld8fERtQbM/YGVLP1uKOxDtdPoC5oITjbM= Received: from [127.0.0.1] ([240e:379:2240:ef00:159c:db93:bdcd:c9c6]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id A1D29E0D; Thu, 22 Feb 2024 02:40:29 +0800 X-QQ-mid: xmsmtpt1708540829tiz3vhnjy Message-ID: X-QQ-XMAILINFO: NYXSVuwhoxRbvxR8nz1n/FNs0zoLS8oMF8dqAIBq+L3Lkwn9NjAg8C9ZYPpxIV qsOolB2+bM7HUZIT+JfIC2SRtNLBxA1pkpOCumZeTW0w6jleM6/G9mxc8W38a+hpVIveD1vNcj/6 OYE36jLYIw0nnSVR5iVRlTr/5Yxn8C7QssV5YhtGoW4GoDi3G+7PumpwZgI/LWODtp+lKykSCwM7 +ZjTQBie+QcSjtacl2t2f4PygqwBW4CTAeZJxdKDuJV96qSLrW6X/2tvaSc4Jzh7sqV+Bu3PZWrh 6PUrqBpPY9XCRJXPiLeQ8F7Cg8UVg6ND5xHd+fnYfxGfqujTB0fMSOTEx26e5J6QfYAj5cxpZTnl jbXPiGt92pL8cRIjecVt1pB22SpjXH3LpvNyTYSC2/9x43kIjIRPbyDQ0xXIShiD4iQHktgcctUv cs24y41K2LVz0XjPqncWf1S2G+Zd9SEbVguT0O8JOfxoMoKOt/2qHEP4M/d4ivtj+/0RXstsFPkK XQveNaa/GuxF1kRLLwupsN2tfmG+F/DHaHL9TOU7UPyd76lbulrAX81R2lpN5GnYZPpByZD9wcRJ sORkhXUdvi6lRDgxq/1OEJ5g1CUQL2o8ft3DrlD5/ChI9HYmCjcHjXS4Zc/3rW1Fu66icnqgQ6Ny tnlRoaKTjmoMtAunWpp2Rmjklq5HUsjJTSWhI3P3qiaQ1t6qlF0neKQs+YjH9mzk1UAwBLVR4Ror fXNwMlOmzcqVWloQYEJqSyaSZxTRUgWfUl8A/uOSbnY1E0FXfXQbQrXUaZ+ZgtInIH/EwHIKAbZa h2C+aSybAzL5C2GP+/Yv9EWH7hWjuBz+8gW37XYrEeVPYZ1oTuWRmnlbYqrWG+A7Ib2CxgAmNNbp 7IUh6sgF7+H5sAyF/8QIYULVAeKKXtX+YjeL/uLFsdW8f7fT241nvksIdYCs2KXQuYSImU/TcBVe IRPZAQDkCQAmbSHhIQ6oHDkua9k1sDJGQXh2rIa/GBQ9saI2ipfkYMmpmdWt+d X-QQ-XMRINFO: OWPUhxQsoeAVDbp3OJHYyFg= X-OQ-MSGID: Subject: Re: [RFC PATCH 1/1] riscv: dts: Allow BUILTIN_DTB for all socs From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , linux-kernel@vger.kernel.org, Masahiro Yamada , Alexandre Ghiti , Rob Herring , devicetree@vger.kernel.org Date: Thu, 22 Feb 2024 02:40:29 +0800 In-Reply-To: References: Autocrypt: addr=cyy@cyyself.name; prefer-encrypt=mutual; keydata=mQINBGU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X8oNfWfQrodt2lLgZBWl1hBiZ+grnySl9+oVDf0EyV80Ech6NgJLGnPOqAbWfHHcYaGKDw9mMXqPE+2EX/inmpuYHAfesWjb92K+KedJiQdfioO7ls+Sv48btLDIDiuc9fHp++CSAIpFeVURy3/xNsUBCRUG/lwLTuqILZjyYWISWDoWF4DD9XdP/uNGczJm3mo4rB7PPoCWC1MbjPWOSyDuf8JfbdV5+4O7jMXfZjdCeLRQhjsIUjvXk5qTPYdFNwvvnsUro2gKoeMijPkvSbuR8xCB2vwnfzYfmjb7z1JLya7DSrYdAZpZXFXGEcGsDRB1FJ5H8KLmNFTAT3eBmbdsrCxsdjC83zWpgpJA7fS5Cr94ae3MH9SHdj9eVKwwwhBu0dys7HQN2GS/fPAcZoy6hEuiHUAipoRaONI2YAzs8qkmA8unW0pIHwggi9z+TuG+WOZjw3ijbbS9PpM3uw5zFYqPzkyPRALPyklZO4naXC4kjQdZRSeNF7pbf4qgvIZtgdZONY09xwm5PSTJxblXaBjeGhhCpF+uPbXHOa4daV9y67EnSFeN3IwcO6JSc8AGzutKR 0mslfht1JyMf5dUi38RQI/fOO0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3-1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Wed, 2024-02-21 at 03:03 +0800, Yangyu Chen wrote: > The BUILTIN_DTB kernel feature on RISC-V only works on K210 SoC only. > This > patch moved this configuration to entire riscv. >=20 > Signed-off-by: Yangyu Chen > --- > =C2=A0arch/riscv/Kconfig=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 16 ++++++++++++++- > =C2=A0arch/riscv/Kconfig.socs=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 32 --------------------------- > -- > =C2=A0arch/riscv/boot/dts/Makefile=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 |=C2=A0 2 +- > =C2=A0arch/riscv/boot/dts/canaan/Makefile |=C2=A0 2 -- > =C2=A04 files changed, 16 insertions(+), 36 deletions(-) >=20 > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index b49016bb5077..23d501561e64 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -996,7 +996,21 @@ config RISCV_ISA_FALLBACK > =C2=A0config BUILTIN_DTB > =C2=A0 bool "Built-in device tree" > =C2=A0 depends on OF && NONPORTABLE > - default y if XIP_KERNEL > + default y if XIP_KERNEL || SOC_CANAAN > + help > + =C2=A0 Build a device tree into the Linux image. > + =C2=A0 This option should be selected if no bootloader is being > used. > + =C2=A0 If unsure, say Y. > + > + > +config BUILTIN_DTB_SOURCE > + string "Built-in device tree source" > + depends on BUILTIN_DTB > + default "canaan/k210_generic" if SOC_CANAAN > + help > + =C2=A0 DTS file path (without suffix, relative to > arch/riscv/boot/dts) > + =C2=A0 for the DTS file that will be used to produce the DTB > linked into the > + =C2=A0 kernel. > =C2=A0 > =C2=A0endmenu # "Boot options" > =C2=A0 > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > index e08e91c49abe..623de5f8a208 100644 > --- a/arch/riscv/Kconfig.socs > +++ b/arch/riscv/Kconfig.socs > @@ -84,36 +84,4 @@ config SOC_CANAAN > =C2=A0 help > =C2=A0 =C2=A0 This enables support for Canaan Kendryte K210 SoC platform > hardware. > =C2=A0 > -if ARCH_CANAAN > - > -config ARCH_CANAAN_K210_DTB_BUILTIN > - def_bool SOC_CANAAN_K210_DTB_BUILTIN > - > -config SOC_CANAAN_K210_DTB_BUILTIN > - bool "Builtin device tree for the Canaan Kendryte K210" > - depends on ARCH_CANAAN > - default y > - select OF > - select BUILTIN_DTB > - help > - =C2=A0 Build a device tree for the Kendryte K210 into the Linux > image. > - =C2=A0 This option should be selected if no bootloader is being > used. > - =C2=A0 If unsure, say Y. > - > -config ARCH_CANAAN_K210_DTB_SOURCE > - string > - default SOC_CANAAN_K210_DTB_SOURCE > - > -config SOC_CANAAN_K210_DTB_SOURCE > - string "Source file for the Canaan Kendryte K210 builtin > DTB" > - depends on ARCH_CANAAN > - depends on ARCH_CANAAN_K210_DTB_BUILTIN > - default "k210_generic" > - help > - =C2=A0 Base name (without suffix, relative to > arch/riscv/boot/dts/canaan) > - =C2=A0 for the DTS file that will be used to produce the DTB > linked into the > - =C2=A0 kernel. > - > -endif # ARCH_CANAAN > - > =C2=A0endmenu # "SoC selection" > diff --git a/arch/riscv/boot/dts/Makefile > b/arch/riscv/boot/dts/Makefile > index 72030fd727af..318239d9423b 100644 > --- a/arch/riscv/boot/dts/Makefile > +++ b/arch/riscv/boot/dts/Makefile > @@ -8,4 +8,4 @@ subdir-y +=3D sophgo > =C2=A0subdir-y +=3D starfive > =C2=A0subdir-y +=3D thead > =C2=A0 > -obj-$(CONFIG_BUILTIN_DTB) :=3D $(addsuffix /, $(subdir-y)) > +obj-$(CONFIG_BUILTIN_DTB) :=3D $(addsuffix .dtb.o, > $(CONFIG_BUILTIN_DTB_SOURCE)) > \ No newline at end of file > diff --git a/arch/riscv/boot/dts/canaan/Makefile > b/arch/riscv/boot/dts/canaan/Makefile > index 520623264c87..987d1f0c41f0 100644 > --- a/arch/riscv/boot/dts/canaan/Makefile > +++ b/arch/riscv/boot/dts/canaan/Makefile > @@ -5,5 +5,3 @@ dtb-$(CONFIG_ARCH_CANAAN) +=3D sipeed_maix_bit.dtb > =C2=A0dtb-$(CONFIG_ARCH_CANAAN) +=3D sipeed_maix_dock.dtb > =C2=A0dtb-$(CONFIG_ARCH_CANAAN) +=3D sipeed_maix_go.dtb > =C2=A0dtb-$(CONFIG_ARCH_CANAAN) +=3D sipeed_maixduino.dtb > - > -obj-$(CONFIG_ARCH_CANAAN_K210_DTB_BUILTIN) +=3D $(addsuffix .dtb.o, > $(CONFIG_ARCH_CANAAN_K210_DTB_SOURCE)) After carefully reviewing the code from the kernel I found that `arch/riscv/boot/dts/sifive(microchip)/Makefile` will also build the dtb object file and finally link to the kernel. This results in multiple dtb inside the kernel but the kernel always takes the first to use as someone mentioned before [1]. So only applying this patch to the mainline kernel does not work for choosing one dtb. I should also revert the modification on commit 0ddd7eaffa64 ("riscv: Fix BUILTIN_DTB for sifive and microchip soc") to prevent building these files and let them be managed by `arch/riscv/boot/dts/Makefile`. I'm also waiting for other review comments on this idea before submitting patch v2. [1] https://lore.kernel.org/linux-riscv/CAK7LNATt_56mO2Le4v4EnPnAfd3gC8S_Sm5-GC= sfa=3DqXy=3D8Lrg@mail.gmail.com/