summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/pm/amdgpu_pm.c
diff options
context:
space:
mode:
authorXiaogang Chen <xiaogang.chen@amd.com>2023-09-27 11:20:28 -0500
committerAlex Deucher <alexander.deucher@amd.com>2023-09-28 15:44:29 -0400
commit709c348261618da7ed89d6c303e2ceb9e453ba74 (patch)
treeae1ce3b6a0794dde0477a546e2e5547f120b559e /drivers/gpu/drm/amd/pm/amdgpu_pm.c
parent003048ddf44b1a6cfa57afa5a0cf40673e13f1ba (diff)
drm/amdkfd: Fix a race condition of vram buffer unref in svm code
prange->svm_bo unref can happen in both mmu callback and a callback after migrate to system ram. Both are async call in different tasks. Sync svm_bo unref operation to avoid random "use-after-free". Signed-off-by: Xiaogang Chen <xiaogang.chen@amd.com> Reviewed-by: Philip Yang <Philip.Yang@amd.com> Reviewed-by: Jesse Zhang <Jesse.Zhang@amd.com> Tested-by: Jesse Zhang <Jesse.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions