WSL2-Linux-Kernel/drivers/firmware/tegra
Timo Alho 6db913f5e4 firmware: tegra: bpmp: Do only aligned access to IPC memory area
commit a4740b148a upstream.

Use memcpy_toio and memcpy_fromio variants of memcpy to guarantee no
unaligned access to IPC memory area. This is to allow the IPC memory to
be mapped as Device memory to further suppress speculative reads from
happening within the 64 kB memory area above the IPC memory when 64 kB
memory pages are used.

Signed-off-by: Timo Alho <talho@nvidia.com>
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Cc: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-05 10:30:03 +02:00
..
Kconfig firmware: tegra: Fix a typo in Kconfig 2020-02-17 08:54:09 +01:00
Makefile firmware: tegra: bpmp: Fix Tegra234-only builds 2021-06-11 13:31:51 +02:00
bpmp-debugfs.c firmware: tegra: Fix error check return value of debugfs_create_file() 2022-08-17 14:23:04 +02:00
bpmp-private.h firmware: tegra: bpmp: Fix Tegra234-only builds 2021-06-11 13:31:51 +02:00
bpmp-tegra186.c firmware: tegra: Defer BPMP probe if shared memory not available 2020-05-22 14:57:14 +02:00
bpmp-tegra210.c firmware: tegra: Fix error return code in tegra210_bpmp_init() 2021-06-01 17:06:41 +02:00
bpmp.c firmware: tegra: bpmp: Do only aligned access to IPC memory area 2022-09-05 10:30:03 +02:00
ivc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00