aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
diff options
context:
space:
mode:
authorPhilip Yang <[email protected]>2025-02-06 22:50:13 +0000
committerAlex Deucher <[email protected]>2025-02-27 21:50:04 +0000
commitf0b4440cdc1807bb6ec3dce0d6de81170803569b (patch)
treefd47e4e0c5a8fa7d4519d5bb1a15275c8c65a395 /drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
parentdrm/amdkfd: KFD release_work possible circular locking (diff)
downloadkernel-f0b4440cdc1807bb6ec3dce0d6de81170803569b.tar.gz
kernel-f0b4440cdc1807bb6ec3dce0d6de81170803569b.zip
drm/amdkfd: Fix mode1 reset crash issue
If HW scheduler hangs and mode1 reset is used to recover GPU, KFD signal user space to abort the processes. After process abort exit, user queues still use the GPU to access system memory before h/w is reset while KFD cleanup worker free system memory and free VRAM. There is use-after-free race bug that KFD allocate and reuse the freed system memory, and user queue write to the same system memory to corrupt the data structure and cause driver crash. To fix this race, KFD cleanup worker terminate user queues, then flush reset_domain wq to wait for any GPU ongoing reset complete, and then free outstanding BOs. Signed-off-by: Philip Yang <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c')
0 files changed, 0 insertions, 0 deletions