Files
Tomasz Rusinowicz 50af7cab75 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: 7764222d54 ("drm/xe: Disallow pinning dma-bufs in VRAM")
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: intel-xe@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v6.8+
Signed-off-by: Tomasz Rusinowicz <tomasz.rusinowicz@intel.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250218100353.2137964-1-jacek.lawrynowicz@linux.intel.com
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
(cherry picked from commit b96dabdba9b95f71ded50a1c094ee244408b2a8e)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
2025-03-20 17:59:49 +01:00
..
2025-01-09 17:58:09 +01:00
2025-03-04 14:44:49 -05:00
2025-01-09 17:58:09 +01:00
2024-05-09 21:28:25 +02:00
2025-01-09 17:58:09 +01:00
2025-01-09 17:58:09 +01:00
2025-01-09 17:58:09 +01:00
2025-01-09 17:58:09 +01:00
2025-01-09 17:58:09 +01:00
2024-11-15 15:59:51 -08:00
2024-11-15 15:59:51 -08:00
2024-11-15 15:59:51 -08:00
2024-05-13 21:36:50 +02:00
2025-01-09 17:58:09 +01:00
2024-11-15 15:59:51 -08:00
2024-05-22 12:03:55 +02:00
2024-12-05 07:37:53 -08:00
2024-09-19 10:15:40 +02:00
2025-01-09 17:58:09 +01:00
2024-05-07 12:03:49 +02:00
2025-01-09 17:58:09 +01:00
2025-01-09 17:58:09 +01:00
2025-03-05 14:25:11 -05:00
2024-05-13 21:36:52 +02:00
2024-06-18 12:03:29 -07:00
2025-01-09 17:58:09 +01:00
2025-01-09 17:58:09 +01:00
2024-07-18 10:25:33 -04:00
2024-07-18 10:25:33 -04:00
2024-12-02 15:03:58 -05:00
2024-12-09 09:59:47 -05:00
2024-12-03 15:02:55 -05:00
2024-11-27 05:36:55 -05:00
2024-07-24 09:05:37 -07:00