From: Saleemkhan Jamadar <[email protected]>

Enable CG and PG flags for VCN on IP 11_5_0

Signed-off-by: Saleemkhan Jamadar <[email protected]>
Acked-by: Leo Liu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c 
b/drivers/gpu/drm/amd/amdgpu/soc21.c
index cad57afa89e4..bb281ee3bd15 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -691,8 +691,10 @@ static int soc21_common_early_init(void *handle)
 
 
        case IP_VERSION(11, 5, 0):
-               adev->cg_flags = 0;
-               adev->pg_flags = 0;
+               adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG |
+                       AMD_CG_SUPPORT_JPEG_MGCG;
+               adev->pg_flags = AMD_PG_SUPPORT_VCN_DPG |
+                       AMD_PG_SUPPORT_GFX_PG;
                adev->external_rev_id = adev->rev_id + 0x1;
                break;
        default:
-- 
2.41.0

Reply via email to