]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: added AMD GPU instance counting V2
authorEvan Quan <evan.quan@amd.com>
Thu, 27 Sep 2018 05:26:58 +0000 (13:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Oct 2018 21:59:33 +0000 (16:59 -0500)
commitcc970aac30e1f8f4b65f7d777ecce53def780d11
tree5af88c81f02a5cee2aea2d96816610ec42446b5f
parente674f9269f77d47b224813ceb633ff15431f6ffe
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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c