drm/amdgpu: Fill adev->unique_id with data from PF2VF msg
authorJiawei Gu <Jiawei.Gu@amd.com>
Thu, 13 May 2021 06:17:58 +0000 (14:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:33:58 +0000 (22:33 -0400)
commit5228cd65742abd2221d7bdb622544ac47e41d87c
tree6080f1ce8d2a47df9ca94b3772e051c5fd290d59
parentbf546940d5aa15852f58d59158965737505edc03
drm/amdgpu: Fill adev->unique_id with data from PF2VF msg

Initialize unique_id from PF2VF under virtualization.

V2: skip smu_get_unique_id() under virtualization

Signed-off-by: Jiawei Gu <Jiawei.Gu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c