]> www.infradead.org Git - users/willy/pagecache.git/commit
drm/xe/migrate: fix pat index usage
authorMatthew Auld <matthew.auld@intel.com>
Tue, 26 Nov 2024 18:13:00 +0000 (18:13 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 27 Nov 2024 10:54:19 +0000 (10:54 +0000)
commitf3dc9246f9c3cd5a7d8fd70cfd805bfc52214e2e
tree841826ee9dfad4d5696094a3c628f1e0404379db
parentf8c91d966372d7796b9908d4dd933f6900f27b76
drm/xe/migrate: fix pat index usage

XE_CACHE_WB must be converted into the per-platform pat index for that
particular caching mode, otherwise we are just encoding whatever happens
to be the value of that enum.

Fixes: e8babb280b5e ("drm/xe: Convert multiple bind ops into single job")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Cc: <stable@vger.kernel.org> # v6.12+
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241126181259.159713-3-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_migrate.c