drm/amdgpu: add mode2 reset support for vangogh
GPU reset is handled via SMU similar to previous APUs. Acked-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Huang Rui <ray.huang@amd.com>
This commit is contained in:
parent
3c2a01cb0f
commit
20e157c725
|
@ -1562,6 +1562,11 @@ static int vangogh_post_smu_init(struct smu_context *smu)
|
|||
}
|
||||
}
|
||||
|
||||
static int vangogh_mode2_reset(struct smu_context *smu)
|
||||
{
|
||||
return smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_GfxDeviceDriverReset, SMU_RESET_MODE_2, NULL);
|
||||
}
|
||||
|
||||
static const struct pptable_funcs vangogh_ppt_funcs = {
|
||||
|
||||
.check_fw_status = smu_v11_0_check_fw_status,
|
||||
|
@ -1596,6 +1601,7 @@ static const struct pptable_funcs vangogh_ppt_funcs = {
|
|||
.force_clk_levels = vangogh_force_clk_levels,
|
||||
.set_performance_level = vangogh_set_performance_level,
|
||||
.post_init = vangogh_post_smu_init,
|
||||
.mode2_reset = vangogh_mode2_reset,
|
||||
};
|
||||
|
||||
void vangogh_set_ppt_funcs(struct smu_context *smu)
|
||||
|
|
Loading…
Reference in New Issue