diff options
author | Jonathan Marek <jonathan@marek.ca> | 2022-06-14 01:10:19 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2022-06-14 21:54:38 +0300 |
commit | 62b5e322fb6cc5a5a91fdeba0e4e57e75d9f4387 (patch) | |
tree | b962519e5e6d0ce2e97ec9000ec7bc8e8f16f400 /drivers/gpu/drm/msm/msm_gem.h | |
parent | 49e477610087a02c3604061b8f3ee3a25a493987 (diff) | |
download | linux-62b5e322fb6cc5a5a91fdeba0e4e57e75d9f4387.tar.xz |
drm/msm: use for_each_sgtable_sg to iterate over scatterlist
The dma_map_sgtable() call (used to invalidate cache) overwrites sgt->nents
with 1, so msm_iommu_pagetable_map maps only the first physical segment.
To fix this problem use for_each_sgtable_sg(), which uses orig_nents.
Fixes: b145c6e65eb0 ("drm/msm: Add support to create a local pagetable")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Link: https://lore.kernel.org/r/20220613221019.11399-1-jonathan@marek.ca
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gem.h')
0 files changed, 0 insertions, 0 deletions