firmware: tegra: bpmp: Do only aligned access to IPC memory area
authorTimo Alho <talho@nvidia.com>
Wed, 22 Jun 2022 13:22:59 +0000 (16:22 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 24 Jun 2022 15:57:29 +0000 (17:57 +0200)
commita4740b148a04dc60e14fe6a1dfe216d3bae214fd
tree517aae3bdc0c1f08d7d76436722a1e410104b708
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
firmware: tegra: bpmp: Do only aligned access to IPC memory area

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>
drivers/firmware/tegra/bpmp.c