drm/amdgpu/powerplay:avoid to show invalid DPM table info
authorYuxian Dai <Yuxian.Dai@amd.com>
Wed, 15 Apr 2020 11:03:52 +0000 (19:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:49 +0000 (18:11 -0400)
commit5f6a92e442834815736ee8815d99e2c9c658a51b
tree481e215d4b4ae2df6d626d35ea3fcd5d2c5b7a2f
parente1046a1f703c660ddbf8c5ea36e84d7584fa99eb
drm/amdgpu/powerplay:avoid to show invalid DPM table info

for different ASIC support different the number of DPM levels,
we should avoid to show the invalid level value.
v1 -> v2:
follow the suggestion,clarifiy the description for this
change

Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Yuxian Dai <Yuxian.Dai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/renoir_ppt.c