]> git.baikalelectronics.ru Git - kernel.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)
commit13379c1f1a4a23631f8a982ed09e97ebb56a1a17
tree52f790df1855e6ba69265b2f73b3c270bed7c834
parent25d4a657094642616165a5ce54a592387ec4c358
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