Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp4913617rwp; Sun, 16 Jul 2023 14:08:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlFDTvvCG1CYysreE0L7wEmPkiXtDzqU56HCInHKhW1IeZKI5iXLW1kDrCXJLGecI6A2PJOu X-Received: by 2002:a05:600c:5192:b0:3fb:3dd9:89c with SMTP id fa18-20020a05600c519200b003fb3dd9089cmr9914874wmb.0.1689541690050; Sun, 16 Jul 2023 14:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689541690; cv=none; d=google.com; s=arc-20160816; b=Pp88WUs4JyJPDRxWSvykgsHdyftL/8bF2xP4CB5MWVzEsoXEQpArL24X0kEPVDu0LC Uxaq+IhyORN7a/HpoMT5YQEvqrPFk6gCQYZzwTtxgIoHY+VaSAwmKLw90NTX5h9pcM2g hPrA/M+iq6lWldhKv2NR95MDyG/pbuIX0pyBI2k5aUfgwSeSl+G5wfkaTtIAzqiECpTO FmqTR3EMJ9gdCZMWSbSkeP0WeekWssmAUoS5pifGfkvqN2p4z3QA8h5EJoCx2g7N+0pN EJyegLuoBPI/UAOKW8roF0niKz4k6PwZANO7U4r62F0a7BvP2sCWNS6OjX4Q2L4LoFWI qY8A== 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=7tq1wVZDx1Ee8cTNAbdQF+LuoFHZgRxKwGbqSzBoTxY=; fh=f8NtyB0CDx6T8FJrJmXnrod1f49ilV/x0RSjIP3DHi0=; b=cE9aR7z3e45ylg4ZzfuzYWDGn2O689TGUlsT8jd7AG3XvWWv0ddKrN0HtoOevkh7B1 2rk8q+0BoYCPi0LyvCen+OygJ0MSU1i8JaCr1wIW3VXPRU9t1wPYD70aH+5qvdV09ZAM i0MbvO8QKjeFZA7e9M+JAgpfIM8P61V2+sR9iyJErKy+/H/caG/aMRXJpyYdEF9KXnyv pDQZHtQ7ISLVVu/FyoL1g9TtDf/pAXPG7TTbZgjZYNGcr7HM7x5vI9He3I0JR7PL70xS XbGMquUPDGSUbyU+RbCwLtIXn44iH2HtBSqt6RixEgn3zXJ+hZGeozj/Y2hlnv6Vakf/ YcQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JxAZwT70; 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 v12-20020a170906564c00b0098e24139521si13314336ejr.743.2023.07.16.14.07.45; Sun, 16 Jul 2023 14:08:10 -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=JxAZwT70; 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 S230136AbjGPTv5 (ORCPT + 99 others); Sun, 16 Jul 2023 15:51:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjGPTv4 (ORCPT ); Sun, 16 Jul 2023 15:51:56 -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 04F2F116; Sun, 16 Jul 2023 12:51:55 -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 80D2660EAA; Sun, 16 Jul 2023 19:51:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82D1AC433C7; Sun, 16 Jul 2023 19:51:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689537113; bh=QdXpkPclnK4lAqXxNcl60QtzTf94NQuVLe8JOwaCt6E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JxAZwT70NVGlbZwQfXs3bRxY95QOyNb56ICJHT63Ik/34d1A11athkHOPz1rJPaK9 rstt+VVVi58wSaEN6phoRt7kp1/3OX3JRRbqt8AnKdDybNqwG/PXsudab/5ZNhSWvU Eco80gOdIg6oZzLZYaqLBWQIvDPnjgFDEa1/P+KmFYaDJxXFSGeMathB2cWyGq964Q cCM0oJaH6fGCBh5przmwdRWODurk63sOAT1UVfh6zoXTfi00mPl/qK0d6+/g+YZVsn UOr3COFNiHaG9jbE8fVJaI2yVBG4NxcWfhjkoF0LqGs4ZpGF8bS1+WOpDkoBvyLMpx PDl1ITKjsvn4g== Received: by pali.im (Postfix) id A645C70C; Sun, 16 Jul 2023 21:51:50 +0200 (CEST) Date: Sun, 16 Jul 2023 21:51:50 +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: <20230716195150.ppa6vdjogjevlzgq@pali> References: <20230716162444.zzvkm4rh7s7lu37x@pali> <2023071644-earflap-amazingly-3989@gregkh> <20230716163852.jnd4u4ylvifgmpby@pali> <2023071611-lustiness-rename-8b47@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2023071611-lustiness-rename-8b47@gregkh> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 21:08:38 Greg KH wrote: > On Sun, Jul 16, 2023 at 06:38:52PM +0200, Pali Rohár wrote: > > 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. > > Why not just use the next kernel version instead? What's forcing you to > use an older stable kernel that didn't have dt-overlay support? > > thanks, > > greg k-h Why not use the next kernel? It is pretty simple, next is the development tree, not for production. And as I wrote in previous email, I do not need here dt-overlay support. I wanted to get rid off that warning messages.