drm/amdgpu: Fix KFD initialization for multi-GPU systems
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 28 Jul 2017 20:54:54 +0000 (16:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2017 18:46:02 +0000 (14:46 -0400)
commit5c33f214db87b3095062a2c3e6e9f106c5ba2932
tree0ff374c8ba68a5fcf46b6010f41805da1cd57743
parentb59eb8984f3080c01b2022772005874446d29646
drm/amdgpu: Fix KFD initialization for multi-GPU systems

kfd2kgd is device-specific, so it should not be a global variable.
Merge amdgpu_amdkfd_load_interface and amdgpu_amdkfd_device_probe
so that it's only needed as a local variable in one function.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c