summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTianci.Yin <tianci.yin@amd.com>2022-03-10 16:12:49 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-03-15 21:34:45 +0300
commit72a98763b473890e6605604bfcaf71fc212b4720 (patch)
treecb1de7e4fd0d17b56723b5541adee1dc8e1f97d9
parent85ac2021fe3ace59cc0afd6edf005abad35625b0 (diff)
downloadlinux-72a98763b473890e6605604bfcaf71fc212b4720.tar.xz
drm/amd: fix gfx hang on renoir in IGT reload test
[why] CP hangs in igt reloading test on renoir, more precisely, hangs on the second time insmod. [how] mode2 reset can make it recover, and mode2 reset only effects gfx core, dcn and the screen will not be impacted. Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Tianci.Yin <tianci.yin@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc15.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
index 496c4a6e23ac..3d0251ef8d79 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -853,6 +853,10 @@ static bool soc15_need_reset_on_init(struct amdgpu_device *adev)
{
u32 sol_reg;
+ /* CP hangs in IGT reloading test on RN, reset to WA */
+ if (adev->asic_type == CHIP_RENOIR)
+ return true;
+
/* Just return false for soc15 GPUs. Reset does not seem to
* be necessary.
*/