drm/amd: Fix the return for average power on aldebaran
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 10 Aug 2023 10:31:59 +0000 (05:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2023 22:08:29 +0000 (18:08 -0400)
commit4c64f2e420508aa6fdd5ae95ebf0451f3d97a013
tree9bffc5d8dffb3c77fead6d39cad256e596e66c85
parent05228211e89a882a005d30190cd10fb7282b4b25
drm/amd: Fix the return for average power on aldebaran

Aldebaran can only return average socket power for the first die.
The other dies return 0.  Instead of returning a bad value, return
-EOPNOTSUPP so that the attribute will be hidden.

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/swsmu/smu13/aldebaran_ppt.c