projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
803f318
)
drm/amd/pm: Enable pp_feature attribute
author
Lijo Lazar
<lijo.lazar@amd.com>
Mon, 26 Jun 2023 12:07:47 +0000
(17:37 +0530)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 30 Jun 2023 17:12:15 +0000
(13:12 -0400)
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>
drivers/gpu/drm/amd/pm/amdgpu_pm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
index 386ccf11e65750bd157df9291dda4f126e6d3941..a072ffbf556e8eb24f81771f75efa56a95399c8f 100644
(file)
--- 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))