Commit 51450501 authored by Likun Gao's avatar Likun Gao Committed by Alex Deucher

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: default avatarLikun Gao <Likun.Gao@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fc17cd3f
...@@ -470,7 +470,7 @@ int amdgpu_fence_driver_init_ring(struct amdgpu_ring *ring, ...@@ -470,7 +470,7 @@ int amdgpu_fence_driver_init_ring(struct amdgpu_ring *ring,
return -ENOMEM; return -ENOMEM;
/* No need to setup the GPU scheduler for KIQ and MES 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) { 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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment