drm/amdgpu: no need to set up GPU scheduler for mes ring
As mes ring directly submits to hardwared, it's no need to set up GPU scheduler for mes ring. Signed-off-by: Jack Xiao <Jack.Xiao@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
93fd978b2b
commit
03195e8063
|
@ -469,8 +469,9 @@ int amdgpu_fence_driver_init_ring(struct amdgpu_ring *ring,
|
||||||
if (!ring->fence_drv.fences)
|
if (!ring->fence_drv.fences)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
/* No need to setup the GPU scheduler for KIQ ring */
|
/* No need to setup the GPU scheduler for KIQ and MES ring */
|
||||||
if (ring->funcs->type != AMDGPU_RING_TYPE_KIQ) {
|
if (ring->funcs->type != AMDGPU_RING_TYPE_KIQ ||
|
||||||
|
ring->funcs->type != AMDGPU_RING_TYPE_MES) {
|
||||||
switch (ring->funcs->type) {
|
switch (ring->funcs->type) {
|
||||||
case AMDGPU_RING_TYPE_GFX:
|
case AMDGPU_RING_TYPE_GFX:
|
||||||
timeout = adev->gfx_timeout;
|
timeout = adev->gfx_timeout;
|
||||||
|
|
Loading…
Reference in New Issue