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:25:37 +0000 (11:25 +0100)
commit2af157c9c8f357cfce4de3218a27d314dfaabcbe
tree422155a7742e123948ab976285b57682cda39edb
parent1ac8758e027247774464c808447a9c2f1f97b637
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: 931e97f3afd8 ("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