Commit 64c5cc93 authored by chen gong's avatar chen gong Committed by Alex Deucher

drm/amdgpu: No need to check gfxoff status after enable gfxoff feature

smu_send_smc_msg(smu, SMU_MSG_AllowGfxOff) Just turn on a switch.

As to when GPU get into "GFXoff" will be up to drawing load.

So we can not sure which state GPU should be in after enable gfxoff
feature.
Signed-off-by: default avatarchen gong <curry.gong@amd.com>
Acked-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarKevin Wang <kevin1.wang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5441dd0e
...@@ -244,15 +244,6 @@ static int smu_v12_0_gfx_off_control(struct smu_context *smu, bool enable) ...@@ -244,15 +244,6 @@ static int smu_v12_0_gfx_off_control(struct smu_context *smu, bool enable)
if (enable) { if (enable) {
ret = smu_send_smc_msg(smu, SMU_MSG_AllowGfxOff); ret = smu_send_smc_msg(smu, SMU_MSG_AllowGfxOff);
/* confirm gfx is back to "off" state, timeout is 5 seconds */
while (!(smu_v12_0_get_gfxoff_status(smu) == 0)) {
msleep(10);
timeout--;
if (timeout == 0) {
DRM_ERROR("enable gfxoff timeout and failed!\n");
break;
}
}
} else { } else {
ret = smu_send_smc_msg(smu, SMU_MSG_DisallowGfxOff); ret = smu_send_smc_msg(smu, SMU_MSG_DisallowGfxOff);
......
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