]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/sa: Avoid caching GGTT address within the manager
authorTomasz Lis <tomasz.lis@intel.com>
Sat, 2 Aug 2025 03:10:38 +0000 (05:10 +0200)
committerMichał Winiarski <michal.winiarski@intel.com>
Mon, 4 Aug 2025 14:46:17 +0000 (16:46 +0200)
commitd47cc89d810d7ec19fbb34331551a3439da99c01
treef0982c2a0cbf7584890b71378cbf298f7af50ae9
parent0521a868222ffe636bf202b6e9d29292c1e19c62
drm/xe/sa: Avoid caching GGTT address within the manager

Non-virtualized resources require fixups after SRIOV VF migration.
Caching GGTT references rather than re-computing them from the
underlying Buffer Object is something we want to avoid, as such
code would require additional fixup step and additional locking
around all the places where the address is accessed.

This change removes the cached GPU address from the Sub-Allocation
Manager, and introduces a function which recomputes and returns
the address instead.

v2: renamed xe_sa_manager_gpu_addr(), added kerneldoc

Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://lore.kernel.org/r/20250802031045.1127138-2-tomasz.lis@intel.com
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
drivers/gpu/drm/xe/xe_gt_debugfs.c
drivers/gpu/drm/xe/xe_guc_buf.c
drivers/gpu/drm/xe/xe_sa.c
drivers/gpu/drm/xe/xe_sa.h
drivers/gpu/drm/xe/xe_sa_types.h
drivers/gpu/drm/xe/xe_sriov_vf_ccs.c