drm/amdgpu: move the drm client creation behind drm device registration
authorLe Ma <le.ma@amd.com>
Thu, 25 Jan 2024 04:00:34 +0000 (12:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jan 2024 20:33:52 +0000 (15:33 -0500)
commitdb2aad036e77100e04a96c67f65ae7d49fb538fb
tree5ff5259223a4ea32e4624d40bdac7c4f3c933afd
parentc92c108403b09f75f3393588c2326ecad49ee2e2
drm/amdgpu: move the drm client creation behind drm device registration

This patch is to eliminate interrupt warning below:

  "[drm] Fence fallback timer expired on ring sdma0.0".

An early vm pt clearing job is sent to SDMA ahead of interrupt enabled.
And re-locating the drm client creation following after drm_dev_register
looks like a more proper flow.

v2: wrap the drm client creation

Fixes: 1819200166ce ("drm/amdkfd: Export DMABufs from KFD using GEM handles")
Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@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_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c