drm/amd/pm: correct the gpu metrics version
authorEvan Quan <evan.quan@amd.com>
Wed, 10 Mar 2021 07:31:43 +0000 (15:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:36:20 +0000 (23:36 -0400)
commit2d78b8d66904b428b446c0ce7115c57fa06dd16b
treef078b59e47310e0f061fd44d060ae5394193ab68
parenta85ba00538cd4bb0655aaf57fe3ebf8cc21f4fea
drm/amd/pm: correct the gpu metrics version

For V1_0 and V1_1, they come with different size. Misuse may cause
out of memory access.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c