Re: [PATCH] drm/xe: Fix exporting xe buffers multiple times

2025-02-18 Thread Matthew Brost
On Tue, Feb 18, 2025 at 11:03:53AM +0100, Jacek Lawrynowicz wrote: > From: Tomasz Rusinowicz > > The `struct ttm_resource->placement` contains TTM_PL_FLAG_* flags, but > it was incorrectly tested for XE_PL_* flags. > This caused xe_dma_buf_pin() to always fail when invoked for > the second time.

[PATCH] drm/xe: Fix exporting xe buffers multiple times

2025-02-18 Thread Jacek Lawrynowicz
From: Tomasz Rusinowicz The `struct ttm_resource->placement` contains TTM_PL_FLAG_* flags, but it was incorrectly tested for XE_PL_* flags. This caused xe_dma_buf_pin() to always fail when invoked for the second time. Fix this by checking the `mem_type` field instead. Fixes: 7764222d54b7 ("drm/x