drm/amd/powerplay/smu7: fix checks in smu7_get_evv_voltages (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Nov 2016 22:52:42 +0000 (17:52 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 10 Nov 2016 16:11:40 +0000 (11:11 -0500)
commit0f12f73c5175d39445fa10cdca4481f80efdef49
tree3f94b56726218c7f44614953451d7cfaf27a6880
parent90ebf11857c2743fab1b2b64140aff24e256e758
drm/amd/powerplay/smu7: fix checks in smu7_get_evv_voltages (v2)

Only check if the tables exist in relevant configs.  This
fixes a failure on V0 tables.

v2: fix version check as suggested by Rex

bugs:
https://bugzilla.kernel.org/show_bug.cgi?id=185681
https://bugs.freedesktop.org/show_bug.cgi?id=98357

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