Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1101477pxj; Fri, 4 Jun 2021 06:11:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgd/tx0CS4PrcTaaScqDweSFrpyh2vwIWRN4kNtOVC3XJSCehWcFZJAk6oSEmI51/h+2PP X-Received: by 2002:a17:906:264c:: with SMTP id i12mr4082613ejc.101.1622812268012; Fri, 04 Jun 2021 06:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622812268; cv=none; d=google.com; s=arc-20160816; b=EaEspgqEuI0pr7MZ49h/odWKcb5G+44miUa+nlW2KiU8UG1zmnvfvswoF4IpNr2Man UxNkNwkDBSzPTZRHa0uJHLU4kLN1Jd1LAo92b5MmzWo66X/0nkmb0fdOdUKXQhB6Q2p+ 3MyXlhaJ2xA50xcVkSNA1XMnoeLKZooyQKS4tiz3okJa1DS5uE/WVgGgVasp/OfhoBiQ pcW4qsKuUtkmOMVd85cVZKI3OKWsBrcdtpPVhHug302ZeVs2e848QwtYI/yY75JBg2VI HFsCTB8GoLHLhnby2HrMnqjUV298I6H/oiN1jpSN3IqR1JMx5WOD6NQzV01aMZ0HsoUk HIAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=2IDYJsNfP3lvmd6baQ1d/o/XH6tdv0Gv4LjuxSUqq4M=; b=J7KqCt9isYi3glsog+us1YTYlgaV410hN2dg2DM4Gd6jUSBBxV3+QQH8yHD90HfQGq KxN2iF0cMXXXfncPsagJGSdI4/mhwZJX9WBOMG501bWRFW0vcodQNa0bGJi3d0zDUaFv Dk9DL7pAtSPoB6Mrkfq6nEFb5WmLwwmTmKTcp25PsDUQQgiM3akM1RSFCJkb+LF98zzb 7WGxYfafBolfdMbvaWEq+fRgl8Sob9M3Yxuju1pnRdmHgHY265NHybyblWHKk0819xxN I5DusZaY+SkfxQYOmsNJp2JoH1z4nZw+g/EUDcuqAwkSa24QIRT533+iy/bZzUtd0zbQ VeQQ== 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 w18si4243315edc.598.2021.06.04.06.10.44; Fri, 04 Jun 2021 06:11:08 -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 S230207AbhFDNLg (ORCPT + 99 others); Fri, 4 Jun 2021 09:11:36 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:47507 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230041AbhFDNLg (ORCPT ); Fri, 4 Jun 2021 09:11:36 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N7hrw-1lJzeJ0CeI-014grh; Fri, 04 Jun 2021 15:09:49 +0200 Received: by mail-wm1-f45.google.com with SMTP id h22-20020a05600c3516b02901a826f84095so613448wmq.5; Fri, 04 Jun 2021 06:09:48 -0700 (PDT) X-Gm-Message-State: AOAM532Cjn2Pkz89cMAKF92UYv9RGkqVUfgXbw0z9roZH7a6ekbrEtI9 5apxJPrpk48tBOTwOZhmfQWbYgLZ+aN6oAS5GEw= X-Received: by 2002:a7b:c849:: with SMTP id c9mr3677194wml.84.1622812188705; Fri, 04 Jun 2021 06:09:48 -0700 (PDT) MIME-Version: 1.0 References: <20210604120639.1447869-1-alex@ghiti.fr> In-Reply-To: <20210604120639.1447869-1-alex@ghiti.fr> From: Arnd Bergmann Date: Fri, 4 Jun 2021 15:08:05 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -fixes] riscv: Fix BUILTIN_DTB for sifive and microchip soc To: Alexandre Ghiti Cc: Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , DTML , linux-riscv , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:YVJc7OWAWU7GAvZqagl35gj2DCcFhbhF7GnWixU7eVSHQRUOVrc T6zud0qNlFvjXJz+qQaJclwyEZetFmZnc7SrdVNBp6YaeHnYO5sufcfJWpD+6uyTh1Qkldy tu2D7p2MxuSmIvRCgo06Xjp6azjpdMbpJD5Hw4sdOsBPMdntYCrwJDb+mqmNh7hqPGv6wBx Q53Rq28e41IPUBm89V+kg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:WVKVmBNwTsU=:m+XH20dnWnI2PwIArnEOXc vOzgQKTo5/hp5WgHDCUtsAtKfz6XMbDA2nce3nhCyFmPVe0HZkrjIjuKfxQyU4w7y7Upiu9Ll gW86taA+rb0+8CSDuDcqCTzTW/vuzg4EN3wL5gQhuJ8xwJFUUaVTqJYVpu25CSHjx9PcOzkrJ ruhT3jGaczJfGdKalN2OAEtzS/Xcyx8TDUt7XaMnbZpHjgzcPPY6lCmE1ReOXe8asRjM+8D3m Sq8QyWFTQHWMlwN//eyRy1jnttODZYRByx3O+ZY0SnusgBqAU3TLtostJexTtCxSAbt2Rg48J G9plCSXBWFjmyGoLPRWkBr+Tc9rHiHVPECdHAfoA7Yy4Pmz5GDMbhx7RfDidGay7JJ1Sun9V+ E4vI7Qhfp8m+k58Zla0HkFWzs77UUqkZubdB/0BAUNfAZ+zbvTtoGwjPawoe0rjXpVgjPvQ+h PS/6wdzOxxTprre15GQu5jqWR6hK3ddvLtsLUSenKO/WwLcPCqtHTzRNyB2q7QYGek3XSgxMG WGyx34JluSNrieDKfvAGfACTk3sddFJef4i95VKLrfYwjV0GkJVG/rC2zzRqtNFoqwpUGwNp4 mN2fE+6P7sp5nS11XFgcGPOfdoTXnTU72zjvo9pH3oiTKr3Onc662oYURXL399Yc+mzNylPpx NbPc= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Arnd