Skip to content

Commit

Permalink
drm/amdgpu: Fix mode2 reset for sienna cichlid
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Yunxiang Li <[email protected]>
Reviewed-by: Feifei Xu <[email protected]>
Reviewed-by: Kenneth Feng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
  • Loading branch information
lyndonli authored and alexdeucher committed May 4, 2023
1 parent d893f39 commit 74a4941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/sienna_cichlid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
return true;
#endif
return false;
return amdgpu_reset_method == AMD_RESET_METHOD_MODE2;
}

static struct amdgpu_reset_handler *
Expand Down

0 comments on commit 74a4941

Please sign in to comment.