Commit ca400b2a1a6c768416725e5f873829e23300d3eb
1 parent
8b58f26111
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
drm/amdkfd: max num of queues can't be 0
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/gpu/drm/amd/amdkfd/kfd_module.c
... | ... | @@ -95,10 +95,10 @@ |
95 | 95 | } |
96 | 96 | |
97 | 97 | /* Verify module parameters */ |
98 | - if ((max_num_of_queues_per_device < 0) || | |
98 | + if ((max_num_of_queues_per_device < 1) || | |
99 | 99 | (max_num_of_queues_per_device > |
100 | 100 | KFD_MAX_NUM_OF_QUEUES_PER_DEVICE)) { |
101 | - pr_err("kfd: max_num_of_queues_per_device must be between 0 to KFD_MAX_NUM_OF_QUEUES_PER_DEVICE\n"); | |
101 | + pr_err("kfd: max_num_of_queues_per_device must be between 1 to KFD_MAX_NUM_OF_QUEUES_PER_DEVICE\n"); | |
102 | 102 | return -1; |
103 | 103 | } |
104 | 104 |