]> 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:25:37 +0000 (11:25 +0100)
commitce6d2fe21b88b9dc46514c47528c7fb7f37873ce
tree422155a7742e123948ab976285b57682cda39edb
parent0059492d2bacdde0b566bf24177ddf8e6df0ece5
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