]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Restrict IOVA space to DMA mask
authorThierry Reding <treding@nvidia.com>
Fri, 1 Feb 2019 13:28:27 +0000 (14:28 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 7 Feb 2019 17:28:57 +0000 (18:28 +0100)
commiteef19d9279c1c1b9d644abcfab022350bef4f748
treec05dab3f17eb6ab2a05cdb3645ed6d99ff9703f4
parent02cc60685f34433f698e5e0756d0f4f4bc670274
gpu: host1x: Restrict IOVA space to DMA mask

On Tegra186 and later, the ARM SMMU provides an input address space that
is 48 bits wide. However, memory clients can only address up to 40 bits.
If the geometry is used as-is, allocations of IOVA space can end up in a
region that is not addressable by the memory clients.

To fix this, restrict the IOVA space to the DMA mask of the host1x
device.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/dev.c