]> asedeno.scripts.mit.edu Git - linux.git/commit
gpu: host1x: Increase maximum DMA segment size
authorThierry Reding <treding@nvidia.com>
Wed, 5 Jun 2019 08:46:05 +0000 (10:46 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 5 Jun 2019 13:06:03 +0000 (15:06 +0200)
commit1e390478cfb527e34c9ab89ba57212cb05c33c51
tree52f790df1855e6ba69265b2f73b3c270bed7c834
parent4bb923e8075f3acbe2e422e9bfd0235b21d3e643
gpu: host1x: Increase maximum DMA segment size

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>
drivers/gpu/host1x/bus.c
include/linux/host1x.h