]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Add Unique Identifier sysfs file unique_id v2
authorKent Russell <kent.russell@amd.com>
Wed, 15 May 2019 12:35:29 +0000 (08:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:25:32 +0000 (12:25 -0500)
commitfbc9805144ac75a4e83324d0ea055d198004e5ca
tree21fdc009cce43601cf7a582d0dbb82aa4a68b8d5
parentf152c5729eee4d95ead8e7a6a96df6400932c4b9
drm/amdgpu: Add Unique Identifier sysfs file unique_id v2

Add a file that provides a Unique ID for the GPU.
This will persist across machines and is guaranteed to be unique.
This is only available for GFX9 and newer, so older ASICs will not
have this file in the sysfs pool

v2: Store it in adev for ASICs that don't have a hwmgr

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c