Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4689992rwl; Mon, 3 Apr 2023 08:20:11 -0700 (PDT) X-Google-Smtp-Source: AKy350bItlsI1tIEZj91N7FyllcEGGRFOO0X1nohYkbTx3EXVXO7ZcE3e2AVzyMLFPmbTfw6NRlX X-Received: by 2002:a17:90a:e7cf:b0:23c:8ee2:bc14 with SMTP id kb15-20020a17090ae7cf00b0023c8ee2bc14mr44235203pjb.24.1680535211236; Mon, 03 Apr 2023 08:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680535211; cv=none; d=google.com; s=arc-20160816; b=X/diZlL58n78IwsdoCR4AhU5lXqU16WtHBOLrtSeVi97k2VLxmJsUS7kKcHogJhL0T 6+cGmwKQw/JBwPggMrS+7jwYMC9uiM9qHwVAZdUkV1Zt5TO/3YO26ofBTgt0GE0pb57f q8r7MIjdPSPMhqnBmaIgSJ7dY/S2LfffIQz1WkbBiw88urEN1H3Xcf6dhUy0u5BntaDR FP/rLSdTZucc/5+z6nw3zFZhhHjMAYxou2V+qx6C1EgiIO2gMsHm9LYfeoAwAk7yx6Y8 M7GGIPwTF5KYZaITBiJczAvGJZ8FXmC8PmrDXrKpFHeI9KrzpON4Fi4OF0L3GsKbJ0ub B2gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:ui-outboundreport :references:in-reply-to:sensitivity:importance:date:subject:cc:to :from:message-id:mime-version:dkim-signature; bh=gkNhZo5WW9JiUEfy4bmabMQloAjSbFROujFS1ASy7wI=; b=nYDVY3pmAlS11ZqIP/anfket39eOlIBTlYW6xlZCH0tgK1LooO++1Wnm/PWBAvql46 ELWVU1DoAQWEsNTxKV262o8ojPG2z+NZKsgrE2YzuPhIn9iPQmGkfBtaByoEyvk2E1RD 3BPRQKxzlkaNDiKRlGXqNPSHE3bVeT30MyvHlInvFzmJoiBBNsi9N2r7+ryGH/m339DP 8volF9vG7S83MWpT+zf7YvTH5UecJM3qMvLQUFgoKnTY3aSc+VibZ40hHTsWsh1qJQsr VIwTXZghROtIZJlQXls6KXrH7yDuPJ6dzBXm9DWkoAAGhbELuD/TMbD94HXUZYUGatij ZxsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@public-files.de header.s=s31663417 header.b=FnNK3+zZ; 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 lk10-20020a17090b33ca00b00233b40ad95dsi8273495pjb.177.2023.04.03.08.19.58; Mon, 03 Apr 2023 08:20:11 -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=@public-files.de header.s=s31663417 header.b=FnNK3+zZ; 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 S234268AbjDCOzd (ORCPT + 99 others); Mon, 3 Apr 2023 10:55:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232919AbjDCOzV (ORCPT ); Mon, 3 Apr 2023 10:55:21 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F9F29BEF; Mon, 3 Apr 2023 07:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=public-files.de; s=s31663417; t=1680533693; i=frank-w@public-files.de; bh=gkNhZo5WW9JiUEfy4bmabMQloAjSbFROujFS1ASy7wI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=FnNK3+zZEsxo9v5MO1V6kmIwFfs2pS1tnIpJ1svTVnTBSAQuR0LWBAWJOm+SVwloC dCnzlyxWJD5KMqoREQCANsLU9G8JgjW9drqHkPFDsvh9jfBJcJjRQF82M1zwNAv4s1 +1WffXDpxap/TFB2HIzSLuyxlEacS+1CWi6vk2SozpglnnVKQZhT01mEEaNlVN+KPA l6FdBnJflSCplFhlRfn9AmMxph/FGHyHroOQ+8BXxKc/UIxPM31dTeHbCCCzyB9n1c RWjWumHl+3Kx7nKAjDH4zfAKuTJghAJqQ/4viWyQK6MLLZqmUwoJC55vAboVJ0kdLX p4cWNUT+NMztw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [217.61.152.94] ([217.61.152.94]) by web-mail.gmx.net (3c-app-gmx-bap35.server.lan [172.19.172.105]) (via HTTP); Mon, 3 Apr 2023 16:54:53 +0200 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: AngeloGioacchino Del Regno Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, Rob Herring , Krzysztof Kozlowski , Matthias Brugger , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Aw: Re: Re: [RFC] arm64: dts: use size of reserved partition for bl2 Content-Type: text/plain; charset=UTF-8 Date: Mon, 3 Apr 2023 16:54:53 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <0f43fa98-4fe6-bc9c-ed8d-be7cec0dda42@collabora.com> References: <20230403105818.29624-1-linux@fw-web.de> <601a8435-8e2a-2c25-5fe3-40be62269469@collabora.com> <0f43fa98-4fe6-bc9c-ed8d-be7cec0dda42@collabora.com> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:eQxPOhKQxRCjG+y+jb7ldEpx7Cd2jWY2jXjipOo/8vv/3VqJyHQ+OR9DxI+jxPbv/eOWv wBSGVypHtet6WG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2H5Faz5 kefX/BiWBXy5FFsIpSzIm2wA== Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 > Gesendet: Montag, 03. April 2023 um 16:04 Uhr > Von: "AngeloGioacchino Del Regno" > An: "Frank Wunderlich" > Cc: "Frank Wunderlich" , linux-mediatek@lists.infradead= .org, "Rob Herring" , "Krzysztof Kozlowski" , "Matthias Brugger" , de= vicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@l= ists.infradead.org > Betreff: Re: Aw: Re: [RFC] arm64: dts: use size of reserved partition fo= r bl2 > > Il 03/04/23 15:56, Frank Wunderlich ha scritto: > >> Gesendet: Montag, 03. April 2023 um 14:43 Uhr > >> Von: "AngeloGioacchino Del Regno" > >> Il 03/04/23 12:58, Frank Wunderlich ha scritto: > >>> From: Frank Wunderlich > >>> > >>> To store uncompressed bl2 more space is required than partition is > >>> actually defined. > >>> > >>> Signed-off-by: Frank Wunderlich > >> > >> If this doesn't get changed anymore, I'm fine with it... but a questi= on arises: > >> did you send patches to add your BPI-r3 board(s) to upstream u-boot? > > > > currently i use the rfb dts for r3 in uboot: arch/arm/dts/mt7986a-sd-r= fb.dts > > > > this file in upstream uboot has no partitions defined > > > > https://source.denx.de/u-boot/u-boot/-/blob/master/arch/arm/dts/mt7986= a-sd-rfb.dts#L144 > > > > but i added them there too and i wrote content by offsets to main devi= ce (not to partitions). > > > > https://github.com/frank-w/u-boot/blob/2023-04-bpi/arch/arm/dts/mt7986= a-sd-rfb.dts#L154 > > > > so yes basicly it needs to be send there too, maybe as additional dts. > > > > I strongly encourage you to send this change to u-boot as well as changi= ng the > kernel devicetree... and when you do, you can add a reference to the lis= t and/or > commit @ u-boot on the commit that you'll send here for the kernel... bu= t there's > another question... imho uboot needs an own dts for the board (copy from rfb) for this because= of another change (tick_dly) and i have no rfb for testing. > ...what happens if you run the kernel on a device with an older partitio= n layout? > Does anything break? > I don't think that anything does, since this is read-only anyway, but ju= st to be > sure... :-) i have no information about the second partition from the old layout...it = was only named reserved. as openwrt also uses 0x40000 it should be save to use this value here. if the bl2 does not fit into the bl2-partition (cut off), board simply doe= s not boot, thats why i want to increase it now. my current bl2 is 197K for nor and i = had this problem. > Besides, you have to fix the commit description, but you knew that alrea= dy. sorry missed the mt7986: part in title, or did you mean another part? i put the additional information below --- to not be visible when patch wi= ll be applied. > P.S.: When you post a RFC, giving it the right commit title helps someti= mes! :-P yes, missed the mt7986-part here, just wanted to hear comments first if th= isis the right way