]> 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)
commitdd9898cf1ffa6c719935415f6b285f5676e072c9
tree80cc79654a7a3d1270faf64f241b0d3e83a0c328
parentf10726af65c828e0c64d36a2c2922c407eabc5b5
drm/etnaviv: don't truncate physical page address

[ Upstream commit bb3e3a6522c656b178f0c0ba86b6e32f63f7166d ]

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: f816083e8077 ("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