drm/amdgpu: Move scheduler init to after XGMI is ready
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Mon, 6 Dec 2021 19:59:35 +0000 (14:59 -0500)
committerAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 9 Feb 2022 17:15:04 +0000 (12:15 -0500)
commit5fd8518d187ed03403a4d4f7f56f52c00b11c148
tree52eb7f73ebb898c8be2ea5f86eb7c10a968a0311
parenta4c63cafa58b4bd9e15511bab77a4752b93d3aa0
drm/amdgpu: Move scheduler init to after XGMI is ready

Before we initialize schedulers we must know which reset
domain are we in - for single device there iis a single
domain per device and so single wq per device. For XGMI
the reset domain spans the entire XGMI hive and so the
reset wq is per hive.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://www.spinics.net/lists/amd-gfx/msg74112.html
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h