diff options
| author | Le Ma <[email protected]> | 2024-01-25 04:00:34 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-01-29 20:35:13 +0000 |
| commit | c0125b848abecfbc944bebe2cab076f09455b230 (patch) | |
| tree | 7d42952ae2f4247b482f2f9b1ab736664899759e /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | drm/amd/display: Fix potential NULL pointer dereferences in 'dcn10_set_output... (diff) | |
| download | kernel-c0125b848abecfbc944bebe2cab076f09455b230.tar.gz kernel-c0125b848abecfbc944bebe2cab076f09455b230.zip | |
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 <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 475bd59c9ac2..91d5d9435067 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -2255,6 +2255,10 @@ retry_init: if (ret) goto err_pci; + ret = amdgpu_amdkfd_drm_client_create(adev); + if (ret) + goto err_pci; + /* * 1. don't init fbdev on hw without DCE * 2. don't init fbdev if there are no connectors |
