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 3A093C433EF for ; Fri, 8 Jul 2022 16:40:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2406E845D0; Fri, 8 Jul 2022 18:39:42 +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="nYNSL915"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DF358845D3; Fri, 8 Jul 2022 18:39:39 +0200 (CEST) Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (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 72549845D2 for ; Fri, 8 Jul 2022 18:39:37 +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-qt1-x830.google.com with SMTP id a26so598511qto.10 for ; Fri, 08 Jul 2022 09:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BeuebiAcjVyAaNhijwq0XoD+D970SFNVw/k+kXRZxV0=; b=nYNSL9159OyB2CdiUrP0xsudq1JokYURzpoZV8V4RzSjTddpvAQm3UW/HRvo6U4ywC bGeBDfDyRjHEkOhubjLFEgNpUthMp0VaRQycZyNlWFbuYpp1ZXS1CfiqVnWf/wrNCnns m6tvQcCBc++byCQwDvs7+96eF3pA5dmwiW2Ss= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BeuebiAcjVyAaNhijwq0XoD+D970SFNVw/k+kXRZxV0=; b=AvUoHo2Heznym38qpZntqytjLR7GBHSHnEfZV/6B2Itey9Tkc5ki/3p+VsawQbnUVu UXKaDm3yMN+9TOxQI+PBrWPa0rHbmO5lTyo0Tm5DY0FcD6YlXWCamIO7urO/RiAOLbPo ZV7NAHNUJRRNR409IW65Z+DcY2VfFw3Ae+Ur34H/xufNgzMw7MeeI6SUhHza8lzg+JUe RbHaiMtK+zQeqeFo/ykWCQqOzmSdjSimSW7YgZE5T5JMMvm3NhADv1Q363PYW0OiGwpm O1NE0ymI2CCk7NlKUrAXGa6D3FJkwuXDfApCCPvgE1wnYv5/bmwExE+HBHsgfINsmzIE 5eHA== X-Gm-Message-State: AJIora/Xy1mkNYZezweYZ/gq4Ckqti24A0voej6Paw0czhwN3QCkoPMf MOkEcoqstLTHrfkjz8eru+4sPw== X-Google-Smtp-Source: AGRyM1txAsSFh1/OQKBIT3grIvDr/nhFup42hJLKhGIkG6Ehc++S//l/ECd7PkwBLfA5mLsvajN/BA== X-Received: by 2002:ac8:5c0b:0:b0:317:c524:c23 with SMTP id i11-20020ac85c0b000000b00317c5240c23mr3846026qti.83.1657298376259; Fri, 08 Jul 2022 09:39:36 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id s11-20020a05622a1a8b00b003196e8eda26sm23764834qtc.69.2022.07.08.09.39.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 09:39:35 -0700 (PDT) Date: Fri, 8 Jul 2022 12:39:33 -0400 From: Tom Rini To: Marek Vasut Cc: u-boot@lists.denx.de, Albert ARIBAUD , Fabio Estevam , Peng Fan , Simon Glass , Stefano Babic , Thomas Chou Subject: Re: [PATCH] board_init: Do not reserve MALLOC_F area on stack if non-zero MALLOC_F_ADDR Message-ID: <20220708163933.GM1146598@bill-the-cat> References: <20220625175824.128263-1-marex@denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6AdmD5p7ehK0d+ko" Content-Disposition: inline In-Reply-To: <20220625175824.128263-1-marex@denx.de> 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.6 at phobos.denx.de X-Virus-Status: Clean --6AdmD5p7ehK0d+ko Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 25, 2022 at 07:58:24PM +0200, Marek Vasut wrote: > In case the MALLOC_F_ADDR is set to non-zero value, the early malloc area= is > not going to be placed just below stack top, but elsewhere. Do not reserve > MALLOC_F bytes in this case, as that wastes stack space and may even cause > insufficient stack space in SPL. >=20 > This functionality is particularly useful on i.MX8M, where the insufficie= nt > stack space can be triggered. >=20 > Signed-off-by: Marek Vasut > Cc: Albert ARIBAUD > Cc: Fabio Estevam > Cc: Peng Fan > Cc: Simon Glass > Cc: Stefano Babic > Cc: Thomas Chou > Cc: Tom Rini Applied to u-boot/next, thanks! --=20 Tom --6AdmD5p7ehK0d+ko Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmLIXcUACgkQFHw5/5Y0 tyz5TAv/R8+nQDfHMnBiGSl7fgeC2ipt5wagOqAcQ4PJ3WgOFPxVXWE4zBhCfVWW GHsETCmjvhIAiDbOT6dke3R19+tRyaTCOPIgRFRVNTy4mAxWmw4Gh0O0c5HLtjWd hO13mU/djrkx4eC9iQWoC5eYB30v+011L0gxZZC33jm04/pOTmf6pWEMr5Hqx7gk TR47g/fnv97+Eytm97tbUnoluWiOnVRQ0eQfEyKukdV2Xle/BwsqwRgH9tC335zL 6RgLfGo3nwlq/aCBEwWKlZIUbTw1ytQBirTp2fr8rcgDMIiIoh9bQ9H+BYEnZdRw eNsYYKRWCwQUjIbdQMWKAuxh8wx7I32DAiA9kXd9GwBPfC1hEl32QrjX/ZBokrfH 2+7H/Gu0uuXsy7J8GwXxT4CSB0dH41PeLpcEMm0Q6sevlkZbJjiwTKpwLZXIxR/A veq3KTq799PWESzzwsZn9UIyP9MCnYXplG1J4Cyr+IaGqVN8w4qSrnmndn88QWax ZLYsrlZe =N91q -----END PGP SIGNATURE----- --6AdmD5p7ehK0d+ko--