summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-01-25 02:40:04 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-01-25 02:40:04 +0000
commitd407cd49c9498bcfe1b6194733ce8ca4e53b6c76 (patch)
tree2df7806084a4a44e59183ffd91469ad5c3c54175 /sys/dev
parent3168a0896d8a2353fc040d975a9487a3d898fbcb (diff)
drm/amdgpu: enable GFX Power Gating for GC IP v11.0.4
From Tim Huang 834a9142586542f7de693135caf9cc43c0b1e1b2 in linux-6.1.y/6.1.8 a89e2965da6e644729a8ee9c318b7fa9a2990353 in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c b/sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
index b379f3f33de..b865d81b223 100644
--- a/sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
+++ b/sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
@@ -5030,6 +5030,7 @@ static void gfx_v11_cntl_power_gating(struct amdgpu_device *adev, bool enable)
if (enable && (adev->pg_flags & AMD_PG_SUPPORT_GFX_PG)) {
switch (adev->ip_versions[GC_HWIP][0]) {
case IP_VERSION(11, 0, 1):
+ case IP_VERSION(11, 0, 4):
WREG32_SOC15(GC, 0, regRLC_PG_DELAY_3, RLC_PG_DELAY_3_DEFAULT_GC_11_0_1);
break;
default:
@@ -5063,6 +5064,7 @@ static int gfx_v11_0_set_powergating_state(void *handle,
amdgpu_gfx_off_ctrl(adev, enable);
break;
case IP_VERSION(11, 0, 1):
+ case IP_VERSION(11, 0, 4):
gfx_v11_cntl_pg(adev, enable);
amdgpu_gfx_off_ctrl(adev, enable);
break;