android_kernel_motorola_sm6225/drivers/gpu/host1x
Thierry Reding 4d14323a2e gpu: host1x: Increase maximum DMA segment size
[ Upstream commit 1e390478cfb527e34c9ab89ba57212cb05c33c51 ]

Recent versions of the DMA API debug code have started to warn about
violations of the maximum DMA segment size. This is because the segment
size defaults to 64 KiB, which can easily be exceeded in large buffer
allocations such as used in DRM/KMS for framebuffers.

Technically the Tegra SMMU and ARM SMMU don't have a maximum segment
size (they map individual pages irrespective of whether they are
contiguous or not), so the choice of 4 MiB is a bit arbitrary here. The
maximum segment size is a 32-bit unsigned integer, though, so we can't
set it to the correct maximum size, which would be the size of the
aperture.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-31 07:26:59 +02:00
..
hw gpu: host1x: Drop unnecessary host1x argument 2018-05-18 21:51:01 +02:00
bus.c gpu: host1x: Increase maximum DMA segment size 2019-07-31 07:26:59 +02:00
bus.h gpu: host1x: Provide a proper struct bus_type 2015-01-27 10:09:14 +01:00
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: Check whether size of unpin isn't 0 2018-07-09 10:31:30 +02:00
job.h gpu: host1x: Use not explicitly sized types 2018-05-18 21:51:37 +02: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
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