]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Issue GGTT invalidation under lock in ggtt_node_remove
authorMatthew Brost <matthew.brost@intel.com>
Thu, 26 Mar 2026 01:12:07 +0000 (18:12 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 26 Mar 2026 19:03:02 +0000 (12:03 -0700)
commit225d02cb46d0e567eb788308168159f61735c8fe
tree73f1c899c20955b66419dd730e6e486d51925295
parent1600b49b0819599b138f92c72e6c6ebb43c40378
drm/xe: Issue GGTT invalidation under lock in ggtt_node_remove

Async work (e.g., GuC queue teardowns) can call ggtt_node_remove, so the
operation must be performed under the GGTT lock to ensure the GGTT
online check remains stable. GGTT insertion and removal are heavyweight
operations (e.g., queue create/destroy), so the additional serialization
cost is negligible compared to ensuring correctness.

Fixes: 4f3a998a173b ("drm/xe: Open-code GGTT MMIO access protection")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Link: https://patch.msgid.link/20260326011207.62373-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_ggtt.c