From: Likun Gao Date: Wed, 15 Apr 2020 03:33:15 +0000 (+0800) Subject: drm/amdgpu: skip GPU scheduler setup for KIQ and MES ring X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=514505014cb84ed463a25d9e6c519d34a683c284;p=linux.git drm/amdgpu: skip GPU scheduler setup for KIQ and MES ring Fix the coding error to skip GPU scheduler setup for KIQ and MES ring. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang 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 8712a2e1b869f..0ce82686c983e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c @@ -470,7 +470,7 @@ int amdgpu_fence_driver_init_ring(struct amdgpu_ring *ring, return -ENOMEM; /* 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) { case AMDGPU_RING_TYPE_GFX: