drm/amd/pm: Only primary die supports power data
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 9 Jun 2021 06:38:32 +0000 (14:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Jun 2021 20:03:19 +0000 (16:03 -0400)
commit076f55a45e9e41fcbc377ad064f10f29b26dc298
treeb53f8c686859e091295d30dee70c32e23fca61be
parent488f211dab7d2fbd115b412848075c4c545e3471
drm/amd/pm: Only primary die supports power data

On aldebaran, only primary die fetches valid power data. Show
power/energy values as 0 on secondary die. Also, power limit should not
be set through secondary die.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c