From: Jack Xiao Date: Mon, 21 Oct 2019 05:49:38 +0000 (+0800) Subject: drm/amdgpu: no need to set up GPU scheduler for mes ring X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=03195e8063e26f556c6adbe6a9413b36f4b791eb;p=linux.git 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 Acked-by: Alex Deucher Reviewed-by: Hawking Zhang Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c index 3414e119f0cbf..8712a2e1b869f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c @@ -469,8 +469,9 @@ int amdgpu_fence_driver_init_ring(struct amdgpu_ring *ring, if (!ring->fence_drv.fences) return -ENOMEM; - /* No need to setup the GPU scheduler for KIQ ring */ - if (ring->funcs->type != AMDGPU_RING_TYPE_KIQ) { + /* No need to setup the GPU scheduler for KIQ and MES ring */ + if (ring->funcs->type != AMDGPU_RING_TYPE_KIQ || + ring->funcs->type != AMDGPU_RING_TYPE_MES) { switch (ring->funcs->type) { case AMDGPU_RING_TYPE_GFX: timeout = adev->gfx_timeout;