]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Allocate gather copy for host1x
authorThierry Reding <treding@nvidia.com>
Mon, 28 Oct 2019 12:37:12 +0000 (13:37 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 29 Oct 2019 14:04:35 +0000 (15:04 +0100)
commita14647b7a173ecf584d016cde9cd9408120a2231
tree0c87c0e36a31d9735cc6e79874c1d778e58705e6
parentc00f70193ddc87d35c74ba288f6aacad4738b70e
gpu: host1x: Allocate gather copy for host1x

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>
drivers/gpu/host1x/job.c