drm/amd/powerplay: init table_count for smu tables on asic level
authorHuang Rui <ray.huang@amd.com>
Fri, 29 Mar 2019 10:07:23 +0000 (18:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:26 +0000 (18:59 -0500)
commitcdb0c632e4d0a6e882e585f458cb3448799d8ed7
treeb8aeab8d340dc3c0d3ac988d7bde2ae1ba7b1144
parent2436911bdb2c58f387af59e4e9dcd55c8f667868
drm/amd/powerplay: init table_count for smu tables on asic level

TABLE_COUNT should be inited in asic level. Because the value may be different
on each asic even on the same ip.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c
drivers/gpu/drm/amd/powerplay/smu_v11_0.c
drivers/gpu/drm/amd/powerplay/vega20_ppt.c