summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2023-09-11 14:44:22 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-09-26 16:55:10 -0400
commit101b8104307eac734f2dfa4d3511430b0b631c73 (patch)
treefecf30c97b52f2fcd0f9b7cc18fa18f158688ee5 /tools/perf/scripts/python/stackcollapse.py
parent08abccc9a7a7ff51cb10948042360448ea30d413 (diff)
downloadlinux-101b8104307eac734f2dfa4d3511430b0b631c73.tar.gz
linux-101b8104307eac734f2dfa4d3511430b0b631c73.zip
drm/amdkfd: Move dma unmapping after TLB flush
Otherwise GPU may access the stale mapping and generate IOMMU IO_PAGE_FAULT. Move this to inside p->mutex to prevent multiple threads mapping and unmapping concurrently race condition. After kfd_mem_dmaunmap_attachment is removed from unmap_bo_from_gpuvm, kfd_mem_dmaunmap_attachment is called if failed to map to GPUs, and before free the mem attachment in case failed to unmap from GPUs. Signed-off-by: Philip Yang <Philip.Yang@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions