diff options
| author | Prike Liang <[email protected]> | 2019-09-11 13:15:17 +0800 | 
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-09-17 14:37:58 -0500 | 
| commit | 4f3a2c10772581840d11b76b5c1147a3767710f7 (patch) | |
| tree | 30861918a4fb95f8a97389069af7ee167980ebe1 /drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | |
| parent | 73d8e6c7b841d9bf298c8928f228fb433676635c (diff) | |
drm/amd/amdgpu: power up sdma engine when S3 resume back
The sdma_v4 should be ungated when the IP resume back,
otherwise it will hang up and resume time out error.
Signed-off-by: Prike Liang <[email protected]>
Reviewed-by: Evan Quan <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c index 61bd10310604..5803fcbae22f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c @@ -948,6 +948,7 @@ int amdgpu_dpm_set_powergating_by_smu(struct amdgpu_device *adev, uint32_t block  	case AMD_IP_BLOCK_TYPE_UVD:  	case AMD_IP_BLOCK_TYPE_VCN:  	case AMD_IP_BLOCK_TYPE_VCE: +	case AMD_IP_BLOCK_TYPE_SDMA:  		if (swsmu)  			ret = smu_dpm_set_power_gate(&adev->smu, block_type, gate);  		else @@ -956,7 +957,6 @@ int amdgpu_dpm_set_powergating_by_smu(struct amdgpu_device *adev, uint32_t block  		break;  	case AMD_IP_BLOCK_TYPE_GMC:  	case AMD_IP_BLOCK_TYPE_ACP: -	case AMD_IP_BLOCK_TYPE_SDMA:  		ret = ((adev)->powerplay.pp_funcs->set_powergating_by_smu(  				(adev)->powerplay.pp_handle, block_type, gate));  		break;  |