Skip to content

Commit 74a4941

Browse files
lyndonli-amdalexdeucher
authored andcommitted
drm/amdgpu: Fix mode2 reset for sienna cichlid
Before this change, sienna_cichlid_get_reset_handler will always return NULL, although the module parameter reset_method is 3 when loading amdgpu driver. Signed-off-by: lyndonli <Lyndon.Li@amd.com> Signed-off-by: Yunxiang Li <Yunxiang.Li@amd.com> Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent d893f39 commit 74a4941

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static bool sienna_cichlid_is_mode2_default(struct amdgpu_reset_control *reset_c
4040
adev->pm.fw_version >= 0x3a5500 && !amdgpu_sriov_vf(adev))
4141
return true;
4242
#endif
43-
return false;
43+
return amdgpu_reset_method == AMD_RESET_METHOD_MODE2;
4444
}
4545

4646
static struct amdgpu_reset_handler *

0 commit comments

Comments
 (0)