diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 5cd45210113f..5a9534a82d40 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |||
@@ -5664,6 +5664,11 @@ static int gfx_v8_0_set_powergating_state(void *handle, | |||
5664 | if (amdgpu_sriov_vf(adev)) | 5664 | if (amdgpu_sriov_vf(adev)) |
5665 | return 0; | 5665 | return 0; |
5666 | 5666 | ||
5667 | if (adev->pg_flags & (AMD_PG_SUPPORT_GFX_SMG | | ||
5668 | AMD_PG_SUPPORT_RLC_SMU_HS | | ||
5669 | AMD_PG_SUPPORT_CP | | ||
5670 | AMD_PG_SUPPORT_GFX_DMG)) | ||
5671 | adev->gfx.rlc.funcs->enter_safe_mode(adev); | ||
5667 | switch (adev->asic_type) { | 5672 | switch (adev->asic_type) { |
5668 | case CHIP_CARRIZO: | 5673 | case CHIP_CARRIZO: |
5669 | case CHIP_STONEY: | 5674 | case CHIP_STONEY: |
@@ -5713,7 +5718,11 @@ static int gfx_v8_0_set_powergating_state(void *handle, | |||
5713 | default: | 5718 | default: |
5714 | break; | 5719 | break; |
5715 | } | 5720 | } |
5716 | 5721 | if (adev->pg_flags & (AMD_PG_SUPPORT_GFX_SMG | | |
5722 | AMD_PG_SUPPORT_RLC_SMU_HS | | ||
5723 | AMD_PG_SUPPORT_CP | | ||
5724 | AMD_PG_SUPPORT_GFX_DMG)) | ||
5725 | adev->gfx.rlc.funcs->exit_safe_mode(adev); | ||
5717 | return 0; | 5726 | return 0; |
5718 | } | 5727 | } |
5719 | 5728 | ||