aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/soc21.c
diff options
context:
space:
mode:
authorSonny Jiang <[email protected]>2022-07-21 17:27:12 +0000
committerAlex Deucher <[email protected]>2022-07-28 20:28:54 +0000
commit47231d5e396a94e869b877bb1a0dcd526d91ac6e (patch)
tree2484946cfd6955f6f4cde858e946718f406f373a /drivers/gpu/drm/amd/amdgpu/soc21.c
parentdrm/amdgpu: vcn_4_0_2 video codec query (diff)
downloadkernel-47231d5e396a94e869b877bb1a0dcd526d91ac6e.tar.gz
kernel-47231d5e396a94e869b877bb1a0dcd526d91ac6e.zip
drm/amdgpu: enable VCN cg and JPEG cg/pg
Not enable VCN pg because encode issue Signed-off-by: Sonny Jiang <[email protected]> Reviewed-by: James Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc21.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc21.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index 68e78983f956..52816de5e17b 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -585,8 +585,11 @@ static int soc21_common_early_init(void *handle)
adev->external_rev_id = adev->rev_id + 0x10;
break;
case IP_VERSION(11, 0, 1):
- 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_JPEG;
adev->external_rev_id = adev->rev_id + 0x1;
break;
default: