]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitea3cbf62daf57cc71a4778f0a99a7241eaf4f9d1
tree2c4d45cb8fe1ff7d08eed89c5a791842474522e2
parent7ed7bf5ada0b8a5a0e25bfa559637fa25689ef6c
gpu: host1x: Increase maximum DMA segment size

BugLink: https://bugs.launchpad.net/bugs/1839213
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/gpu/host1x/bus.c
include/linux/host1x.h