gpu: host1x: Do not setup DMA for virtual devices
authorThierry Reding <treding@nvidia.com>
Thu, 14 Mar 2024 15:49:43 +0000 (16:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 09:50:54 +0000 (11:50 +0200)
commit5d3392552087b7368a0726926e5d223cfcb72483
tree64bcc6107b7723b912b7e9c78aa012c83d0f1de5
parent844fc023e9f14a4fb1de5ae1eaefafd6d69c5fa1
gpu: host1x: Do not setup DMA for virtual devices

[ Upstream commit 8ab58f6841b19423231c5db3378691ec80c778f8 ]

The host1x devices are virtual compound devices and do not perform DMA
accesses themselves, so they do not need to be set up for DMA.

Ideally we would also not need to set up DMA masks for the virtual
devices, but we currently still need those for legacy support on old
hardware.

Tested-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240314154943.2487549-1-thierry.reding@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/host1x/bus.c