linux-stable/drivers/gpu/host1x
Thierry Reding 9287cc6123 gpu: host1x: Allocate gather copy for host1x
[ Upstream commit b78e70c04c ]

Currently when the gather buffers are copied, they are copied to a
buffer that is allocated for the host1x client that wants to execute the
command streams in the buffers. However, the gather buffers will be read
by the host1x device, which causes SMMU faults if the DMA API is backed
by an IOMMU.

Fix this by allocating the gather buffer copy for the host1x device,
which makes sure that it will be mapped into the host1x's IOVA space if
the DMA API is backed by an IOMMU.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-31 16:35:29 +01:00
..
hw gpu: host1x: Fix syncpoint ID field size on Tegra186 2019-12-13 08:51:58 +01:00
Kconfig gpu: host1x: select IOMMU_IOVA 2017-05-18 10:41:28 -04:00
Makefile main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
bus.c gpu: host1x: Increase maximum DMA segment size 2019-07-31 07:26:59 +02:00
bus.h
cdma.c gpu: host1x: Store pointer to client in jobs 2018-05-18 21:50:24 +02:00
cdma.h gpu: host1x: Store pointer to client in jobs 2018-05-18 21:50:24 +02:00
channel.c gpu: host1x: Fix incorrect comment for channel_request 2017-10-20 14:19:52 +02:00
channel.h gpu: host1x: Refactor channel allocation code 2017-06-15 14:25:38 +02:00
debug.c gpu: host1x: Cleanup loop variable usage 2018-05-18 21:50:40 +02:00
debug.h gpu: host1x: Improve debug disassembly formatting 2017-10-20 14:19:52 +02:00
dev.c gpu: host1x: Skip IOMMU initialization if firewall is enabled 2018-07-09 10:31:10 +02:00
dev.h gpu: host1x: Remove wait check support 2018-05-18 21:50:04 +02:00
intr.c gpu: host1x: Drop unnecessary host1x argument 2018-05-18 21:51:01 +02:00
intr.h gpu: host1x: Drop unnecessary host1x argument 2018-05-18 21:51:01 +02:00
job.c gpu: host1x: Allocate gather copy for host1x 2019-12-31 16:35:29 +01:00
job.h gpu: host1x: Use not explicitly sized types 2018-05-18 21:51:37 +02:00
mipi.c drm/tegra: dsi: Enhance runtime power management 2016-08-24 15:58:57 +02:00
syncpt.c gpu: host1x: Drop unnecessary host1x argument 2018-05-18 21:51:01 +02:00
syncpt.h gpu: host1x: Remove wait check support 2018-05-18 21:50:04 +02:00