drm/amd: Hide unsupported power attributes
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 10 Aug 2023 10:32:02 +0000 (05:32 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2023 22:08:30 +0000 (18:08 -0400)
commit15419813f2ef8b810bf2e11f5b2269acf776cb44
treefac170b86051acb03bf6e01efa38fe092a2e4453
parent9366c2e87d08b88332a363adc537962ba3840fd9
drm/amd: Hide unsupported power attributes

Some ASICS only offer one type of power attribute, so in the visible
callback check whether the attributes are supported and hide if not
supported.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c