OSDN Git Service

drm/amdgpu: Only overwrite serial if field is empty
authorKent Russell <kent.russell@amd.com>
Mon, 13 Dec 2021 18:58:40 +0000 (13:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Dec 2021 13:54:43 +0000 (08:54 -0500)
commitde0af8a65ea3c56e85517d23316679eacddb7a45
treee1ba1411bc7a1241875936ae15934fd055e4a396
parent4ad31fa15ba472866d538b3cee05708a9d8e8197
drm/amdgpu: Only overwrite serial if field is empty

On Aldebaran, the serial may be obtained from the FRU. Only overwrite
the serial with the unique_id if the serial is empty. This will support
printing serial numbers for mGPU devices where there are 2 unique_ids
for the 2 GPUs, but only one serial number for the board

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c