Skip to content

Commit 0534740

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Add SMU v13.0.6 default reset methods
For APUs with SMU v13.0.6, mode-2 reset is kept as default and for others mode-1 is the default reset method. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Asad Kamal <[email protected]> Tested-by: Asad Kamal <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 39c8b93 commit 0534740

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

drivers/gpu/drm/amd/amdgpu/soc15.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,10 @@ soc15_asic_reset_method(struct amdgpu_device *adev)
559559
*/
560560
if (amdgpu_gpu_recovery == 4 || amdgpu_gpu_recovery == 5)
561561
return AMD_RESET_METHOD_MODE2;
562+
else if (!(adev->flags & AMD_IS_APU))
563+
return AMD_RESET_METHOD_MODE1;
562564
else
563-
return AMD_RESET_METHOD_NONE;
565+
return AMD_RESET_METHOD_MODE2;
564566
default:
565567
break;
566568
}

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,8 +2158,7 @@ static int smu_v13_0_6_mode1_reset(struct smu_context *smu)
21582158

21592159
static bool smu_v13_0_6_is_mode1_reset_supported(struct smu_context *smu)
21602160
{
2161-
/* TODO: Enable this when FW support is added */
2162-
return false;
2161+
return true;
21632162
}
21642163

21652164
static bool smu_v13_0_6_is_mode2_reset_supported(struct smu_context *smu)

0 commit comments

Comments
 (0)