summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLizhi Hou <lizhi.hou@amd.com>2026-08-13 13:50:16 -0700
committerLizhi Hou <lizhi.hou@amd.com>2026-09-01 10:40:39 -0700
commit445d20910429b41e88768624b914344658991a5b (patch)
tree1cdf611971258d2a5d52c94d8423684a955a2113 /tools/perf/scripts/python/stackcollapse.py
parent0116f19db5931348c937eafa1f76a9a19bf82c81 (diff)
downloadlinux-445d20910429b41e88768624b914344658991a5b.tar.gz
linux-445d20910429b41e88768624b914344658991a5b.zip
accel/amdxdna: Fix unexpected wait when flushing notifier_wq
In amdxdna_gem_obj_free(), flush_workqueue(xdna->notifier_wq) waits for all pending work items on the device-global notifier workqueue, rather than only the work items associated with the BO being freed. If another BO has a pending hmm_unreg_work, freeing an unrelated BO can be unnecessarily blocked until that work completes. mmu_interval_notifier_remove() is deferred to a workqueue because it cannot be called from the MMU notifier callback itself. The BO free path is not a notifier callback, so call mmu_interval_notifier_remove() directly there and avoid the workqueue. Fixes: e486147c912f ("accel/amdxdna: Add BO import and export") Reviewed-by: Max Zhen <max.zhen@amd.com> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260813205016.941743-1-lizhi.hou@amd.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions