Skip to content
Snippets Groups Projects
Commit 0e5323d7 authored by Sjoerd Simons's avatar Sjoerd Simons
Browse files

[WIP] drm/panfrost: Set IOMMU_CACHE flag on page faults


Suggested by Boris; Panfrost does not support uncached mappings, so also
flag the pages that are mapped as response to a page fault as cached.

TODO:
  * Merge with other patches from Ariel
  * Do a full CI run to check for regressions on G52

Signed-off-by: default avatarSjoerd Simons <sjoerd@collabora.com>
parent ae8dccc2
No related branches found
No related tags found
No related merge requests found
...@@ -598,7 +598,7 @@ static int panfrost_mmu_map_fault_addr(struct panfrost_device *pfdev, int as, ...@@ -598,7 +598,7 @@ static int panfrost_mmu_map_fault_addr(struct panfrost_device *pfdev, int as,
goto err_map; goto err_map;
mmu_map_sg(pfdev, bomapping->mmu, addr, mmu_map_sg(pfdev, bomapping->mmu, addr,
IOMMU_WRITE | IOMMU_READ | IOMMU_NOEXEC, sgt); IOMMU_WRITE | IOMMU_READ | IOMMU_CACHE | IOMMU_NOEXEC, sgt);
bomapping->active = true; bomapping->active = true;
bo->heap_rss_size += SZ_2M; bo->heap_rss_size += SZ_2M;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment