summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLijo Lazar <lijo.lazar@amd.com>2023-06-26 17:37:47 +0530
committerAlex Deucher <alexander.deucher@amd.com>2023-06-30 13:12:15 -0400
commitfc8e84a2408fd7bea6265e51545a8bfab1f4592d (patch)
treed4e32c30e91586a2b70c7dede0f2541e30fdc311
parent803f31814f017de50f285efe90fecbb1668391a7 (diff)
downloadlinux-stable-fc8e84a2408fd7bea6265e51545a8bfab1f4592d.tar.gz
linux-stable-fc8e84a2408fd7bea6265e51545a8bfab1f4592d.tar.bz2
linux-stable-fc8e84a2408fd7bea6265e51545a8bfab1f4592d.zip
drm/amd/pm: Enable pp_feature attribute
on APUs with GFX v9.4.3 Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/pm/amdgpu_pm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
index 386ccf11e657..a072ffbf556e 100644
--- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
+++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
@@ -2082,7 +2082,9 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
*states = ATTR_STATE_UNSUPPORTED;
}
} else if (DEVICE_ATTR_IS(pp_features)) {
- if (adev->flags & AMD_IS_APU || gc_ver < IP_VERSION(9, 0, 0))
+ if ((adev->flags & AMD_IS_APU &&
+ gc_ver != IP_VERSION(9, 4, 3)) ||
+ gc_ver < IP_VERSION(9, 0, 0))
*states = ATTR_STATE_UNSUPPORTED;
} else if (DEVICE_ATTR_IS(gpu_metrics)) {
if (gc_ver < IP_VERSION(9, 1, 0))