diff options
author | Mikko Perttunen <mperttunen@nvidia.com> | 2022-06-22 15:23:00 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-07-08 18:00:12 +0200 |
commit | 61192a9d8a6367ae1b8234876941b037910a2459 (patch) | |
tree | 9a6af3decf0fbbc9c3d78ba64407bdab97fc88ad /arch/arm64/boot/dts/nvidia/tegra234.dtsi | |
parent | arm64: tegra: Add Tegra234 GPCDMA device tree node (diff) | |
download | linux-61192a9d8a6367ae1b8234876941b037910a2459.tar.xz linux-61192a9d8a6367ae1b8234876941b037910a2459.zip |
arm64: tegra: Mark BPMP channels as no-memory-wc
The Tegra SYSRAM contains regions access to which is restricted to
certain hardware blocks on the system, and speculative accesses to
those will cause issues.
Patch 'misc: sram: Only map reserved areas in Tegra SYSRAM' attempted
to resolve this by only mapping the regions specified in the device
tree on the assumption that there are no such restricted areas within
the 64K-aligned area of memory that contains the memory we wish to map.
Turns out this assumption is wrong, as there are such areas above the
4K pages described in the device trees. As such, we need to use the
bigger hammer that is no-memory-wc, which causes the memory to be
mapped as Device memory to which speculative accesses are disallowed.
As such, the previous patch in the series,
'firmware: tegra: bpmp: do only aligned access to IPC memory area',
is required with this patch to make the BPMP driver only issue aligned
memory accesses as those are also required with Device memory.
Fixes: fec29bf04994 ("misc: sram: Only map reserved areas in Tegra SYSRAM")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Yousaf Kaukab <ykaukab@suse.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'arch/arm64/boot/dts/nvidia/tegra234.dtsi')
-rw-r--r-- | arch/arm64/boot/dts/nvidia/tegra234.dtsi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia/tegra234.dtsi index 2ae2f11f289c..cf611eff7f6b 100644 --- a/arch/arm64/boot/dts/nvidia/tegra234.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra234.dtsi @@ -1390,6 +1390,7 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x40000000 0x80000>; + no-memory-wc; cpu_bpmp_tx: sram@70000 { reg = <0x70000 0x1000>; |