summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTejas Upadhyay <tejas.upadhyay@intel.com>2026-10-06 18:11:29 +0530
committerDave Airlie <airlied@redhat.com>2026-11-09 19:17:53 +1000
commitd5900171cd258c4c1b41b50758629a717962a77f (patch)
tree22b0f7de1c556f9fd9db082eb60ade939a782985 /tools/perf/scripts/python
parentd4293625c7847de897b83262fb054fca1437bc05 (diff)
drm/xe: Drop RCU list handling for VRAM bad-page tracking, use mgr->lock
queued_pages and offlined_pages were mutated with list_add_rcu()/ list_del_rcu()/kfree_rcu(), but the only lockless consumer was the vram_bad_pages debugfs show function. Every other reader and writer already runs under mgr->lock, so the RCU protection bought nothing but complexity and a rcu_head field on every tracked entry. Convert all list operations to plain list_add()/list_del()/kfree(), including the retry helper added by the ghost-ownership fix, and have vram_bad_pages_show() take mgr->lock instead of rcu_read_lock() so list traversal is always serialized against mutation. Fixes: 7737f819e9f1 ("drm/xe/vram: Add VRAM page offline fault handler") Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Link: https://patch.msgid.link/20261006124125.1560295-9-tejas.upadhyay@intel.com Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com> (cherry picked from commit ef5c65f507d248dd39e147a35844dcac9e94f0ac) Signed-off-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions