Re: [PATCH 2/2] drm/amdgpu/dma_buf: fix page_link check

2025-04-07 Thread Alex Deucher
Applied. Thanks! On Mon, Apr 7, 2025 at 10:42 AM Christian König wrote: > > Am 07.04.25 um 16:18 schrieb Matthew Auld: > > The page_link lower bits of the first sg could contain something like > > SG_END, if we are mapping a single VRAM page or contiguous blob which > > fits into one sg entry. R

Re: [PATCH 2/2] drm/amdgpu/dma_buf: fix page_link check

2025-04-07 Thread Matthew Auld
On 07/04/2025 15:46, Christian König wrote: Am 07.04.25 um 16:44 schrieb Matthew Auld: On 07/04/2025 15:32, Christian König wrote: Am 07.04.25 um 16:18 schrieb Matthew Auld: The page_link lower bits of the first sg could contain something like SG_END, if we are mapping a single VRAM page or co

Re: [PATCH 2/2] drm/amdgpu/dma_buf: fix page_link check

2025-04-07 Thread Christian König
Am 07.04.25 um 16:44 schrieb Matthew Auld: > On 07/04/2025 15:32, Christian König wrote: >> Am 07.04.25 um 16:18 schrieb Matthew Auld: >>> The page_link lower bits of the first sg could contain something like >>> SG_END, if we are mapping a single VRAM page or contiguous blob which >>> fits into on

Re: [PATCH 2/2] drm/amdgpu/dma_buf: fix page_link check

2025-04-07 Thread Matthew Auld
On 07/04/2025 15:32, Christian König wrote: Am 07.04.25 um 16:18 schrieb Matthew Auld: The page_link lower bits of the first sg could contain something like SG_END, if we are mapping a single VRAM page or contiguous blob which fits into one sg entry. Rather pull out the struct page, and use that

Re: [PATCH 2/2] drm/amdgpu/dma_buf: fix page_link check

2025-04-07 Thread Christian König
Am 07.04.25 um 16:18 schrieb Matthew Auld: > The page_link lower bits of the first sg could contain something like > SG_END, if we are mapping a single VRAM page or contiguous blob which > fits into one sg entry. Rather pull out the struct page, and use that in > our check to know if we mapped stru

[PATCH 2/2] drm/amdgpu/dma_buf: fix page_link check

2025-04-07 Thread Matthew Auld
The page_link lower bits of the first sg could contain something like SG_END, if we are mapping a single VRAM page or contiguous blob which fits into one sg entry. Rather pull out the struct page, and use that in our check to know if we mapped struct pages vs VRAM. Fixes: f44ffd677fb3 ("drm/amdgpu