drm/amdgpu: kiq takes charge of all queues
authorJack Xiao <Jack.Xiao@amd.com>
Tue, 16 Jun 2020 03:50:12 +0000 (11:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:43:52 +0000 (10:43 -0400)
To make kgq/kcq and mes queue co-exist, kiq needs take charge
of all queues.

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_gfx.c

index 28a736c..40df1e0 100644 (file)
@@ -535,6 +535,9 @@ int amdgpu_gfx_enable_kcq(struct amdgpu_device *adev)
                return r;
        }
 
+       if (adev->enable_mes)
+               queue_mask = ~0ULL;
+
        kiq->pmf->kiq_set_resources(kiq_ring, queue_mask);
        for (i = 0; i < adev->gfx.num_compute_rings; i++)
                kiq->pmf->kiq_map_queues(kiq_ring, &adev->gfx.compute_ring[i]);