projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b77cc85
)
drm/amdgpu: use mode-2 reset for RAS poison consumption
author
Tao Zhou
<tao.zhou1@amd.com>
Fri, 27 Oct 2023 03:38:18 +0000
(11:38 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 3 Nov 2023 15:38:13 +0000
(11:38 -0400)
Switch from mode-1 reset to mode-2 for poison consumption.
Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Stanley.Yang <Stanley.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
index f74347cc087a0d0d0e789da79b70881c15bfd7d9..d65e21914d8c4a9e8f7d03a59391504e08a46f63 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
@@
-166,8
+166,12
@@
static int amdgpu_umc_do_page_retirement(struct amdgpu_device *adev,
}
}
- if (reset)
+ if (reset) {
+ /* use mode-2 reset for poison consumption */
+ if (!entry)
+ con->gpu_reset_flags |= AMDGPU_RAS_GPU_RESET_MODE2_RESET;
amdgpu_ras_reset_gpu(adev);
+ }
}
kfree(err_data->err_addr);