]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: don't truncate physical page address
authorLucas Stach <l.stach@pengutronix.de>
Fri, 16 Sep 2022 10:40:31 +0000 (12:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Feb 2023 10:53:25 +0000 (11:53 +0100)
commit2543225de433a92194a1beca47ab628236808b0a
tree80cc79654a7a3d1270faf64f241b0d3e83a0c328
parentca19ee50cb9469c77558aedf6d3da29fea757600
drm/etnaviv: don't truncate physical page address

[ Upstream commit d37c120b73128690434cc093952439eef9d56af1 ]

While the interface for the MMU mapping takes phys_addr_t to hold a
full 64bit address when necessary and MMUv2 is able to map physical
addresses with up to 40bit, etnaviv_iommu_map() truncates the address
to 32bits. Fix this by using the correct type.

Fixes: 8758735476f0 ("drm/etnaviv: mmuv2: support 40 bit phys address")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/etnaviv/etnaviv_mmu.c