Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2434377rdb; Wed, 21 Feb 2024 07:35:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXowY+MmmpsQMufjrGhHPsTY3kUiVygBrczn8fH9DGNcgQ9u9rYjj37Qm/cVl/+N7r/y4hUsrk0sLPdEk7pcO8xmuL84yR2438XambzmQ== X-Google-Smtp-Source: AGHT+IHPOB2YKlKj9HS3bI2tb8l+NQH9jfLzuJKR8Yejo4Nti5pJU8pVOCMAzcnGZ/+fpP1DJx68 X-Received: by 2002:a05:6a00:2346:b0:6e4:5ff9:f037 with SMTP id j6-20020a056a00234600b006e45ff9f037mr12282411pfj.12.1708529728580; Wed, 21 Feb 2024 07:35:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708529728; cv=pass; d=google.com; s=arc-20160816; b=ZK/sa/jT4TxlzdmCqOkv7hrGKSNvRMdCXQJDdgwwjgjjgjBbSXtf3iwGAK5JuyHAE6 kcQqq7P0kV9zXat3fewvkPj94TDOBPcdR8P0yArZOAUCLiGlqzwbbitjwydyRaGG5VFL H5ypNv53vP9n3zcsAfKjuVprAZErIsSEH9nz6YXuY3qYymCPduIE4J40XBlETgrnXDeV aBkE9OPGkIlJzraJZqd4UE36JazK7sxv3126dDg9e3N6O07JdN+gaKuTDCRA10FWlFHw J86P1s5/pyWspU1qmyN8lhghl+2bpfQ/CC1fcZSAHfSIzkoqupqSNclXnHfjcf0wH1XY 0xSg== 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=Wc428/NF3UCWmMZpleDfxN9wyCJ3mPXf/MXkk7fNIwE=; fh=CnWX085/Ly4g7ubJVanChbW9pIms0QGTVG9uvqJvLN4=; b=JzECBcaeT+cZ3RmU242r7unr1DApK5/ge/HgYRC03NXrwmQbfnzs6E6+EUjGbKdJx3 iI8mRlCNEO11MF1y+pHdBZSflOxubqLwXi7PyQUy7d8IXQ82a0Clth3WvSWMqAXXWVTx 8YRCABgxrCuL0ZRw8mWNCCyDaj572NgYm3azhklXY6Ny3vqooa1BfwapvsRD9J3L7MFv wXZQ4ubeO3U/f24QR4Kb4j6MSxHrm5+Xj6e9GqbnHEuWpT/ZwGzsb0igik9O03/RHhCf kOLxT7sWRkuy0sN3EVtqSK6RSziWP2lhFSxWvkmue8fsqNvY83Yse31GfGiDT25/Drza 2w+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=GlyxbrQ8; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-74901-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74901-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o6-20020a62cd06000000b006e33bd7a6e2si7575440pfg.241.2024.02.21.07.35.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 07:35:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74901-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=GlyxbrQ8; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-74901-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74901-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 73A74B22B35 for ; Wed, 21 Feb 2024 14:33:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D143A7F7EA; Wed, 21 Feb 2024 14:33:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="GlyxbrQ8" Received: from out162-62-58-211.mail.qq.com (out162-62-58-211.mail.qq.com [162.62.58.211]) (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 ED9091E4AF; Wed, 21 Feb 2024 14:33:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.62.58.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526003; cv=none; b=aEbw1861quMGRIcKI3mBndcyw8VlYj9kfsw7X4GiaPyM/eJpxdg4av8f9sozFupfym4JAz+H5cCJ6TTCIozW07Ln8iC+m7gPoPS+sjzSHKYTDW79Vkt99C8HZCpJR3tkImCxUQmlqGT+ZEJQt0mccFaW8g4LLnMJVy6tJnT9Tc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526003; c=relaxed/simple; bh=Wc428/NF3UCWmMZpleDfxN9wyCJ3mPXf/MXkk7fNIwE=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=LT1/WnabxsmYt6bCYnOUL7WqDcf7fuieouSWiHKGeTz5fEURUZ6sw2EsHka7v+zaEAEIbhJrKptTcml9o76OlbdxgrU3eGIM+igSxJ8DfD1yqgQAz3X/YXZisCAGIYwwBDdPeZROiEbnI9rh30Xwbc84KjcoEflxyl75ZMgbHOw= 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=GlyxbrQ8; arc=none smtp.client-ip=162.62.58.211 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=1708525690; bh=Wc428/NF3UCWmMZpleDfxN9wyCJ3mPXf/MXkk7fNIwE=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=GlyxbrQ8JKpJ+9lA2hTakh30wGJzeSasfbdTiIjRjPOoYio7hAup7UU7eggZKvaF7 aO1ErsbJ7lB3amQJH4b24OJAJEtdlph18/PDPxyuSdBnWODY8f/Wxlu9W8Yaeaia03 UpTvi8r5uH+7ftGdTjmC0EofCZzpMy3mBg7T63TY= Received: from [127.0.0.1] ([240e:379:2240:ef00:159c:db93:bdcd:c9c6]) by newxmesmtplogicsvrszc5-1.qq.com (NewEsmtp) with SMTP id 70827887; Wed, 21 Feb 2024 22:28:08 +0800 X-QQ-mid: xmsmtpt1708525688t0nbwvoqg Message-ID: X-QQ-XMAILINFO: NdRzF9Zpj4ldhvkRO4Jn+nI5lMyK6PMRWyr9/3cjs4uG8JXjcWebYVbF2ZoF0D QkDwfOpT0ooFKZXnRhQZL6/O+gTx/dAF74IiJGBBwKH6HzbGW3+GdQUVv/5lBGas08RdhaCYw6fB wF8JJUUoRCFasl2lJg7bPoOMtwI81wI9K1v7O/svR2VirizWsg5tIbBE6EIjMa3VI02Mc1cdqpt/ OsCVrQawh9dY5xSrCufqDW9DgvVaXT41Olj9cxSkvy1uGtZS1gvXv2VKxjl37RiepW0kkFU7LeVl sJzKxDp/zRTFvNxCU95V5TpYM3BmJFwsq1lCtpMb2VNd56B5qn2w5+RQcyQAfHkClSeZkagH1VEX PvsbIAQ0W2RsEWXQq21VLQCOca640pRimI+1dJVLmUqsEDGLrIUgEVKrSfdvxkkSZ3F+SGXviTpv JoK7jvyizyvFKQO0jStQ/aT70brjFjYJfqSDB6gyVgscKrcHi899137rYG64kSXKESZF8rXLSHEZ cA6Q/P4yHD9yJ/tjDPBjjPuHeiUoBLo+RVod8bDw6WHd/7bwWUEKboywP1VpDMQaNINm8HhzZPSP H5HWY9aYWc+JQ2BwxcX8P+ssEri6RnzxMRA8t4kfwY8/ou1x7KWZl7iOgPjre7/kIOr3xeVkpeQ7 V8ocZjhfvsVY/gcUJypSlXxPzs0ko4gEzcO53m1DW3LPJI/HQBShiW0E1gLAsNFEQuPTHErb4BdR VttGWBhmgaxbueklyQwtJq6u8yjDNwS8KvnH66XtG5lKYL56RHNe6CEJoTGu8c+32fQMdEAWNMLN FNk9Qzd/G/oN7LlN572zeg6tQvb7uYf2DGLKVLX/gUXdrqonmJXB/USi28nMy3QT/rNtD/VJbi2O NA6hpQuj8/x9TqlY93WJgP9w2PJZgcKb4RT4i4MzKArssxVj/6v4na9WHj/8W0NBHcB3ojOW8T5/ PimedPC8dQM6kgb8l/TldAzr6W2E0TE7l+mY60Uatdb84CzUNNDYWaWQ6/vlFbr5K+JIxp+iU= X-QQ-XMRINFO: NI4Ajvh11aEj8Xl/2s1/T8w= X-OQ-MSGID: Subject: Re: [RFC PATCH 0/1] riscv: dts: Allow BUILTIN_DTB for all socs From: Yangyu Chen To: Conor Dooley Cc: linux-riscv@lists.infradead.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-kernel@vger.kernel.org, Masahiro Yamada , Alexandre Ghiti , Rob Herring , devicetree@vger.kernel.org Date: Wed, 21 Feb 2024 22:28:08 +0800 In-Reply-To: <20240221-islamic-quartered-3863e44bc862@spud> References: <20240221-islamic-quartered-3863e44bc862@spud> Autocrypt: addr=cyy@cyyself.name;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RbTcVTVgXVEsHjd5/WDmXhcX8oNfWfQrodt2lLgZBWl1hBiZ+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 11:30 +0000, Conor Dooley wrote: > Hey, >=20 > On Wed, Feb 21, 2024 at 03:01:53AM +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 > To be honest, I would rather delete BUILTIN_DTB (and the > configurations > that depend on it) than expand its usefulness. >=20 I agree it=E2=80=99s useless for most platforms because we need to start SB= I before kernel on RISC-V except NOMMU M-Mode Linux and SBI also need a DT to work. However, it has been there for M-Mode K210 and it is set by default for XIP kernel. So there might eventually be another patch to support some new soc that will do this like this patch. > > Although BUILTIN_DTB is not a good choice for most platforms, it is > > likely > > to be a debug feature when some bootloader will always override > > something > > like the memory node in the device tree to adjust the memory size > > from SPD > > or configuration resistor, which makes it hard to do some > > debugging. >=20 > My inclination here is to say "fix your bootloader" and if that's not > possible, chainload a bootloader that allows you control over > modifications to your devicetree. >=20 Chainload a bootloader like S-Mode U-Boot on some platforms is hard due to some drivers like pcie controller does not come to the mainline repo of the bootloader, and some bootloader source repos provided by the vendor may require specific versions of the compiler to work, which makes users not easy to do some kernel debugging if change DT is needed. The simplest way to do this I can imagine is to write a simple bootloader by myself link the kernel binary and the dtb I want to it and replace the a1 register point to the dtb address before jumping to the kernel. However, kernel has this feature, why should I do it manually rather than provide a more generic patch for everyone with this need to use? > > As an > > example, some platforms with numa like sg2042 only support sv39 > > will fail > > to boot when there is no ZONE_HIGHMEM patch with 128G memory. If we > > want > > a kernel without this patch to boot, we need to write the memory > > nodes=20 > > in the DT manually. >=20 > If, as Alex suggests, there's a way to gain support some more memory > in > sv39, we should do so - but it is worth mentioning that highmem is on > the > removal list for the kernel, so mainline support for that is highly > unlikely. >=20 Yes. But I=E2=80=99m debugging some mm performance issues on the sg2042 ker= nel. Specifically, it=E2=80=99s about the IPI latency when doing rfence on sfence.vma or fence.i. I would like to reduce the memory size and allow the mainline kernel to boot and test without taking some out-of-tree kernel patches. If I remove some DIMM modules from the board to reduce the memory size, it will also lose some memory channels and even leave some numa nodes with zero memory, and the compatible DIMM module is hard to find. > > Also, changing DT on some platforms is not easy. For Milk-V > > Pioneer, the > > boot procedure is ZSBL -> OpenSBI -> LinuxBoot -> Linux. If DT gets > > changed, OpenSBI or LinuxBoot may refuse to boot. And there is some > > bug on > > LinuxBoot now which does not consume --dtb argument on kexec and > > always > > uses DT from memory. >=20 > I don't use Linuxboot, but let me try to understand. Linuxboot uses > kexec > to boot the main Linux kernel, but the dtb you want to use is not > used, and > instead the one that Linuxboot itself was booted with is used? >=20 > It sounds like Linuxboot has a --dtb argumet that is meant to be used > to > set the dtb for the next stage, but that argument is being ignored? >=20 Yes. That=E2=80=99s correct. > That sounds like a pretty serious issue with Linuxboot which should > be > fixed - what am I missing? >=20 Sure, that should be fixed in the LinuxBoot. However, I think not every kernel developer should fix some complex bootloader like LinuxBoot which is built upon the linux kernel with a huge initrd rootfs and runs some userspace tools to support the boot process. If something is hard to control, skip it, and doing some override for debugging will be a better choice. > > So I would like to do debugging on DT using > > BUILTIN_DTB, which makes it very simple, >=20 > > I can even install the kernel in > > the distro's way and provide a kernel package for other users to > > test. >=20 > I'm not sure what you mean by this, other distros manage to create > kernel packages without using builtin dtbs. >=20 I mean I can provide a distro package like Debian .deb and distribute it to other users to test without changing their dtb from the entire boot process. Because changing the DT from the entire boot process might prevent their vendor-provided OpenSBI or LinuxBoot from working. Some vendor kernels may be developed out-of-tree and do not use the dt- binding from mainline. Even for very basic CLINT and PLIC dt bindings. It is only for testing, not for the production environment. > Thanks, > Conor. I want this feature to allow more people to participate in debugging some kernel issues without taking a huge amount of time to deal with bootloader issues about changing the DT. I think it will be good for our under-development RISC-V community. Imagine we hardly change the ACPI table for x86 machines but we sometimes change the DT for ARM/RISC-V board, right? Also, some SoCs that run M-Mode NOMMU Linux may need it in the future like K210 for XIP without a prior bootloader. Thanks, Yangyu Chen.