drm/amdgpu: use more entries for the first paging queue
authorChristian König <christian.koenig@amd.com>
Wed, 6 Mar 2019 15:10:45 +0000 (16:10 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Mar 2019 04:39:47 +0000 (23:39 -0500)
To aid recoverable page faults.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c

index 335a0edf114b6d313091df85ed150782238c0a64..8f5026c123ef34b7db1f9a6d060d39394ea13302 100644 (file)
@@ -248,6 +248,8 @@ int amdgpu_ring_init(struct amdgpu_device *adev, struct amdgpu_ring *ring,
         */
        if (ring->funcs->type == AMDGPU_RING_TYPE_KIQ)
                sched_hw_submission = max(sched_hw_submission, 256);
+       else if (ring == &adev->sdma.instance[0].page)
+               sched_hw_submission = 256;
 
        if (ring->adev == NULL) {
                if (adev->num_rings >= AMDGPU_MAX_RINGS)