drm/amd/pm: add support for new smu metrics table for vangogh
authorXiaojian Du <Xiaojian.Du@amd.com>
Fri, 9 Apr 2021 08:19:43 +0000 (16:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:32:19 +0000 (16:32 -0400)
commit86c8236eecc66df9e3abd087f1759d9a1555c829
tree7ca373441310311f05c91e0eb0b9508a00263bbc
parentf4994be248b62da0411e9e0f300373f2e56efe5e
drm/amd/pm: add support for new smu metrics table for vangogh

This patch is to add support for new smu metrics table for vangogh.
It will support new and legacy smu metrics table in the meanwhile.
New pmfw version is 4.63.36.00, and new smu interface version is #3.

v1: check smu pmfw version to determine to use new or legacy smu metrics
table

v2: check smu interface version to determine to use new or legacy smu
metrics table

v3: revise wrong symbol

Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c