summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBenjamin Cheng <benjamin.cheng@amd.com>2026-10-13 14:39:44 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-11-18 01:44:32 -0500
commit11f1080ba1bd3df2b2539dab878b3e2a0a89681f (patch)
treebe264fe8b3c6d3ab71bd00319d7454cb65d7439b /tools/perf/scripts/python
parent7345797c8652c976d18dc4be4bae632557c3bc38 (diff)
drm/amdgpu: wait for tlb flush before freeing BO
On gem object close, we previously only attached the fence of its own clear_freed() call to the BO's resv. If an unmap of this BO happened prior to the close call, clear_freed() would be invoked, leaving vm->freed empty, and no meaningful fence to be attached to the resv. Because of that the memory may be freed before the TLB flush is complete, and give a running userq potential access to a stale address translation. Fix this by attaching the last_tlb_inv fence to the BO's resv. Fixes: a1d201e16940 ("drm/amdgpu: enable GFX-V11 userqueue support") Signed-off-by: Benjamin Cheng <benjamin.cheng@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit ab88e18030a1f2c340f64172287af19d1a48d3cc) Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions