diff options
| author | YuBiao Wang <[email protected]> | 2023-05-05 06:35:32 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-09 13:34:35 +0000 |
| commit | db5dcd476eb0288cdfa781725582dcf9bd747a6b (patch) | |
| tree | 52c7417511ba36fc0e76c564819e95206b2d8dca | |
| parent | drm/amd/pm: parse pp_handle under appropriate conditions (diff) | |
| download | kernel-db5dcd476eb0288cdfa781725582dcf9bd747a6b.tar.gz kernel-db5dcd476eb0288cdfa781725582dcf9bd747a6b.zip | |
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 <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c index 1311e42ab8e9..d0ad7cb0fa05 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c @@ -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, |
