diff options
| author | Trigger Huang <[email protected]> | 2016-11-16 15:13:45 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-11-23 20:08:46 +0000 |
| commit | 7b1e8cad1f3612d8059e1dfd870f4928a68691fa (patch) | |
| tree | 3e87c28780490274a05523aaadded8a6754fadae /drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |
| parent | drm/amdgpu: use AMDGPU_GEM_CREATE_VRAM_CLEARED for VM PD/PTs (v2) (diff) | |
| download | kernel-7b1e8cad1f3612d8059e1dfd870f4928a68691fa.tar.gz kernel-7b1e8cad1f3612d8059e1dfd870f4928a68691fa.zip | |
drm/amdgpu: Disable DPM in virtualization
This patch is used for virtualization support. In virtualization,
only SMU manager is needed, DPM should be disabled. This is a
use case for commit 2f9346b6f984
("drm/amdgpu/powerplay: pp module only enable smu when dpm disabled.")
Signed-off-by: Trigger Huang <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index e2f0507eaac1..fc592c2b0e16 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c @@ -184,7 +184,7 @@ static int amdgpu_pp_hw_init(void *handle) ret = adev->powerplay.ip_funcs->hw_init( adev->powerplay.pp_handle); - if (amdgpu_dpm != 0) + if ((amdgpu_dpm != 0) && !amdgpu_sriov_vf(adev)) adev->pm.dpm_enabled = true; return ret; |
