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 X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94D2CC433F5 for ; Sat, 11 Sep 2021 12:18:45 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 0F601611AD for ; Sat, 11 Sep 2021 12:18:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0F601611AD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0AD9C837E0; Sat, 11 Sep 2021 14:18:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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="QQorP6kQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6677983794; Sat, 11 Sep 2021 14:17:45 +0200 (CEST) Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) (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 0CB7B837C4 for ; Sat, 11 Sep 2021 14:17:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2a.google.com with SMTP id 4so3039720qvp.3 for ; Sat, 11 Sep 2021 05:17:25 -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:user-agent; bh=Ex1i/tcmarczAx5Ca7b+6rPToMnRZM+7/p5UZwksk0g=; b=QQorP6kQul0wqM8BPSjh3P1NarvLSVx0q2lnw6G2hTLZ3v1NbexVukRZbbKrZBFKN0 n55M0ARK/CAgQVyeat5lP/fQ4fxcCJM81yvDgcNctDSWTAog9xOv95a4JpLiksPM2+X7 GfFUx4idzteL+vw8k+mR0AKzaoo95/waAPa/I= 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:user-agent; bh=Ex1i/tcmarczAx5Ca7b+6rPToMnRZM+7/p5UZwksk0g=; b=nE+VpNCwdmrR7XEJv8zhVVgHI4FvrhKk/mtTQh6cPDw1F3uEwBk/3ijJRRyhgwdH/e Trg79CwoTyTREmlbdkiB3HWEta4ztv/mbRdizdE0RvOFexYOUIbEnXqSXab9nStHRJJ0 ljXJiYRSxmgmgo5wrcTmJCq3Jld++s7w3Sebve7lm+ZqdNiLFIeCNRIjWVwM6NxN9oMW rooIzAZRjlPug+Jnupu6GXaX+nrJ/N5SDtQBoXZARoO3lHmcUDTuoqVFutE1VU2UjaV2 sNSnH5Fx79iJhfoOxxLGRkcY1cJ7vtQX15s2UBRLatQmRo8nyuxRxTVImcCtMNhg39Ke ZzFg== X-Gm-Message-State: AOAM5316gUfc+QZPfTGFwdONQpsKZuGl0/Vs+Q2y34h0tE26qfZfPv0H zfYJixeMfTA9aaf6LaII8H3SbA== X-Google-Smtp-Source: ABdhPJyL6wg8H5SbBr+v5561OR1v2tViApHwmZM2qMM+gQNE2SbzVZsnsKuS8/maFAulWK6Ohie8GQ== X-Received: by 2002:a05:6214:4d3:: with SMTP id ck19mr2120833qvb.36.1631362644900; Sat, 11 Sep 2021 05:17:24 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-61ce-ecd7-97d2-3518.res6.spectrum.com. [2603:6081:7b01:cbda:61ce:ecd7:97d2:3518]) by smtp.gmail.com with ESMTPSA id w185sm1106040qkd.30.2021.09.11.05.17.23 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 Sep 2021 05:17:24 -0700 (PDT) Date: Sat, 11 Sep 2021 08:17:22 -0400 From: Tom Rini To: Aswath Govindraju Cc: Lokesh Vutla , Kevin Scholz , Praneeth Bajjuri , Nishanth Menon , Vignesh Raghavendra , Suman Anna , Simon Glass , Kishon Vijay Abraham I , Faiz Abbas , Tero Kristo , Dave Gerlach , Heiko Schocher , u-boot@lists.denx.de Subject: Re: [PATCH v2 3/3] configs: j72*_evm: Define the buffer sizes for dfu Message-ID: <20210911121722.GP12964@bill-the-cat> References: <20210826155859.13909-1-a-govindraju@ti.com> <20210826155859.13909-4-a-govindraju@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YAj7lmX6LWC3Cn8z" Content-Disposition: inline In-Reply-To: <20210826155859.13909-4-a-govindraju@ti.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --YAj7lmX6LWC3Cn8z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 26, 2021 at 09:28:59PM +0530, Aswath Govindraju wrote: > On J721e R5 SPL, dfu buffer for loading sysfw.itb image gets allocated > before DRAM gets initialized. So, the buffer gets allocated in MCU L3 > RAM. The current buffer size to be allocated is 256KB and the available > total heap memory is 0x70000 (448KB). This leads to NOMEM errors during > allocation. >=20 > In other cases when constraints such as above are not present fix the size > of buffers to the sector size in OSPI for proper functioning. >=20 > Also, if CONFIG_SYS_DFU_DATA_BUF_SIZE is defined and > CONFIG_SYS_DFU_MAX_FILE_SIZE is not defined then the max file size for dfu > transfer is defined as CONFIG_SYS_DFU_DATA_BUF_SIZE. >=20 > Fix these by setting appropriate buffer sizes in their respective defconf= ig > files and defining the max file size as 8 MB which is the default dfu > buffer size. >=20 > Signed-off-by: Aswath Govindraju Applied to u-boot/master, thanks! --=20 Tom --YAj7lmX6LWC3Cn8z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmE8nlIACgkQFHw5/5Y0 tywWFgv6A6LNn+rNOTIAKRqf3h5o2z5Uu6xpjQjHFqw2vO7strq2IrLJnO8YOWlc Cseah28lITSSMcrVxOUZMDMEPsLuqZ0acmvcsqjsq/Xdu2etYVrH5uMxgSQhB23P PwNsv4Hy2u8rWObqUNE3AF0O8E+/MYDA168JxvF/lWnk1mZL9VEUBlNQAtj4vykR 0Fl3nbXMuUcHQHKjXfm1NUBg3j8WASdLSvSlsyYDXqA7DR/n1KvERPo7gROngPDI JSCBntKY4pgiLgD3yyNeXDXVozBghLWN5hopsigRHEGpki0o/XlcOattfutcYpbv 0xZptUWFZ2XI/QNOO26/IXFMJGfK/gWNHL7l8kHZ+LiFk7CZnSh8FFMhsChJAqPy rO99MfK873j7Ksf//a/hPyg4S8cPnMEe+t5vT5Txb5zjgrvJAuSvC/807o1LDTQz zlyUe9Q+sC2OByQUfaJB8SoV380c07SihKp69p6j7dNF4zzNzMd7i68zx5zTQB8R WTGLgbVS =DSsW -----END PGP SIGNATURE----- --YAj7lmX6LWC3Cn8z--