Skip to content

Commit fc8e84a

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amd/pm: Enable pp_feature attribute
on APUs with GFX v9.4.3 Signed-off-by: Lijo Lazar <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 803f318 commit fc8e84a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/amd/pm/amdgpu_pm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,9 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
20822082
*states = ATTR_STATE_UNSUPPORTED;
20832083
}
20842084
} else if (DEVICE_ATTR_IS(pp_features)) {
2085-
if (adev->flags & AMD_IS_APU || gc_ver < IP_VERSION(9, 0, 0))
2085+
if ((adev->flags & AMD_IS_APU &&
2086+
gc_ver != IP_VERSION(9, 4, 3)) ||
2087+
gc_ver < IP_VERSION(9, 0, 0))
20862088
*states = ATTR_STATE_UNSUPPORTED;
20872089
} else if (DEVICE_ATTR_IS(gpu_metrics)) {
20882090
if (gc_ver < IP_VERSION(9, 1, 0))

0 commit comments

Comments
 (0)