mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
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>
This commit is contained in:
parent
489763af89
commit
535f778610
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ static bool sienna_cichlid_is_mode2_default(struct amdgpu_reset_control *reset_c
|
||||||
adev->pm.fw_version >= 0x3a5500 && !amdgpu_sriov_vf(adev))
|
adev->pm.fw_version >= 0x3a5500 && !amdgpu_sriov_vf(adev))
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
return false;
|
return amdgpu_reset_method == AMD_RESET_METHOD_MODE2;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct amdgpu_reset_handler *
|
static struct amdgpu_reset_handler *
|
||||||
|
|
Loading…
Reference in a new issue