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)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 23 Sep 2022 19:24:22 +0000 (21:24 +0200)
commitd37c120b73128690434cc093952439eef9d56af1
treed413dcd600806c17ee6ae217de58be15fe20e31d
parent61a6920bb604df3a0e389a2a9479e1e233e4461d
drm/etnaviv: don't truncate physical page address

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>
drivers/gpu/drm/etnaviv/etnaviv_mmu.c