[PATCH] drm/amdgpu/pm: Don't show pp_power_profile_mode for YC and later APUs
Mario Limonciello
mario.limonciello at amd.com
Fri Oct 29 21:17:17 UTC 2021
This command corresponding to this attribute was deprecated in the PMFW
for YC so don't show a non-functional attribute.
Since future APUs may be brought up using IP version checking also
disable it for future APU's. If any do support the command then they
can be treated as exceptions.
Suggested-by: Alex Deucher <alexander.deucher at amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello at amd.com>
---
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
index 49fe4155c374..c7326f0ec517 100644
--- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
+++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
@@ -2094,6 +2094,9 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
} else if (DEVICE_ATTR_IS(pp_dpm_dclk)) {
if (!(asic_type == CHIP_VANGOGH || asic_type == CHIP_SIENNA_CICHLID))
*states = ATTR_STATE_UNSUPPORTED;
+ } else if (DEVICE_ATTR_IS(pp_power_profile_mode)) {
+ if ((adev->flags & AMD_IS_APU) && asic_type >= CHIP_YELLOW_CARP)
+ *states = ATTR_STATE_UNSUPPORTED;
}
switch (asic_type) {
--
2.25.1
More information about the amd-gfx
mailing list