aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/soc21.c
diff options
context:
space:
mode:
authorJames Zhu <[email protected]>2022-01-06 01:36:08 +0000
committerAlex Deucher <[email protected]>2022-05-05 20:52:12 +0000
commit71dae221432cbf2dbd77325c90b9abecccb7b29c (patch)
treec61fe186beb6fa3884115823abfbcc1406555216 /drivers/gpu/drm/amd/amdgpu/soc21.c
parentdrm/amdgpu: add VCN4_0_4 firmware (diff)
downloadkernel-71dae221432cbf2dbd77325c90b9abecccb7b29c.tar.gz
kernel-71dae221432cbf2dbd77325c90b9abecccb7b29c.zip
drm/amdgpu/jpeg: enable JPEG CG for VCN4_0_4
Enable JPEG CG for VCN4_0_4. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Sonny Jiang <[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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index d91bd70028b5..6d6aca7f64d9 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -548,7 +548,8 @@ static int soc21_common_early_init(void *handle)
adev->external_rev_id = adev->rev_id + 0x1; // TODO: need update
break;
case IP_VERSION(11, 0, 2):
- adev->cg_flags = 0;
+ adev->cg_flags =
+ AMD_CG_SUPPORT_JPEG_MGCG;
adev->pg_flags = 0;
adev->external_rev_id = adev->rev_id + 0x10;
break;