]> git.ipfire.org Git - thirdparty/kernel/stable.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:55:01 +0000 (11:55 +0100)
commiteb9236d74c8cf2a7d68784018e290a48cebbee2e
treeb7b9253ab67265dbe87658417dc72a1cfa005cee
parent2ae73796985b582b79711dfed2941d190b571fb5
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