mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
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>
This commit is contained in:
committed by
Alex Deucher
parent
9d7a348d36
commit
db5dcd476e
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user