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>
Mon, 29 Jan 2024 20:35:13 +0000 (15:35 -0500)
commitc0125b848abecfbc944bebe2cab076f09455b230
tree7d42952ae2f4247b482f2f9b1ab736664899759e
parent9ccfe80d022df7c595f1925afb31de2232900656
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