aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2022-02-18 17:12:11 -0500
committerAlex Deucher <alexander.deucher@amd.com>2022-02-23 14:02:50 -0500
commitf113cc32e35b5503b268f0bd891fa2b7d6d12137 (patch)
treefff14754c04efe62923bef4f1231995990470774 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentb887d5f9b9232b556fa324e77edb92039e626f66 (diff)
downloadlinux-f113cc32e35b5503b268f0bd891fa2b7d6d12137.tar.gz
drm/amdgpu: add a benchmark mutex
To avoid multiple runs in parallel to avoid mixing results. Reviewed-by: Christian König <christian.koenig@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 66d556fc17ef..c736c30e0a0a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1100,6 +1100,8 @@ struct amdgpu_device {
struct list_head ras_list;
struct ip_discovery_top *ip_top;
+
+ struct mutex benchmark_mutex;
};
static inline struct amdgpu_device *drm_to_adev(struct drm_device *ddev)