artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d22af7a
)
drm/amdgpu: Enable pg/cg flags on GC11_0_4 for VCN
author
jsg
<jsg@openbsd.org>
Thu, 19 Jan 2023 00:29:55 +0000
(
00:29
+0000)
committer
jsg
<jsg@openbsd.org>
Thu, 19 Jan 2023 00:29:55 +0000
(
00:29
+0000)
From Saleemkhan Jamadar
e30be0ada6e2a55e8581aa55860afc6cf5183300
in linux-6.1.y/6.1.7
2a0fe2ca6e9c9bf9c47a9f9f0d67c13281a13f8c
in mainline linux
sys/dev/pci/drm/amd/amdgpu/soc21.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/soc21.c
b/sys/dev/pci/drm/amd/amdgpu/soc21.c
index
26f1e4e
..
599ddc2
100644
(file)
--- 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;