u-boot/drivers
Simon Glass e46e4d6fd7 sandbox: efi_loader: Correct use of addresses as pointers
The cache-flush function is incorrect which causes a crash in the
remoteproc tests with arm64.

Fix both problems by using map_sysmem() to convert an address to a
pointer and map_to_sysmem() to convert a pointer to an address.

Also update the image-loader's cache-flushing logic.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 3286d223fd ("sandbox: implement invalidate_icache_all()")
Acked-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Changes in v6:
- Re-introduce

Changes in v2:
- Drop message about EFI_LOADER

arch/sandbox/cpu/cache.c              |  8 +++++++-
 drivers/remoteproc/rproc-elf-loader.c | 18 +++++++++++-------
 lib/efi_loader/efi_image_loader.c     |  3 ++-
 3 files changed, 20 insertions(+), 9 deletions(-)

Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2024-12-02 16:34:30 -06:00
..
adc adc: rockchip-saradc: Use vdd-microvolts prop as fallback 2024-10-26 10:46:48 +08:00
ata Merge patch series "Implement ACPI on aarch64" 2024-10-27 18:44:13 -06:00
axi
bios_emulator bios_emulator: add missing includes to debug.c 2024-11-16 20:54:16 -06:00
block block: make blk_create_device() static 2024-10-24 11:20:58 -06:00
bootcount drivers: bootcount: Add ZynqMP specific bootcount support 2024-11-15 14:32:47 +01:00
bus global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
button dm: button: support remapping phone keys 2024-11-16 19:49:05 -06:00
cache driver: sifive ccache: enable TRUNKCLOCKGATE and REGIONCLOCKGATE 2024-11-06 18:56:51 +08:00
clk clk: renesas: Fix missing unbind on driver look up failure 2024-11-03 12:25:57 +01:00
core dm: Add dm_remove_devices_active() for ordered device removal 2024-11-24 15:41:28 -06:00
cpu Merge patch series "Implement ACPI on aarch64" 2024-10-27 18:44:13 -06:00
crypto drivers/crypto: aspeed: Add Caliptra ECDSA384 support 2024-10-21 17:52:52 -06:00
ddr imx: Support i.MX93 9X9 QSB board 2024-10-25 09:07:16 -03:00
demo
dfu dfu: add scsi backend 2024-11-20 17:57:58 +01:00
dma dma: ti: k3-udma: Move DMA channel[0] allocation to probe and add udma_remove() 2024-10-17 18:21:19 -06:00
extcon
fastboot net: introduce alternative implementation as net/lwip/ 2024-10-16 11:11:56 -06:00
firmware global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
fpga drivers: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:48 -06:00
fuzz
fwu-mdata Merge patch series "FWU: Add support for FWU metadata version 2" 2024-05-24 13:42:07 -06:00
gpio gpio: qcom_pmic: add again the quirk to skip GPIO configuration on PM8550 2024-11-20 17:57:57 +01:00
hwspinlock
i2c i2c: mxc_i2c: Convert to use livetree API for fdt access 2024-10-25 09:07:39 -03:00
input global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
iommu Merge patch series "Fix device removal order for Apple dart iommu" 2024-11-24 15:41:32 -06:00
led led: include cyclic.h in led_sw_blink.c 2024-10-23 06:52:38 +02:00
mailbox global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
memory memory: ti-aemif-cs: Compute timing configuration from DT parsing 2024-10-29 18:45:22 -06:00
mfd
misc wdt: imx8qxp: add option to control external PMIC wdt via IMX8 SCU 2024-11-25 23:07:37 -03:00
mmc mmc: msm_sdhci: enable vqmmc at probe if available 2024-11-20 17:57:57 +01:00
mtd mtd: spi-nor: Guard SPI_STACKED_PARALLEL with DM_SPI check 2024-10-31 13:34:29 -06:00
mux Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
net net: fec_mxc: fix probing for imx8qxp 2024-11-25 23:07:37 -03:00
nvme global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
pch
pci Merge patch series "Implement ACPI on aarch64" 2024-10-27 18:44:13 -06:00
pci_endpoint
phy phy: qcom: Add SM8150 to QMP UFS PHY driver 2024-11-20 17:57:58 +01:00
pinctrl pinctrl: rockchip: allow to build for TPL 2024-11-11 15:14:14 +08:00
power imx: power-domain: Convert to use livetree API for fdt access 2024-10-25 09:07:35 -03:00
pwm pwm: imx: Don't drop the enable bit once set 2024-09-11 17:02:36 -03:00
qe
ram Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
reboot-mode
remoteproc sandbox: efi_loader: Correct use of addresses as pointers 2024-12-02 16:34:30 -06:00
reset global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
rng global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
rtc Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
scsi scsi: fix disk capacity too small by one sector 2024-11-01 13:34:32 -06:00
serial Merge patch series "Implement ACPI on aarch64" 2024-10-27 18:44:13 -06:00
sm
smem
soc soc: qcom: rpmh-rsc: add back __tcs_set_trigger() for SM8550/SM8650 2024-09-06 10:47:46 +02:00
sound drivers: sound: Remove duplicate newlines 2024-07-22 10:53:06 -06:00
spi spi: Fix missed rename from SPI_ADVANCE to SPI_STACKED_PARALLEL 2024-11-25 15:29:45 -06:00
spmi spmi: msm: correct max_channels for v5 controllers 2024-07-05 12:07:37 +02:00
sysinfo dm: sysinfo: Shorten the SYSINFO_ID prefix 2024-11-17 13:12:54 -06:00
sysreset global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
tee
thermal drivers: thermal: Remove duplicate newlines 2024-07-22 10:53:06 -06:00
timer x86: Sync up tsc_timer with Linux 2024-10-18 14:10:21 -06:00
tpm global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
ufs ufs: Add Support for Qualcomm UFS HC driver 2024-10-14 08:56:03 +02:00
usb eth: asix88179: packet drop when receiving large fragmented packets 2024-11-25 19:11:19 +01:00
video drivers/video/vesa: use MTRRs only on x86 2024-11-04 16:41:38 -06:00
virtio virtio: blk: introduce virtio-block erase support 2024-10-18 14:10:21 -06:00
w1
w1-eeprom
watchdog wdt: imx8qxp: add option to control external PMIC wdt via IMX8 SCU 2024-11-25 23:07:37 -03:00
xen
Kconfig
Makefile global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00