drm/amd/pp: Fix overflow when setup decf/pix/disp dpm table.
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 18 Oct 2017 09:43:43 +0000 (17:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:27:20 +0000 (15:27 -0400)
commit658b93913e7a8a8d418b6d1208e88ddacc4d245d
tree3db890cc798da1fb44422614f69f38a26a401db5
parent1ed05ff4797a2935f04fbb4f465cd70a8a017709
drm/amd/pp: Fix overflow when setup decf/pix/disp dpm table.

Clear the count in the single table setup function to
avoid missing any tables.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c