drm/amd/powerplay: add interface to check pptable (v2)
authorHuang Rui <ray.huang@amd.com>
Tue, 4 Dec 2018 10:41:58 +0000 (18:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:54 +0000 (15:03 -0500)
commit46126e6dad1cf3292bbae29c5fe321ca96d110fc
treefe091b76291efa56c1d62f8e5d33345edfb82907
parenta6b35900dca9607cdd687a9886d3a4e6af0e4420
drm/amd/powerplay: add interface to check pptable (v2)

This patch adds interface to check pptable function for smu.
It's to check if the format_revision in vbios is up to pptable header version,
and the structure size is not 0.

v2: add detailed info to describe this function

Signed-off-by: Huang Rui <ray.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h