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 9D692EB64DA for ; Sat, 8 Jul 2023 15:28:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 68A2786373; Sat, 8 Jul 2023 17:28:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="dmIqEcm9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 418E386384; Sat, 8 Jul 2023 17:28:41 +0200 (CEST) Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) (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 09000861A1 for ; Sat, 8 Jul 2023 17:28:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yb1-xb2b.google.com with SMTP id 3f1490d57ef6-c5e67d75e0cso3489373276.2 for ; Sat, 08 Jul 2023 08:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1688830117; x=1691422117; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Cq57qybOuw/8hoOlWE5LGT20pUPVxN++OzcJVLQ8iSo=; b=dmIqEcm9tS+2Lzlw7C8mqRKp/vC79G5pkAgZn0MAFqtkh9/p/mFw8iouIixku02kk6 dTkpdjI5wRiRFZmPYJblmc7dahYFMv2KMQxtz9Tr1jP/wl6IKQpBMu5i8IQ/xMCFNL+O PWlRfLw/wv+q49zwtsHL27T7yCxcwvaQqpmVs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688830117; x=1691422117; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Cq57qybOuw/8hoOlWE5LGT20pUPVxN++OzcJVLQ8iSo=; b=cPWEH5A1nWv6Dg980WEKW6WyWFatyKaNF+ubK9xlpAQbEohWldp1OSIITIo1ZvvV+l OG1xEk/g4Y2r0Lq+oqimMSRRD3hZ1Fo3A2sIT+dcNkNZn7tec1n4EBdbkxGrCAl0WUM0 7aLEXnNW77vp3+ayxq7lRbeZ/WGNAP+mtAycpxcDnQNBbOHMYlRTvNJ6UkVwJLcvXiPy 6sLHoKJ3C9v6cS/LUcZ46SuLGFf25qhYe0qVbh/g0hJ6iDYz+sUYVPaZ0ttlIhIb4Or3 vRCh5gQ0+fG8YD9c5MoH+WPcget3PZBPNJEWWL/t9YGiBUNgo/7HKE3kf5pJJ3/Nqvhe 0j2A== X-Gm-Message-State: ABy/qLbuKSwwdwaRy+E/N9q15H2EbsJUv0D9S1keSyk1Fwlr3zw+8xxx 6LFiZgGZpyfuu3WucMs0gjD+3Q== X-Google-Smtp-Source: APBJJlFI3QcUSyA0sHT4YY0oiNdA4sTysExbv/XfqmXHp/mayxco1Wzu2N32nSh9c8N4LfuA/VLajw== X-Received: by 2002:a81:658a:0:b0:577:2376:c6be with SMTP id z132-20020a81658a000000b005772376c6bemr8522480ywb.45.1688830117536; Sat, 08 Jul 2023 08:28:37 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-67d8-7b2d-9201-f25d.res6.spectrum.com. [2603:6081:7b00:6400:67d8:7b2d:9201:f25d]) by smtp.gmail.com with ESMTPSA id t1-20020a81c241000000b00545a08184e0sm1820773ywg.112.2023.07.08.08.28.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jul 2023 08:28:36 -0700 (PDT) Date: Sat, 8 Jul 2023 11:28:34 -0400 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= , Eugen Hristev Cc: Jaehoon Chung , u-boot@lists.denx.de Subject: Re: [PATCH v3 u-boot] mmc: spl: Make partition choice in default_spl_mmc_emmc_boot_partition() more explicit Message-ID: <20230708152834.GM148062@bill-the-cat> References: <20230413211057.10975-2-pali@kernel.org> <20230707225438.32334-1-pali@kernel.org> <20230707234334.GL148062@bill-the-cat> <20230708083047.7235rzj64iyc74zi@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IM8rgnwtmXLoQhNB" Content-Disposition: inline In-Reply-To: <20230708083047.7235rzj64iyc74zi@pali> X-Clacks-Overhead: GNU Terry Pratchett 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.8 at phobos.denx.de X-Virus-Status: Clean --IM8rgnwtmXLoQhNB Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 08, 2023 at 10:30:47AM +0200, Pali Roh=E1r wrote: > On Friday 07 July 2023 19:43:34 Tom Rini wrote: > > On Sat, Jul 08, 2023 at 12:54:38AM +0200, Pali Roh=E1r wrote: > >=20 > > > To make eMMC partition choosing in default_spl_mmc_emmc_boot_partitio= n() > > > function better understandable, rewrite it via explicit switch-case c= ode > > > pattern. > > >=20 > > > Also indicate an error when eMMC EXT_CSD[179] register is configured = by > > > user to value which is not suitable for eMMC booting and SPL do not k= now > > > how to interpret it. > > >=20 > > > Signed-off-by: Pali Roh=E1r > >=20 > > I did some quick local testing to check on the size impact and this is > > indeed quite manageable, thanks for reworking things! > >=20 > > Reviewed-by: Tom Rini >=20 > Unfortunately no, sama5d2_xplained_emmc, sama5d2_xplained_mmc and > sama5d2_xplained_qspiflash are failing with v3; but not with v2. >=20 > Seems that these boards have their SPL at limit and adding any new > puts() increase size over the limit. >=20 > So I think that there is no other way than just adding a new config > option to hide this new puts(). We should enable LTO on those platforms then and buy us some space. --=20 Tom --IM8rgnwtmXLoQhNB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmSpgJgACgkQFHw5/5Y0 tyxmmAv/fsiQI0BvlHjPy67RXOBN8bbzXcrwrv8P1dak+lGchyUsLLr5HR1ToK7h sT93q1ihpasymV6UdZMmIvdIfNe6bPo9jrZpWLJNCIo3DodtalkNaDIdXy18r+mn tybVyjLK5BhK6FuWTI33Cn5P2A9PXOsXLOF00k/kmbJ/4Z68/tQqEDvD53Rb/mJG /AUQmV5eGZJT4IU5o0clBImEGMcpfaMtkMc4+zSPVxke6ZXmxoreVzyvPIbzAMeT JvnL7AJkCPumgIfb2/GYbQy7nR3q+YZbNHwLeAG+AwaSP5couGXDY4SDdLs6uhWU 0ecAEZLiqv6IwgkEw4NqChBKoHiBSZpFk8vnpdIghe+UhuAcFRsIec8B1gv0v1uN 7i3HWPRpyY3DV90a9NLpYSb7vjh8De81Kh9JOpUG0D+UHCeWJb6bNarKRAabZZaN Jby75s33eWDBmw9YT345p9OQhpfO6WwY7Av/ScN+a65/5fnzjNIntmYTZnJOJf0t Hzr45WUA =SGyW -----END PGP SIGNATURE----- --IM8rgnwtmXLoQhNB--