]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteaa35fd3800a0095aee0ddbabfe70429feb94dd5
tree517aae3bdc0c1f08d7d76436722a1e410104b708
parentf040cca4b0da0180bf9de9141ef5c95f60f85182
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