Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp4756700rwp; Sun, 16 Jul 2023 10:01:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlGtFE7UoMkNkqBySqJnt34LyF9i1CSPAaeA68kvu4Cx3L8bbrBRTuNEuT4I8eJLYbCRamyB X-Received: by 2002:a05:6402:35d0:b0:521:66b4:13d6 with SMTP id z16-20020a05640235d000b0052166b413d6mr5785727edc.4.1689526900174; Sun, 16 Jul 2023 10:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689526900; cv=none; d=google.com; s=arc-20160816; b=E1KYADKYuFJBTklfuM2OT6tWJ1LED/GuEFmH3PJEck6UUvGOE9Arc4RG5vsvNjORDC vIBPlJuc+18F8xUOkqE8MoYrIgN9kFncU4yQtK9W35t3Gu8+/u6KbBZB4HrwKXNCLy8f sw/cCsYspsr+y0v0b0HpKwD9ImCOftLb29TGfkM5kHMhMttZScID5iuX/2XCR+ZKCHNd 0zYQcRp+yR0fZDwz9CNn2YPM9Qwlo2jeNvun+juvdQk0YhTMJQ7VkknQused6UDkuLeD 2OhDWK3w0DTwNuV97LWQnMulkUUp3hy/c0uI5HAvS30Ux7KaS6vVQzHNoPZPad8eKXht okew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=A+tvdRKwdX+WeVQUPv6fO8IIiv2UhaqZMsAF7ADDL9I=; fh=qmyazk3jO+vO24AW9WT0lLimBpEqrOLtySY2p3B/iYg=; b=hKC77Mq+j88KOCVhg7GoWihIE4jAZvSSHXiwUYvIrUNoDWjKzy+N3J+d6WKeBVRLi4 Vm2cBuLScy/F4kh/cO+SM854gS5FAIxeUJDxnDbIPRW1rw4ouR/QoFvVPV10NZCZyJcl LZBjAcmZHdNktdoL4TgA3awMfjEHYB3be7bNYrVau1ui6o/MC1dO0cyDCDs7fQBbiFVS N8EqO8DozVL7GYxZLnGcCcQKY/MTQI7ugSZX6EU30q7IaR5KzHF1xaeJ7hxdyM37dNTw WWPHAJwPFRqR1/XdIiRi2PhZs4dToC3tnGEQfnr9tPELf5/A+Sqr+xhYdAURo3//Ue34 1ptw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=O0mNPHSN; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=OjWm1ues; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f22-20020a05640214d600b0051e26704e7csi13607441edx.7.2023.07.16.10.01.15; Sun, 16 Jul 2023 10:01:40 -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=@kroah.com header.s=fm3 header.b=O0mNPHSN; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=OjWm1ues; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229871AbjGPQcu (ORCPT + 99 others); Sun, 16 Jul 2023 12:32:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjGPQct (ORCPT ); Sun, 16 Jul 2023 12:32:49 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B33518D; Sun, 16 Jul 2023 09:32:48 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 1F2A05C0077; Sun, 16 Jul 2023 12:32:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 16 Jul 2023 12:32:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1689525165; x=1689611565; bh=A+tvdRKwdX+WeVQUPv6fO8IIiv2UhaqZMsA F7ADDL9I=; b=O0mNPHSN+o54d7wQFryJSPOVdUD5SFhQxV/Moxu+y6BjeZbvL2Y Cv9h75LVEePVhI/mJ+PKFuR1tAD/pbNHKlb+NqGJBugS5B+sq1Q7l5JiiU3dTsWs wW6170Rg4n032B9IlOn/wEd0RAa0hTJUJZ2PvwiEi3FBPlG6/NW4RPGMqJ8BmJAG JV+70nR/D6+e8+2LYsHvwTS8Vh/v/1tXNgSTc++UIFQupfc8GHOQVCsKYOefsuJF f2+J+EhhdKTwjPQ0cSsnIDomX3sUdRsNQmwmxbiCl5aIlkFrQgb6E+N5Ca9cBTpS Q864DAQgvpQHFZ5qBiv9QCumwn+96+Eq/QQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1689525165; x=1689611565; bh=A+tvdRKwdX+WeVQUPv6fO8IIiv2UhaqZMsA F7ADDL9I=; b=OjWm1uesvUzF1BcepDPInpE3Z18QDC+e9qWEMIFepQ0E2FwIrJu q6axm8AeKZoqMc2/R0O7uJoaAHm+avxNbp4bCp+e7dHBf830WjRhxd0GFbrGalIP ravHEQPhq4JZYv+d4AmyYQm/GDzhSccg8yMn0ECmQz37ZMB/JvhitQmeT+iu7g+5 EQ0qiFqQN8YhUtHMWr2hL2clqyBv5ssMK9WWrxie6CiFqJoiXC7pgX+zmP9tHhbB vYgys1lfOQpFDn087y2tY2H2+RyoNcblp3oMIpCSuYWl/4Nh3mAnjUO+GBC0QiJ/ lBLaJCJVbQ+mqmdLrlk+ELs3sTLcgNpHkGA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrgedtgddutddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggugfgjsehtkeertddttddunecuhfhrohhmpefirhgv ghcumffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeelhe ehudduueeggeejgfehueduffehveeukefgkeeufeeltdejteeiuedtkeekleenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhroh grhhdrtghomh X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 16 Jul 2023 12:32:44 -0400 (EDT) Date: Sun, 16 Jul 2023 18:32:42 +0200 From: Greg KH To: Pali =?iso-8859-1?Q?Roh=E1r?= 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: <2023071644-earflap-amazingly-3989@gregkh> References: <20230716162444.zzvkm4rh7s7lu37x@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230716162444.zzvkm4rh7s7lu37x@pali> X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 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