Re: [Intel-gfx] [PATCH v2 1/4] drm/i915/dmabuf: fix sg_table handling in map_dma_buf

2022-10-28 Thread Ruhl, Michael J
>-Original Message- >From: Auld, Matthew >Sent: Friday, October 28, 2022 11:50 AM >To: intel-gfx@lists.freedesktop.org >Cc: Landwerlin, Lionel G ; Tvrtko Ursulin >; Ville Syrjälä >; >Ruhl, Michael J >Subject: [PATCH v2 1/4] drm/i915/dmabuf: fix sg_table handling in >map_dma_buf > >We

[Intel-gfx] [PATCH v2 1/4] drm/i915/dmabuf: fix sg_table handling in map_dma_buf

2022-10-28 Thread Matthew Auld
We need to iterate over the original entries here for the sg_table, pulling out the struct page for each one, to be remapped. However currently this incorrectly iterates over the final dma mapped entries, which is likely just one gigantic sg entry if the iommu is enabled, leading to us only