Skip to content

Commit

Permalink
drm/amdgpu: toggle on DF Cstate after finishing xgmi injection
Browse files Browse the repository at this point in the history
[ Upstream commit fe2d9f5 ]

Fixes: 5c23e9e ("drm/amdgpu: Update RAS XGMI error inject sequence")
Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Guchun Chen authored and gregkh committed Mar 4, 2021
1 parent 706410d commit b720e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
Expand Up @@ -846,7 +846,7 @@ static int amdgpu_ras_error_inject_xgmi(struct amdgpu_device *adev,
if (amdgpu_dpm_allow_xgmi_power_down(adev, true))
dev_warn(adev->dev, "Failed to allow XGMI power down");

if (amdgpu_dpm_set_df_cstate(adev, DF_CSTATE_DISALLOW))
if (amdgpu_dpm_set_df_cstate(adev, DF_CSTATE_ALLOW))
dev_warn(adev->dev, "Failed to allow df cstate");

return ret;
Expand Down

0 comments on commit b720e3d

Please sign in to comment.