]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/pm: Don't show pp_power_profile_mode for unsupported devices
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 29 Oct 2021 21:09:26 +0000 (16:09 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Nov 2021 16:22:07 +0000 (12:22 -0400)
commitd1d3b4682b102b4820d523621fa9b8004fd6783a
treeeb2b40948022c4324849864e1f63075d8a56d858
parenta9a2b352f56de0899834bd8ea63ffd84ac0a2407
drm/amdgpu/pm: Don't show pp_power_profile_mode for unsupported devices

For ASICs not supporting power profile mode, don't show the attribute.
Verify that the function has been implemented by the subsystem.

Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c