Skip to content

Commit 9142c41

Browse files
committed
drm/amdgpu: prevent spurious warning
The default auto setting for kcq should not generate a warning. Fixes: a300de4 ("drm/amdgpu: introduce a new parameter to configure how many KCQ we want(v5)") Reviewed-by: Kent Russell <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 305a81b commit 9142c41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,9 @@ static int amdgpu_device_check_arguments(struct amdgpu_device *adev)
13701370

13711371
amdgpu_gmc_tmz_set(adev);
13721372

1373-
if (amdgpu_num_kcq > 8 || amdgpu_num_kcq < 0) {
1373+
if (amdgpu_num_kcq == -1) {
1374+
amdgpu_num_kcq = 8;
1375+
} else if (amdgpu_num_kcq > 8 || amdgpu_num_kcq < 0) {
13741376
amdgpu_num_kcq = 8;
13751377
dev_warn(adev->dev, "set kernel compute queue number to 8 due to invalid parameter provided by user\n");
13761378
}

0 commit comments

Comments
 (0)