]> 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)
commit83eade9e2e8cb54f35f9566a56876dafe0c31398
tree517aae3bdc0c1f08d7d76436722a1e410104b708
parentcf1710d1388cf5bd81996b258399c4907d27006e
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