]> git.ipfire.org Git - thirdparty/u-boot.git/commit
remoteproc: k3-r5: Use verified image address
authorPhilippe Schenker <philippe.schenker@impulsing.ch>
Tue, 11 Nov 2025 07:16:29 +0000 (08:16 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 18 Nov 2025 18:50:05 +0000 (12:50 -0600)
commit3a43fc9016c3c37eefca10ed404c95ac7cecd3dc
treec028850e64636316da3cec8c93738e3bc5e2ebd2
parentfe114f3662c655cae44b45370d6dc4de2055a611
remoteproc: k3-r5: Use verified image address

After ti_secure_image_post_process() authenticates the image, it may
relocate it to a different memory location and update image_addr to
point to the verified image.

However, rproc_elf_load_image() and rproc_elf_get_boot_addr() were
still using the original "addr" parameter, potentially operating on
the unverified or stale image location instead of the authenticated
image.

Use image_addr (cast to ulong to match function signatures) after
authentication to ensure all operations work with the verified image.

Signed-off-by: Philippe Schenker <philippe.schenker@impulsing.ch>
drivers/remoteproc/ti_k3_r5f_rproc.c