From: Tom Rini <trini@konsulko.com>
To: Suman Anna <s-anna@ti.com>
Cc: Lokesh Vutla <lokeshvutla@ti.com>,
Tero Kristo <kristo@kernel.org>,
Praneeth Bajjuri <praneeth@ti.com>,
Dave Gerlach <d-gerlach@ti.com>, Hari Nagalla <hnagalla@ti.com>,
u-boot@lists.denx.de
Subject: Re: [PATCH] tools: k3_fit_atf: Fix DM binary FIT load addresses
Date: Sat, 11 Sep 2021 08:17:01 -0400 [thread overview]
Message-ID: <20210911121701.GL12964@bill-the-cat> (raw)
In-Reply-To: <20210814064901.3840-1-s-anna@ti.com>
[-- Attachment #1: Type: text/plain, Size: 1359 bytes --]
On Sat, Aug 14, 2021 at 01:49:01AM -0500, Suman Anna wrote:
> The DM binary runs on the MCU R5F Core0 after R5 SPL on J721E and J7200
> SoCs. The binary is built alongside the TFA, OPTEE and A72 SPL binaries
> and included in the tispl.bin FIT image. The R5 SPL loads the DM binary
> at 0xA0000000 address, based on the value used in the FIT image build
> script. The DM binary though is an ELF image and not a regular binary
> file, and so is processed further to load the actual program segments
> using the U-Boot's standard ELF loader library.
>
> The DM binary does leverage a certain portion of DDR for its program
> segments, and typically reserves 16 MB of DDR at 0xA0000000 with the
> 1st MB used for IPC between Linux and the remote processor, and
> remaining memory for firmware segments. This can cause an incomplete
> loading of the program segments if the DM binary is larger than 1 MB,
> due to overlap of the initial loaded binary and the actual program
> segments.
>
> Fix this by using the address 0x89000000, which matches the current
> "addr_mcur5f0_0load" env variable used by R5 SPL before the DM firmware
> inclusion into the tispl.bin.
>
> Fixes: df5363a67f35 ("tools: k3_fit_atf: add DM binary to the FIT image")
> Signed-off-by: Suman Anna <s-anna@ti.com>
Applied to u-boot/master, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
prev parent reply other threads:[~2021-09-11 12:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-14 6:49 [PATCH] tools: k3_fit_atf: Fix DM binary FIT load addresses Suman Anna
2021-08-16 14:35 ` Suman Anna
2021-09-11 12:17 ` Tom Rini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210911121701.GL12964@bill-the-cat \
--to=trini@konsulko.com \
--cc=d-gerlach@ti.com \
--cc=hnagalla@ti.com \
--cc=kristo@kernel.org \
--cc=lokeshvutla@ti.com \
--cc=praneeth@ti.com \
--cc=s-anna@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox