aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2018-09-27 13:26:58 +0800
committerAlex Deucher <alexander.deucher@amd.com>2018-10-09 16:59:33 -0500
commit62d73fbcfb367104db57253a186f410020289517 (patch)
tree5af88c81f02a5cee2aea2d96816610ec42446b5f /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentdrm/amdgpu/vega20: make power profile output more consistent (diff)
downloadlinux-dev-62d73fbcfb367104db57253a186f410020289517.tar.xz
linux-dev-62d73fbcfb367104db57253a186f410020289517.zip
drm/amdgpu: added AMD GPU instance counting V2
Count all GPU instances from AMD(including iGPUs and dGPUs) in the system. V2: drop unnecessary initialization for other gpu_info members except mutex Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 723f0f7754bd..28781414d71c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -127,6 +127,9 @@ int amdgpu_compute_multipipe = -1;
int amdgpu_gpu_recovery = -1; /* auto */
int amdgpu_emu_mode = 0;
uint amdgpu_smu_memory_pool_size = 0;
+struct amdgpu_mgpu_info mgpu_info = {
+ .mutex = __MUTEX_INITIALIZER(mgpu_info.mutex),
+};
/**
* DOC: vramlimit (int)