Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp4780722rwp; Sun, 16 Jul 2023 10:33:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlEnOhf1RUcQCcefgw99MOYP7eP/70EZfhbyd1GgqaK8OsU+D9CXFEb4RAuzpIHbe/BONSyC X-Received: by 2002:a17:903:230f:b0:1b9:e97f:38ac with SMTP id d15-20020a170903230f00b001b9e97f38acmr12155770plh.56.1689528793019; Sun, 16 Jul 2023 10:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689528793; cv=none; d=google.com; s=arc-20160816; b=gm8FQM81FAgHaCdOyO2oH+rCJCaQxqfVwnDXIxmVnE4lP/2NjNDV8uyXzXoucXTSq1 8jrbVb171rIaqrkxMv1RMJfJNrBfSg+/ZPr/PCHAUHd9f8hRUYPrPwYZv53OFDnFcozT lWjcRd1KzcaX74zTLSVPkzxLDawakPhWKK2axafNZlKaIKfEzpVeYCpB04IcOyprhdwp McuK9vWs7y4BJDwcgwugoJNWKSlHIgh6Con6Nu+jabXfA/W9ANSRDltN2ksfBYJUXaOb m/idR9hrFgCNa3kr7LjNRJBjqNF+dzgrkSAxBhL1Ps7u1bmOTuTWwKKUrNaSk4VN4/iS XZIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ydh0RIn+dE0WJD95Na6GODJPgrRKbsapJE+eexYGJ1U=; fh=f8NtyB0CDx6T8FJrJmXnrod1f49ilV/x0RSjIP3DHi0=; b=O2Zt2i1dW8FdcMh4g9Ll+Ws/DmK/1A6D6EIlCa0qrxLLd4lwbKscNBBEifKmr9m+wn kYmFVJ9akkcgQjSZL1L42uehTNOh+uyGbKg+0lQLXQiSt7v/+TeM4n2vPClYxuJl8WhT IKqXIbtiAvH3P3sjvuz/TPxxy0E8SzElxAZNy8rc5Kcw/eDvNUJ3wFxEijGx9u+jugAK ySikKDG8YguKkhEmlByvgmJlGsJYWMWhHX2yAC+gviDIoSD2bZYB2sGXvLBDu90qhoVF 6sC3+dpBulMzwOQ/nhVyFwaa81yy1LGaRiVpFkbnGccHRwRL1I52/OpCPIimNo+a+reB 8POQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sAPyMk/3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t19-20020a170902e1d300b001b1a2bf5275si10204619pla.74.2023.07.16.10.33.00; Sun, 16 Jul 2023 10:33:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sAPyMk/3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230024AbjGPQi6 (ORCPT + 99 others); Sun, 16 Jul 2023 12:38:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbjGPQi5 (ORCPT ); Sun, 16 Jul 2023 12:38:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D60418B; Sun, 16 Jul 2023 09:38:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 01C3A60DB7; Sun, 16 Jul 2023 16:38:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41CC6C433C9; Sun, 16 Jul 2023 16:38:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689525535; bh=8kkZrwmxu+YyVqOyI41RWS0Nx6uKCfRObOki5FZXhoY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sAPyMk/3PLUrAvI8WWFjtN/WTUX3J2/Q/fYHTGbRWJAhjFzirvwiHDZo8lrhslLxu dL3lyRAQXiAJ1i7UnrXJziihIH7g9dl72HW+pR4NBb0qVKoZ7nO5I/aluC83jCnGy/ E9mqmA4rihuNq71vffa59JvnWuKQqSOHl3MD07zl+nWEzdv1AsRhCLo4ovsCizbnx3 yQOnJJrKp8WUMpr9olLhBoM2QT6EukZJ6FQj3Q9TyxMplIsvYNzbnpvBdESmb1wJtj SVaCj1OCw/RAnljHVJkzWYFBGQ2uYbbkffR5Ah8iYzRoy7/BRoAFvEQSS/YHvq7oMR L67Xc+W6+S0Bg== Received: by pali.im (Postfix) id 81B0E70C; Sun, 16 Jul 2023 18:38:52 +0200 (CEST) Date: Sun, 16 Jul 2023 18:38:52 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Greg KH Cc: Aurelien Jarno , Florian Fainelli , stable@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Backporting commits for generating rpi dtb symbols to stable Message-ID: <20230716163852.jnd4u4ylvifgmpby@pali> References: <20230716162444.zzvkm4rh7s7lu37x@pali> <2023071644-earflap-amazingly-3989@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2023071644-earflap-amazingly-3989@gregkh> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 16 July 2023 18:32:42 Greg KH wrote: > On Sun, Jul 16, 2023 at 06:24:44PM +0200, Pali Rohár wrote: > > Hello, > > > > I see that raspberry pi bootloader throws ton of warnings when supplied > > DTB file does not contain /__symbols__/ node. > > > > On RPI 1B rev1 it looks like this: > > > > dterror: no symbols found > > dterror: no symbols found > > dterror: no symbols found > > dterror: no symbols found > > dterror: no symbols found > > dterror: no symbols found > > dterror: no symbols found > > dterror: no symbols found > > dterror: no symbols found > > dterror: no symbols found > > > > Bootloader also propagates these warnings to kernel via dtb property > > chosen/user-warnings and they can be read by simple command: > > > > $ cat /sys/firmware/devicetree/base/chosen/user-warnings > > ... > > > > Upstream Linux kernel build process by default does not generate > > /__symbols__/ node for DTB files, but DTB files provided by raspberrypi > > foundation have them for a longer time. > > > > I wanted to look at this issue, but I figured out that it is already > > solved by just recent Aurelien's patches: > > > > e925743edc0d ("arm: dts: bcm: Enable device-tree overlay support for RPi devices") > > 3cdba279c5e9 ("arm64: dts: broadcom: Enable device-tree overlay support for RPi devices") > > > > My testing showed that /__symbols__/ node is required by rpi bootloader > > for overlay support even when overlayed DTB file does not use any DTB > > symbol (and reference everything via full node path). So seems that > > /__symbols__/ node is crucial for rpi bootloader even when symbols from > > them are not used at all. > > > > So I would like to ask, would you consider backporting these two > > raspberry pi specific patches to stable kernel trees? Upstream kernel > > would get rid of those bootloader warnings and also allow users to use > > overlayed dtbs... > > What kernel tree(s) should these be applied to? What trees did you test > them for? > > Also, adding dt-overlay support does not seem like a stable kernel fix, > as this isn't a bugfix from what I can tell, right? > > thanks, > > greg k-h I wanted to discuss what do you think about it. As I wrote my motivation was to understood and get rid of those warnings "dterror: no symbols found" from bootloader when using DTB files from mainline kernel (as opposite of the DTB files from rpi foundation). And fix for it was just to generate DTB files from kernel via dtc's -@ parameter, same what are doing those mentioned patches (but they describe different problem for which is same fix). I thought that fixing those bootloader warnings is a bugfix.