aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorKent Russell <kent.russell@amd.com>2019-05-15 08:35:29 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-05-24 12:25:32 -0500
commitfb2dbfd2427e82ae63742f667cda19f1af6b77c2 (patch)
tree21fdc009cce43601cf7a582d0dbb82aa4a68b8d5 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentdrm/amdkfd: Add domain number into gpu_id (diff)
downloadlinux-dev-fb2dbfd2427e82ae63742f667cda19f1af6b77c2.tar.xz
linux-dev-fb2dbfd2427e82ae63742f667cda19f1af6b77c2.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 38e782dee478..58f8f132904d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -957,6 +957,8 @@ struct amdgpu_device {
long sdma_timeout;
long video_timeout;
long compute_timeout;
+
+ uint64_t unique_id;
};
static inline struct amdgpu_device *amdgpu_ttm_adev(struct ttm_bo_device *bdev)