drm/msm/gem: Drop use of pages for imported dma-bufs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 0 repliesNew
- v16 patches 1 replySuperseded
Changes in v2 from the cover letter
- Drop dead code spotted by sashiko in 4/6
- Collect tags
- Link to v1: https://lore.kernel.org/all/[email protected]/
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | drm/msm/gem: Add helper to check if residentdrivers/ drivers/ | +10 | 0 replies | |
| 2/6 | drm/msm/gem: Mmap imported dma-bufs via the exporterdrivers/ | +24 | 0 replies | |
| 3/6 | drm/msm/gem: Use get_pages() directly in vmap pathdrivers/ | +15 | 0 replies | |
| 4/6 | drm/msm/gem: Stop exposing a page arraydrivers/ drivers/ drivers/ +1 more | +23 | 0 replies | |
| 5/6 | drm/msm/gem: Stop calling get_pages() for imported dma-bufsdrivers/ drivers/ | +7 | 0 replies | |
| 6/6 | drm/msm/gem: Drop use of drm_prime_sg_to_page_array()drivers/ | +2 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Christian König |
|---|---|
| 1/6 | A-b |
| 2/6 | R-b |
| 3/6 | A-b |
| 4/6 | A-b |
| 5/6 | A-b |
| 6/6 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/6] drm/msm/gem: Drop use of pages for imported dma-bufs
The use of msm_obj->pages _mostly_ served to mark that the obj is resident in memory. Mapping to the GPU, etc, all works in terms of the sgt.
The exception was the fault path. Resolve this by using dma_buf_mmap() for mmap'ing imported buffers, like we are supposed to. With that and a bit more cleanup we can drop the use of drm_prime_sg_to_page_array().
This doesn't solve the issues with DMABUF_DEBUG, mapping to the GPU, either via iommu_map_sgtable() (display, and TTBR1 for GPU, aka the kernel managed mappings), or msm_iommu_pagetable_map() (userspace managed mappings), still requires pages under the hood. That will be harder to solve. But this is a step along the way.
Changes in v2:
- Drop dead code spotted by sashiko in 4/6
- Collect tags
- Link to v1: https://lore.kernel.org/all/[email protected]/
Rob Clark (6):
drm/msm/gem: Add helper to check if resident drm/msm/gem: Mmap imported dma-bufs via the exporter drm/msm/gem: Use get_pages() directly in vmap path drm/msm/gem: Stop exposing a page array drm/msm/gem: Stop calling get_pages() for imported dma-bufs drm/msm/gem: Drop use of drm_prime_sg_to_page_array()
drivers/gpu/drm/msm/msm_gem.c | 107 +++++++++++++++++----------- drivers/gpu/drm/msm/msm_gem.h | 10 ++- drivers/gpu/drm/msm/msm_gem_prime.c | 9 +-- drivers/gpu/drm/msm/msm_gem_vma.c | 8 +-- 4 files changed, 78 insertions(+), 56 deletions(-)
Signature · 1 line
2.55.0