From mboxrd@z Thu Jan 1 00:00:00 1970 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 E5A0AC433F5 for ; Sun, 6 Mar 2022 03:09:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 40BD883BC0; Sun, 6 Mar 2022 04:08:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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; unprotected) header.d=chromium.org header.i=@chromium.org header.b="DtjK4pTg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 57B8A83B8D; Sun, 6 Mar 2022 04:08:29 +0100 (CET) Received: from mail-oo1-xc34.google.com (mail-oo1-xc34.google.com [IPv6:2607:f8b0:4864:20::c34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 99DDD83BE2 for ; Sun, 6 Mar 2022 04:08:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-oo1-xc34.google.com with SMTP id k13-20020a4a948d000000b003172f2f6bdfso13892818ooi.1 for ; Sat, 05 Mar 2022 19:08:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sYUSS/DGE7AafxF7MgKSbk+md7XiHYhs6T6miNvQIGo=; b=DtjK4pTgIERNytW8Y7aKFERan8r9DpqSLC0xzHW5Ic4AO4+QqR/h/syd5HRHSjMaG0 +GWMq1fiB2c37w7QW8NDC6PdZGO07u575zz8KhVofpx6F8mhdevIzYsmRNwhCmh3Z+71 yB1LrrQLTW48qj1yyiElfD4TiEC6W7lBQzRxA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sYUSS/DGE7AafxF7MgKSbk+md7XiHYhs6T6miNvQIGo=; b=rikSQQILoya5jxHAQwxQlOeNg/3s+yKecBcvWaOJEh8KDDLiji/1ccM8ImWKP1pi6P K+UBiGi9T05ArW8AOyE7Ts1G+i+V80OUbmIvDDHInCuZXmNBkoNdqUQtgWrREmMuHIUT niy5scDFsfdclPiR1DnmXBRo7CdDXyQvPzEjROUr8UG6z6awqkd2Q01n2hfnXy0OkAF8 8t+TrdKBcz2QHmNjokaPt/Ar9EVdaI749agXhLguFqqnxixTWlchumgoMjht6jLNwKHc E8mr97OBppXaapId4PdgO6izwmg0w+WJX5Qz9K9AuTOboib5uKrcdQISt73lZ3YcHxqQ JDcA== X-Gm-Message-State: AOAM531J0HkydhPTK7yOsb7axdCodC8XF8Fg1dOfxk+udDXAa1zEiv4A tN+NfhJoMCZqM2TU1yJBiIBPZDg7+fY11xeFPuXKlw== X-Google-Smtp-Source: ABdhPJz9ZWpTuycwySkWawSoWYhhh2k8U62ULkuzUexEkhGs5eWI73EIJbxV0F+aBma4ZxjQ7qfX2+eBNUg+Z9ZVm6g= X-Received: by 2002:a05:6870:9612:b0:ce:c0c9:658 with SMTP id d18-20020a056870961200b000cec0c90658mr11656075oaq.170.1646536101795; Sat, 05 Mar 2022 19:08:21 -0800 (PST) MIME-Version: 1.0 References: <20220223230040.159317-1-sjg@chromium.org> <20220223230040.159317-14-sjg@chromium.org> In-Reply-To: From: Simon Glass Date: Sat, 5 Mar 2022 20:08:07 -0700 Message-ID: Subject: Re: [PATCH v2 13/25] binman: Make fake blobs zero-sized by default To: Alper Nebi Yasak Cc: Ivan Mikhaylov , Tom Rini , Philippe Reynes , huang lin , Jeffy Chen , Kever Yang , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" 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.5 at phobos.denx.de X-Virus-Status: Clean Hi Alper, On Thu, 3 Mar 2022 at 14:16, Alper Nebi Yasak wrote: > > On 24/02/2022 02:00, Simon Glass wrote: > > On x86 devices having even a small amount of data can cause an overlap > > between regions. For example, bayleybay complains when the intel-vga > > region overlaps with u-boot-ucode: > > > > ImagePos Offset Size Name > > 00000000 00800000 main-section > > ff800000 00000080 intel-descriptor > > ff800400 00000080 intel-me > > fff00000 00098f24 u-boot-with-ucode-ptr > > fff98f24 00001aa0 u-boot-dtb-with-ucode > > fff9a9d0 0002a000 u-boot-ucode > > fffb0000 00000080 intel-vga > > ... > > > > It is safer to use an empty file in most cases. Add an option to set the > > size for those uses that need it. > > > > Signed-off-by: Simon Glass > > --- > > > > Changes in v2: > > - Add a patch to make fake blobs zero-sized by default > > > > tools/binman/entry.py | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/tools/binman/entry.py b/tools/binman/entry.py > > Reviewed-by: Alper Nebi Yasak > > Later on, I think adding 'min-size' and 'max-size' properties for > entries could be useful for a few things including this. Yes I think that might become necessary. Regards, Simon