summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorKenneth Feng2019-04-16 10:47:10 +0200
committerAlex Deucher2019-06-22 01:59:27 +0200
commitc4b76d23df24b096893efd315da9e44a732fd7a6 (patch)
treea7a176daeb6ad8b2b4ffc2c2e8daf9e5b56d5b6e /drivers/gpu
parentdrm/amdgpu/vcn2: notify SMU power up/down VCN (diff)
downloadkernel-qcow2-linux-c4b76d23df24b096893efd315da9e44a732fd7a6.tar.gz
kernel-qcow2-linux-c4b76d23df24b096893efd315da9e44a732fd7a6.tar.xz
kernel-qcow2-linux-c4b76d23df24b096893efd315da9e44a732fd7a6.zip
drm/amd/powerplay: enable vcn powergating v2
enable vcn powergating in driver for navi10 v2: set vcn pg bit according to AMD_PG_SUPPORT_VCN flag Signed-off-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Jack Xiao <Jack.Xiao@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/powerplay/navi10_ppt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
index d41763c54612..2c0714a48811 100644
--- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
+++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
@@ -275,6 +275,9 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
*(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFX_SS_BIT)
| FEATURE_MASK(FEATURE_GFXOFF_BIT);
+ if (smu->adev->pg_flags & AMD_PG_SUPPORT_VCN)
+ *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_VCN_PG_BIT);
+
return 0;
}