Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1305900pxj; Fri, 4 Jun 2021 10:51:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXkxnDFF023b+y3jWi3ddzHGdYTikz78+rB36YvUrXyQl2APLwiyxYcJe1ZrEicI603YHH X-Received: by 2002:a05:6402:274b:: with SMTP id z11mr6022236edd.225.1622829103018; Fri, 04 Jun 2021 10:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622829103; cv=none; d=google.com; s=arc-20160816; b=HiQBn6E6LSkVEsbNU7OcUD3LdEGpmuFD60kzWLvqs12r25+tuJR6MJ7BDjg1C9VHzW DVb28RbZ8uv//fLlZ0UX430PecJltUlltrKbvHUvHdgdk2iLaZp3ADDHyJnfxlqvHctw VOLwqbEVVt07n+sI5ITmWmfEaAzjJ8ditEMxlttmYNtg8dFMAu995QhC6p4k8bdA2jqB 5gDPpsXNQlLnZRzYv/NCbl/jQGdjAP9bpSVZ0+/ONWi/nqpRLmjUu38KLS6zgticE9Xk PeeykfmZ8xrixrRWwfM7BcHALsgy3UipxgcVRivJ/VDFczggFeB3x07iCjDQokPTMEo/ HRNg== 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:dkim-signature; bh=c0jQ6LHez3RP/lYmI6QWvp1COoXeDJHGCUAVhBh30og=; b=ceVdroMvK1OKKPdzpaGPRO9y3qaXS3ZSm7hHVTxO8vw71EboR+cYNRfYghYJi2qH0Z 6lwA6SuEBSTcqr8I/JXH7ouyAn4UPcNNd/E8XU3Xb18DSG3W4jYsH8RmO/oSvvMAlSW6 ppmRtnLGhoRYopOUXWVkod29jnyBODFRGsM6/DDr9e8RdsY1JklWCkdM30w1HKzzT0Fj 86+ohRNWhwgnSlxi2Pwj2PnxK4tnNoK12dnP8A0rLPbnUd4kGouytEzomrwR37fU8nNU lBe7KDK0/QIDezeTXpoYfE/Vortt4mIEiW7zFG1gRACRE/W+ZglSu8GLIkrvPXQxyr/i DhtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=Jx1r9kp4; 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 bm25si5101683edb.202.2021.06.04.10.51.18; Fri, 04 Jun 2021 10:51:43 -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=@konsulko.com header.s=google header.b=Jx1r9kp4; 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 S230227AbhFDRsn (ORCPT + 99 others); Fri, 4 Jun 2021 13:48:43 -0400 Received: from mail-yb1-f170.google.com ([209.85.219.170]:33618 "EHLO mail-yb1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbhFDRsm (ORCPT ); Fri, 4 Jun 2021 13:48:42 -0400 Received: by mail-yb1-f170.google.com with SMTP id f84so14892881ybg.0 for ; Fri, 04 Jun 2021 10:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c0jQ6LHez3RP/lYmI6QWvp1COoXeDJHGCUAVhBh30og=; b=Jx1r9kp4r9/zhm4TcUeJT+VVRZUq4s3fA2n9RSvyPDQXw0s90sMnIKosVRTaF8XqY+ j/xQFmuHwQ9rRiWGFEFqLVZASWL5AONk/LjxaFUdb2Ma1kCbNmIzSwvzs2Js7PTANAZ+ fD+/W0FxN+q6qi5l5wUYItXR3tePMyCL0gQvQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=c0jQ6LHez3RP/lYmI6QWvp1COoXeDJHGCUAVhBh30og=; b=kAzezCg4MPwtpzL5PK2RIMIsDDH7jTm5juwHawGYRWhjIod3PCYNlmakYQk8VGGyfd yhBoJCT30Ap2v7xd7VSLLidVLD+vfbwUAeVnNVs+AfQhn6/nEcwy7H1xFK8yvmPrA9ga yfAPFR6EFbGTCPXeNxun7hfLrTIIq8xhCNccm0rdwYKl4dcKaWcZ5vDN344dhN3aYc+c uAdcar8q4PVVC7ikxsTQnwSq1POvHS6+bSsCtD/sGxWJ5QDLKKgsZYXNlETjiNeq5xgb noGjpXefStuc+ox6lmzA2NAM4UasrxCgDNRoHyJwa0m933Z9TN+A5eLr9vYmL5z7Z4yM mbGQ== X-Gm-Message-State: AOAM533XfvuJ/DkOmoBAOWzFSQRuYWKvF2UxWGAYPu8OP3fVUI6V/arV IlwQTzSugfk0t5OYU4VYo1l/6OYrFFHTGeKC7+Ln8ESB1hY= X-Received: by 2002:a25:1b0b:: with SMTP id b11mr6882729ybb.302.1622828756060; Fri, 04 Jun 2021 10:45:56 -0700 (PDT) MIME-Version: 1.0 References: <20210604120639.1447869-1-alex@ghiti.fr> In-Reply-To: From: Vitaly Wool Date: Fri, 4 Jun 2021 19:45:45 +0200 Message-ID: Subject: Re: [PATCH -fixes] riscv: Fix BUILTIN_DTB for sifive and microchip soc To: Arnd Bergmann Cc: Alexandre Ghiti , Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , DTML , linux-riscv , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Arnd, On Fri, Jun 4, 2021 at 3:18 PM Arnd Bergmann wrote: > > 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. can't quite agree here. If we take XIP, it does make sense to have BUILTIN_DTB, since 1) this will not be a generic kernel anyway 2) we may want to skip the bootloader altogether or at least make it as thin as possible and 3) copying device tree binaries from bootloader to RAM as opposed to having it handy compiled in the kernel will be just a waste of RAM. Best regards, Vitaly > Arnd > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv