Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 436EEC433EF for ; Sun, 26 Jun 2022 20:32:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C87BC811EA; Sun, 26 Jun 2022 22:32:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=web.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=web.de header.i=@web.de header.b="OQj3oK3w"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4911081970; Sun, 26 Jun 2022 22:32:25 +0200 (CEST) Received: from mout.web.de (mout.web.de [212.227.17.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F0D5880F88 for ; Sun, 26 Jun 2022 22:32:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=web.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=smoch@web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1656275528; bh=n9xeDnUHIFCBg4lAD4EPvlgiICucyCQQI+faIltK5Nc=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=OQj3oK3wFphqzwz2CDebo1Q9Ch0GBxco1zDH2+iTN/IFtzwPryT3hj9EiqOxgKa38 63rpjXXgNr9ARwWsfutdqvCNTIoMEewHGrvWfR0v7O7RofO9cBpQ0jCVDuGlmAK4g/ fJ+BAJhRzrqBwOIbyoBs/83Fxw5iiKMv2UQLWJG4= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.40] ([78.55.52.59]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1M28SB-1o3eBF1TAn-002Gbc; Sun, 26 Jun 2022 22:32:08 +0200 Message-ID: <7b6dd03a-add2-9880-4462-9fdf2ee23c88@web.de> Date: Sun, 26 Jun 2022 22:32:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 20/20] Convert CONFIG_SYS_BOOTM_LEN to Kconfig Content-Language: en-US To: Tom Rini Cc: u-boot@lists.denx.de References: <20220625150250.1398291-1-trini@konsulko.com> <20220625150250.1398291-20-trini@konsulko.com> <241c17fc-22dd-0fe8-62ba-37c2cfdfde8d@web.de> <20220625185136.GR2484912@bill-the-cat> <20220625224412.GS2484912@bill-the-cat> From: Soeren Moch In-Reply-To: <20220625224412.GS2484912@bill-the-cat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:SMmVWi8Y5oTRV8nXiy/HziD91DsTJFTe3ZC101P5qVXTrdxf/UD 656qfmse+3Ia122RVti46OaBXiwmWh18HbKDH2Hoei6oeliKToi8O+4hz9eSdQrQZEbBmcA kkENcp0P3htiDfqdjVzcAsxnc1YGb4gIC8NA5uwOpAgFz4OGmh7rdLGUem3ViJ/d5wqTI6M sgU8sOjDfbGiL2/ML4sEQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:IpvhPO2riK4=:e9PNvTuWWgZKk9mjHT5qct wwux0Iq/jcYHKZCgw5DCiaGeAaBZt910AZXBJm9QJTICcjSXhxmuMTB4OntdcetOHbw7JVTUD 2FOyJooY5tOVKvQ0LDQ5OrMMEKetMB4FJGG2dB6Pgi26bDEtkFEMy8ceu3jziPLW5Y0WIxFwO CJ41bUCFGI4sVWQc22JArYMMI3Ppbbmc8vje22XToTdod5sgZb43UQbcojUT24vnYXN2Iox8u h8Wo9EXwpUrI7IT/ybk4Vs7PoMtocpFFhTIE97EuHk2FNAHcUnpKfR4zqRzY7PaOPTg3QdFlz AVgLLQ4wNwUxZpMRUvSUhtV/mnXTqgtP08w6reHih5MlHaOcwUrdUtz2ryBvikt+jvcYCgLzy RixlYeZ6QRVaytAwa81NMFm707ByfeFL3Siq/7qOvDLbmsaZAShok853EQ/JfYAP9pE1o8bws nK7D3RZFEFkjnmRrRF7kuzdzUMRq3WzdPpRXAK2kO6TLVrd9fAYrVgp72FUXGg//MjaIozMdT hAzVpQm0DjDO8ZaX7d88/hz7ndlEJ1DA5faN30JcfhPJQYybP9dy6wQkuLXyb1vCf0Asu16g5 ZpaCKlh9EVhnJokmEWeb5cc39PKwpjO2/PtVqwApDl5rOYGMpHZmj+ZYTKH8bRmjZ9S6kIqjT sviWQZ5BZ4RRZ15f7CGMgO2dVrDhr4lmwJQLqxldPnAbwCq1KU1rEPSODHBCQNh1P7ip1EuIz uwP+U1iqekGbUkzoUk0nIoKO31FXOv4XYOkw4AxKPi7XVFoJ8Rf/jee/x1B61CX0l4dBkj9HJ p3hehsLilRZ9FIncnjMq8xGKZA6Jh61kRZxnZrRx3MIZenXX9nSS7JSHysGyt4aMtexXPETx0 pYIsfoqp7sj9Dk796iE+w8jXNLMxgP97DnfsEpPk0WVyjL0vtpaaTs/4GiivxPoCMAst6DR1/ WDqzDjU6L1oaAsrpwDTTTVnYukpbbfGhtVYMidubGzntXp7/wiJk/fR3k+C4nPaUbMQN6bkDC tvgtLpIScIv2cyW9OQ/mHR0UxBJevD9yNGEdV3bHCAls/sgQT6p0KWyiHP7QZ7tqlN+VGDA13 ho+L6nbSb4fk/aFgGV9j3UrcKfMHY13xEym X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 26.06.22 00:44, Tom Rini wrote: > On Sun, Jun 26, 2022 at 12:01:23AM +0200, Soeren Moch wrote: >>>>> diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig >>>>> index 892d7c60d283..f0ecfd049d65 100644 >>>>> --- a/configs/tbs2910_defconfig >>>>> +++ b/configs/tbs2910_defconfig >>>>> @@ -35,6 +35,7 @@ CONFIG_CMD_BOOTZ=y >>>>> # CONFIG_BOOTM_PLAN9 is not set >>>>> # CONFIG_BOOTM_RTEMS is not set >>>>> # CONFIG_BOOTM_VXWORKS is not set >>>>> +CONFIG_SYS_BOOTM_LEN=0x1000000 >>>> For tbs2910 there is another value set here - not the old default, not >>>> the new one. Why? >>>> This looks like a carefully chosen value, but very likely it is not. >>>> >>>> Probably also this value is fine for this board, but for me it makes no >>>> sense to set a board specific value here. >>> I don't follow you, sorry. Since tbs2910 isn't X86 or PPC or ARM64, >>> it's using the current value instead. Before this patch >>> include/configs/tbs2910.h includes include/configs/mx6_common.h which >>> sets it to 0x1000000. >> OK, I missed that part in the long patch, my bad. >> >> As I wrote, all possible values are probably good for this board. >> I just would prefer to use some default value (as before), since there >> is no special requirement for this board in particular. To keep the >> old value in this conversion of course makes sense. >>> Which means I probably could put a || ARCH_MX6 in >>> the Kconfig entry and drop out another 84 files (3 MX6 platforms set >>> 0x4000000 instead today). >>> >> That would make it more obvious that the old default is used for >> these boards. But if you prefer the board specific defconfig >> setting, that of course is also a valid solution. > To be clear, here (and unless I otherwise note, all of the other > conversions I've been doing) the intention is the same values on every > platform, before and after. Many times the patches end up small because > I can do a few default A if B lines and cover the vast majority if > platforms. Sadly sometimes we get cases like this where in hindsight, a > bigger default, or a more consistent default for every architecture > should have been used, but wasn't. We can clean it up after but it > needs to be separate so that someone can bisect a problem back to when > the value was changed, not when it was migrated, if there's a problem. I totally agree. For me it looked like the default was changed for tbs2910, but it was not. My mistake. In your v2 it is obvious that we use the same defaults, great. > > So this isn't a super platform dependent value, and should probably be > something like 96MiB for 32bit ARM (I forget what the practical maximum > image size is, I know I talked with rmk about it about a decade ago I > think), I _think_ the maximum text size (or image size?) is 16MiB for arm, but I'm not totally sure about this. But this would match with the mx6/mx7 defaults. > and some other similar sane maximum for other platforms. But, a > follow up to do that. > Yes, changes should be done in a separate patch. But I do not see any need from my side. And I'm happy that there is no board specific defconfig entry for tbs2910 in your v2. Thanks, Soeren