]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd67efb9085c8870c20dc63d7b337cca518d3ff6e
tree3f94b56726218c7f44614953451d7cfaf27a6880
parent9262523950e066d7f90586d30fd940cf2237a0e5
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