drm/amdgpu: Fix unique_id references for Sienna Cichlid
authorKent Russell <kent.russell@amd.com>
Wed, 30 Mar 2022 13:27:41 +0000 (09:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Apr 2022 03:05:54 +0000 (23:05 -0400)
commit5e9c445172fde2ee761af91ad302e41041de6be8
tree1b01132c2d86a3aa801ffdd9774b4560389aa8fa
parent9696679bf7ac40a8fb6a488a75bd66d4414cd3c3
drm/amdgpu: Fix unique_id references for Sienna Cichlid

Since unique_id is only supported in PMFW 0x3A5300 and higher, we will
only be able to use it inside Smu_Metrics_V3_t, which requires PMFW
0x3A4900 and higher. Remove the unique_id/serial_number references from
the v1 and v2 tables to avoid any confusion, and return 0 if metrics_v1
or metrics_v2 are used to try to get the unique_id/serial_number.

Signed-off-by: Kent Russell <kent.russell@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/inc/pmfw_if/smu11_driver_if_sienna_cichlid.h
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c