]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
remoteproc: pru: Fix loading of GNU Binutils ELF
authorDimitar Dimitrov <dimitar@dinux.eu>
Wed, 30 Dec 2020 10:50:05 +0000 (12:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Apr 2021 11:13:18 +0000 (13:13 +0200)
commit8439ea06a586106f0617b0d500d5239f53a8ec3c
tree09022c1d4ed9557a78d7c75245f5ee28b1cb4a9d
parented8041768d4d937b7e05b087e877c6a90f9907b1
remoteproc: pru: Fix loading of GNU Binutils ELF

[ Upstream commit e6d9423d31b2f9bdd0220fd0584e3bb6ed2c4e52 ]

PRU port of GNU Binutils lacks support for separate address spaces.
PRU IRAM addresses are marked with artificial offset to differentiate
them from DRAM addresses. Hence remoteproc must mask IRAM addresses
coming from GNU ELF in order to get the true hardware address.

PRU firmware used for testing was the example in:
  https://github.com/dinuxbg/pru-gcc-examples/tree/master/blinking-led/pru

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Link: https://lore.kernel.org/r/20201230105005.30492-1-dimitar@dinux.eu
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/pru_rproc.c