Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1684092pxj; Fri, 4 Jun 2021 23:36:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHWZOUX03SpfyNJ1YkmB6fLxHQ7DmlRhM+05VGyEaAocRVSpy4YS9Wh6dBa00ZVCG/TxPw X-Received: by 2002:a50:8dc6:: with SMTP id s6mr8871448edh.50.1622874988713; Fri, 04 Jun 2021 23:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622874988; cv=none; d=google.com; s=arc-20160816; b=pWj1APz/rwfnnfSjTRogdnteHC/UwTwgbidkc3rmtnu5IZE4c0QuJWYWw5E+G48OlF ziZHpm2cGTJR+N7yjda083tVqDu8JFA0ynKQJeMqSBf5YoWTB6XVrU/FHaGTTvEz+JcM WBPoyYJ9b4iRFNombdj0mcNZamzcnbRR/c9dLLFhVyF7TRSnl73Lp9AmX0aHqcMJamLp tN4nqPftD79hI1JclHDB5XzlRe1/9z8C/qXJcR8thaksi0x+javo+DxojHFvM9iD0O6k lxQBPrbiwcRS2gzQmSkecG7QVL/NrkY7mUrcpXG8TyJSTWLwQoBNYQcGS9Q2tnRhCZGt 1EGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=aClp/hEIVvpG7+2pSnnfssXOflthxejNHG6FWXnwpb0=; b=XHrjo4M5FwDDWw8nMafB0TCM5zGU4MMZHHBQSlJr3yN3yLFN3xiQK+PuGr1qQPpjIo JRLFnC7xqRpHLn0Y/X3F/mH2XeACVWSbyFK5Kq84IpK1d2IKqtVVJghKez4T6j9K7usG qn3Hr2uL7FcIsy5jm+hvbaebc1eEeEFeH0inkMPsKWPmgYlfg74A11I03GfLAS75gJlr jIQ01TaRaejM1k3F07QOFA/Eoo9N3t0p3B6mRCMgYsDxH9uAxIc09osXpY+JPVevPzPx xWGG8L70KlMum0kIOwTRU/mgJq8noDpjcMjjmASK4NXjSGe5xAgxB/WTWUEf+U+HMoT8 xWrw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i1si6500350ejv.412.2021.06.04.23.36.05; Fri, 04 Jun 2021 23:36:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229822AbhFEGfq (ORCPT + 99 others); Sat, 5 Jun 2021 02:35:46 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:35035 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbhFEGfp (ORCPT ); Sat, 5 Jun 2021 02:35:45 -0400 Received: (Authenticated sender: alex@ghiti.fr) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id B33C91BF206; Sat, 5 Jun 2021 06:33:26 +0000 (UTC) Subject: Re: [PATCH -fixes] riscv: Fix BUILTIN_DTB for sifive and microchip soc To: Arnd Bergmann Cc: Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , DTML , linux-riscv , Linux Kernel Mailing List References: <20210604120639.1447869-1-alex@ghiti.fr> From: Alex Ghiti Message-ID: <1287f6f3-2f07-3269-9048-8f7d08eecc09@ghiti.fr> Date: Sat, 5 Jun 2021 08:33:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, Le 4/06/2021 ? 15:08, Arnd Bergmann a ?crit?: > On Fri, Jun 4, 2021 at 2:06 PM Alexandre Ghiti wrote: >> >> Fix BUILTIN_DTB config which resulted in a dtb that was actually not built >> into the Linux image: in the same manner as Canaan soc does, create an object >> file from the dtb file that will get linked into the Linux image. >> >> Signed-off-by: Alexandre Ghiti > > Along the same lines as the comment that Jisheng Zhang made on the fixed > address, building a dtb into the kernel itself fundamentally breaks generic > kernel images. > > I can understand using it on K210, which is extremely limited and wouldn't > run a generic kernel anyway, but for normal platforms like microchip and > sifive, it would be better to disallow CONFIG_BUILTIN_DTB in Kconfig > and require a non-broken boot loader. I kind of disagree because if I want to build a custom kernel for those platforms with a builtin dtb for some reasons (debug, development..Etc), I think I should be able to do so. > > Arnd > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv >