drm/amdgpu: skip some checking for mes queue ib submission
authorJack Xiao <Jack.Xiao@amd.com>
Fri, 20 Mar 2020 06:59:54 +0000 (14:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:43:52 +0000 (10:43 -0400)
Skip some checking for mes queue ib submission.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c

index d583766..d835445 100644 (file)
@@ -155,12 +155,12 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
                fence_ctx = 0;
        }
 
-       if (!ring->sched.ready) {
+       if (!ring->sched.ready && !ring->is_mes_queue) {
                dev_err(adev->dev, "couldn't schedule ib on ring <%s>\n", ring->name);
                return -EINVAL;
        }
 
-       if (vm && !job->vmid) {
+       if (vm && !job->vmid && !ring->is_mes_queue) {
                dev_err(adev->dev, "VM IB without ID\n");
                return -EINVAL;
        }