diff options
| author | Tomasz Rusinowicz <[email protected]> | 2025-02-18 10:03:53 +0000 |
|---|---|---|
| committer | Thomas Hellström <[email protected]> | 2025-03-20 16:59:49 +0000 |
| commit | 50af7cab7520e46680cf4633bba6801443b75856 (patch) | |
| tree | e0fd7351536e0f7584d37d53f6d43a60dd24f709 /rust/helpers/platform.c | |
| parent | drm/xe: remove redundant check in xe_vm_create_ioctl() (diff) | |
| download | kernel-50af7cab7520e46680cf4633bba6801443b75856.tar.gz kernel-50af7cab7520e46680cf4633bba6801443b75856.zip | |
drm/xe: Fix exporting xe buffers multiple times
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/xe: Disallow pinning dma-bufs in VRAM")
Cc: Thomas Hellström <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: Lucas De Marchi <[email protected]>
Cc: "Thomas Hellström" <[email protected]>
Cc: Michal Wajdeczko <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: Matthew Auld <[email protected]>
Cc: Nirmoy Das <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: [email protected]
Cc: <[email protected]> # v6.8+
Signed-off-by: Tomasz Rusinowicz <[email protected]>
Signed-off-by: Jacek Lawrynowicz <[email protected]>
Reviewed-by: Matthew Brost <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Thomas Hellström <[email protected]>
(cherry picked from commit b96dabdba9b95f71ded50a1c094ee244408b2a8e)
Signed-off-by: Thomas Hellström <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions
