Commit 20e157c7 authored by Alex Deucher's avatar Alex Deucher Committed by Alex Deucher

drm/amdgpu: add mode2 reset support for vangogh

GPU reset is handled via SMU similar to previous APUs.
Acked-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
parent 3c2a01cb
...@@ -1562,6 +1562,11 @@ static int vangogh_post_smu_init(struct smu_context *smu) ...@@ -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 = { static const struct pptable_funcs vangogh_ppt_funcs = {
.check_fw_status = smu_v11_0_check_fw_status, .check_fw_status = smu_v11_0_check_fw_status,
...@@ -1596,6 +1601,7 @@ static const struct pptable_funcs vangogh_ppt_funcs = { ...@@ -1596,6 +1601,7 @@ static const struct pptable_funcs vangogh_ppt_funcs = {
.force_clk_levels = vangogh_force_clk_levels, .force_clk_levels = vangogh_force_clk_levels,
.set_performance_level = vangogh_set_performance_level, .set_performance_level = vangogh_set_performance_level,
.post_init = vangogh_post_smu_init, .post_init = vangogh_post_smu_init,
.mode2_reset = vangogh_mode2_reset,
}; };
void vangogh_set_ppt_funcs(struct smu_context *smu) void vangogh_set_ppt_funcs(struct smu_context *smu)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment