]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit62d73fbcfb367104db57253a186f410020289517
tree5af88c81f02a5cee2aea2d96816610ec42446b5f
parente92b83e50839eced31aede94a39901581b71bada
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