From: jsg Date: Thu, 19 Jan 2023 00:29:55 +0000 (+0000) Subject: drm/amdgpu: Enable pg/cg flags on GC11_0_4 for VCN X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=468bb38abeec525ffe246696a0bca756ed1ea3ec;p=openbsd drm/amdgpu: Enable pg/cg flags on GC11_0_4 for VCN From Saleemkhan Jamadar e30be0ada6e2a55e8581aa55860afc6cf5183300 in linux-6.1.y/6.1.7 2a0fe2ca6e9c9bf9c47a9f9f0d67c13281a13f8c in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/soc21.c b/sys/dev/pci/drm/amd/amdgpu/soc21.c index 26f1e4edb4d..599ddc28d8e 100644 --- a/sys/dev/pci/drm/amd/amdgpu/soc21.c +++ b/sys/dev/pci/drm/amd/amdgpu/soc21.c @@ -654,8 +654,11 @@ static int soc21_common_early_init(void *handle) adev->external_rev_id = adev->rev_id + 0x20; break; case IP_VERSION(11, 0, 4): - 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 | + AMD_PG_SUPPORT_GFX_PG | + AMD_PG_SUPPORT_JPEG; adev->external_rev_id = adev->rev_id + 0x1; break;