OSDN Git Service

drm/amdgpu: set default num_kcq to 2 under sriov
authorYuBiao Wang <YuBiao.Wang@amd.com>
Fri, 5 May 2023 06:35:32 +0000 (14:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:34:35 +0000 (09:34 -0400)
commitdb5dcd476eb0288cdfa781725582dcf9bd747a6b
tree52c7417511ba36fc0e76c564819e95206b2d8dca
parent9d7a348d368ccd940242d4aa68292cf665f6d474
drm/amdgpu: set default num_kcq to 2 under sriov

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 <YuBiao.Wang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c