]> Git Repo - linux.git/commitdiff
drm/amdgpu: set default num_kcq to 2 under sriov
authorYuBiao Wang <[email protected]>
Fri, 5 May 2023 06:35:32 +0000 (14:35 +0800)
committerAlex Deucher <[email protected]>
Fri, 9 Jun 2023 13:34:35 +0000 (09:34 -0400)
The number of kernel queues has impact on the latency under sriov
usecase. So to reduce the latency we set the default num_kcq = 2 under
sriov if not set manually.

Signed-off-by: YuBiao Wang <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c

index 1311e42ab8e9990e996e292a994a96671fe8c188..d0ad7cb0fa05d31e44d359dcdfa640f814a9f3b3 100644 (file)
@@ -68,6 +68,9 @@ void amdgpu_virt_init_setting(struct amdgpu_device *adev)
        /* enable mcbp for sriov */
        amdgpu_mcbp = 1;
 
+       /* Reduce kcq number to 2 to reduce latency */
+       if (amdgpu_num_kcq == -1)
+               amdgpu_num_kcq = 2;
 }
 
 void amdgpu_virt_kiq_reg_write_reg_wait(struct amdgpu_device *adev,
This page took 0.059415 seconds and 4 git commands to generate.