Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1090787pxj; Fri, 11 Jun 2021 21:13:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxySEZojSrv4RrBQvKVTt485gK94gmDPWKTKGd0LxYHvLa0pLG9JE21BKlK0d/LiWz2KMxI X-Received: by 2002:a17:907:c1e:: with SMTP id ga30mr6256410ejc.377.1623471193527; Fri, 11 Jun 2021 21:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623471193; cv=none; d=google.com; s=arc-20160816; b=YUAk6C5R3hr43NMaAxWTX1hvmOkLtQvKUAuf3ofTxTSDalrfKBXd2Do1mXrrjXZSid f47unq0/UmJlE9holzeUhPsTua9kBTYNrYDxAYSjZ4bElL82v+giw7CSuqgsNJcYUYRI gxZ8uwERo6jjSj7SGDILl6yLmCNvI4h24Oj6bVp/C+DT8NdjcI2mEZEZ2fZGa0aTEFPf URfXVkUjCc4Fe36Va4YntsdywD6G9UpGzFN20uk5TCp/ha9K2BCNxWsfevB/kxi+4B3L 5g0NoglCncijRnnLR44sEuHts6XmrLEzorP65E4JZOkQriBT3AKcj+Xp2z0QiWZfexC+ tP2Q== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=9zYa8J6wQxJeEDNOAWQ9y3FpPL8Sz/tefgUpUGTN/xo=; b=npnCkH9jqJn8ZApDV4KCPZjTAoNVmoyONYDVha7CsORFM1cUJw7oLTVZ7zQtGHu/q9 rlrI500GqFPGGyV1FosonjyfmTMXHabbZe37a+qB8Ji3qR5PqNYw6KSJz9uJ4Vi3OAmQ BIXvhwrINaAVIxBhrivafq81IX//gUp6T6TKjRmD09lB0lLsVZJssrDRyIyFjKVk/6AI 3QWLoWQF3H7xoMNODDgAgicmMUFWCZw3wPkcuuTbos9vE12wxpzeBePleIe20uHZUm1e /9PvmJeMUBbR/sDO2yOV3d/jIU4hR1VZcMiCAjtYK5zEbLBaXuddtNgaW8yIOXToRfYN Plgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b="02VVvA/U"; 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 j18si6522239edj.276.2021.06.11.21.12.50; Fri, 11 Jun 2021 21:13:13 -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=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b="02VVvA/U"; 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 S229931AbhFLEOB (ORCPT + 99 others); Sat, 12 Jun 2021 00:14:01 -0400 Received: from mail-pf1-f175.google.com ([209.85.210.175]:45054 "EHLO mail-pf1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbhFLEOA (ORCPT ); Sat, 12 Jun 2021 00:14:00 -0400 Received: by mail-pf1-f175.google.com with SMTP id u18so6031325pfk.11 for ; Fri, 11 Jun 2021 21:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=9zYa8J6wQxJeEDNOAWQ9y3FpPL8Sz/tefgUpUGTN/xo=; b=02VVvA/Uq/gcMCjjjY8Um81Aq6ED5rfna/eCzXCA2I8yk42zo3L++MppEv/YXKqtf5 5B3hX0UR2rDdpIeinTYhS3rouE9r4trXrFQPt5J+pyKVRziJValPsY3RTUfwyJE0nH4M NSxxORdDCkQJ5eVOxg8P8xwMBm6bbBXbJEQkAEciT4uq7QrEXg0IbswtOqRr2Rvs+WV7 aoN6LxKqRSaRgHjQVC4Le+PuaY1LVWCAzqI3lPGpRxa8bfzczhx0N8gshUVa/qivKTK/ F+prgbKvi1ZVvVIajKXXzVtDe/vowzuS7+Sqmvbhlt2TzlF6LUbDBVGnyOSSVsHqk9Iq SzZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=9zYa8J6wQxJeEDNOAWQ9y3FpPL8Sz/tefgUpUGTN/xo=; b=n2NDZfiOL7ZWxf0Tx6vubxvD7fiGqEpunjmjKAdpQZOK/VS6WD2+BCU8DPjy93Leea AQlUFK+pwh/wjlSbZFdSv8Cpw8oUGvbX/EpQoNL5EGA/VIztmggVLPYJNLs8IB5iy2Xf CTy0+8hwNVVbvT8CVUPwPOedacHQOtAxqCG73LTpy9ip6imV+g90uAw2Kf0IHhZtVbpQ HdTDpssJZuIXMHWW1Lk48m1np5PQxVFAq7HSmOCbkd4Wbyq4yD1mWVITH45tA6NnJ7GV 4813CPNmPVmLzIJ5y4WBEgLE/vkZs30sohommi5+onXvhAS7mT+aU3N9x3viPSdkn9Ss PfKA== X-Gm-Message-State: AOAM530vtwS7cHRWcsQSkqmKA1WWOVW8+e1Eoyo3kW7U6Qy9tr8ky1VR ToyNG6YlgBHMkWJHDs2HfzfXsg== X-Received: by 2002:a63:e507:: with SMTP id r7mr2444072pgh.435.1623471045980; Fri, 11 Jun 2021 21:10:45 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id n23sm6601743pgv.76.2021.06.11.21.10.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 21:10:45 -0700 (PDT) Date: Fri, 11 Jun 2021 21:10:45 -0700 (PDT) X-Google-Original-Date: Fri, 11 Jun 2021 21:06:57 PDT (-0700) Subject: Re: [PATCH -fixes] riscv: Fix BUILTIN_DTB for sifive and microchip soc In-Reply-To: <5d3a00d1-9e45-398a-39cf-1e6e9924eb18@ghiti.fr> CC: Arnd Bergmann , robh+dt@kernel.org, Paul Walmsley , aou@eecs.berkeley.edu, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: alex@ghiti.fr Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 06 Jun 2021 00:40:34 PDT (-0700), alex@ghiti.fr wrote: > Le 5/06/2021 à 13:00, Arnd Bergmann a écrit : >> On Sat, Jun 5, 2021 at 8:37 AM Alex Ghiti wrote: >>> 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. >> >> How is the builtin dtb better than appended dtb, or passing the dtb to the >> boot loader in that case? > > Ah never said it was better, just it was available so there is no reason > we could not allow it :) I agree: I'm not really a fan of BUILTIN_DTB (and I tried pretty hard not to have it in the first place), but whatever we have shouldn't be broken. This is on fixes.