]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: initialise kfd inside amdgpu_device_init
authorpding <Pixel.Ding@amd.com>
Mon, 6 Nov 2017 02:21:26 +0000 (10:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Dec 2017 21:41:44 +0000 (16:41 -0500)
commit1884734a03904d23137a075c9b64cd9871af1914
treea9b04ee783df1bf0563c515a4869c56e3b799e06
parent40575732b6a2ad6430ad8056dabe4cdc01224534
drm/amdkfd: initialise kfd inside amdgpu_device_init

Also finalize kfd inside amdgpu_device_fini. kfd device_init needs
SRIOV exclusive accessing. Try to gather exclusive accessing to
reduce time consuming.

Signed-off-by: pding <Pixel.Ding@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c