diff options
| author | 2026-07-06 22:58:18 -0700 | |
|---|---|---|
| committer | 2026-07-07 10:04:51 -0700 | |
| commit | 928caf71e566ddc5f303f15fb9c33f16a9915f30 (patch) | |
| tree | e64d01d3c7344f6be344537e19b393da4353794b /tools/lib/python/kdoc/python_version.py | |
| parent | accel/amdxdna: Fix deadlock on debug BO command timeout (diff) | |
accel/amdxdna: Fix hardware context race in amdxdna_update_heap()
amdxdna_update_heap() iterates over hardware contexts while holding
xdna->dev_lock. During the iteration, amdxdna_pm_resume_get_locked() may
temporarily release and reacquire the lock, allowing hardware contexts to
be modified concurrently.
Fix the race by calling amdxdna_pm_resume_get_locked() before
iterating over hardware contexts.
Fixes: dbc8fd7a03cb ("accel/amdxdna: Add expandable device heap support")
Reviewed-by: Max Zhen <max.zhen@amd.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260707055818.479165-1-lizhi.hou@amd.com
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
