diff options
author | Thierry Reding <treding@nvidia.com> | 2019-02-01 14:28:29 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-02-07 18:28:58 +0100 |
commit | 0e43b8da154a95f4369da4068a43ad9d700f4cea (patch) | |
tree | 25b86a7d2e0c567f2e4d77360fce720cc99519f9 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 8de896eb206fea3caa26b5fc8e637934d8486f0f (diff) |
gpu: host1x: Use correct semantics for HOST1X_CHANNEL_DMAEND
The HOST1X_CHANNEL_DMAEND is an offset relative to the value written to
the HOST1X_CHANNEL_DMASTART register, but it is currently treated as an
absolute address. This can cause SMMU faults if the CDMA fetches past a
pushbuffer's IOMMU mapping.
Properly setting the DMAEND prevents the CDMA from fetching beyond that
address and avoid such issues. This is currently not observed because a
whole (almost) page of essentially scratch space absorbs any excessive
prefetching by CDMA. However, changing the number of slots in the push
buffer can trigger these SMMU faults.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions