drm/amdgpu: Clean up KFD init and fini
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 31 Aug 2018 20:54:12 +0000 (16:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Sep 2018 03:44:32 +0000 (22:44 -0500)
commit03a1c08d003bd9354f522d45a6e3dcd529f409c2
tree2950a3312adfd18e2c68d808c3f1c39b8bdb05a0
parentafd0384c2af286bcf72ff378e56d6d446d30b52e
drm/amdgpu: Clean up KFD init and fini

Only initialize KFD once by moving amdgpu_amdkfd_init from
amdgpu_pci_probe to amdgpu_init. This fixes kernel oopses and hangs
when booting multi-GPU systems.

Also removed some vestiges of KFD being its own module.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c