Removed dev_error message for incorrect VMIDs
Subsystems (3)
PATCH 1/1 Removed dev_error message for incorrect VMIDs
--- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -9
@@ -485,15 +485,7 @@ bool kgd2kfd_device_init(struct kfd_dev *kfd,/* Verify module parameters regarding mapped process number*/ kfd->max_proc_per_quantum = kfd->vm_info.vmid_num_kfd;if (hws_max_conc_proc !=-1 ) { -if ((hws_max_conc_proc >0 ) - && (hws_max_conc_proc < kfd->vm_info.vmid_num_kfd)) { - kfd->max_proc_per_quantum = hws_max_conc_proc; - }else { -dev_err (kfd_device, -"hws_max_conc_proc %d must be between 0 and %d, use %d instead\n" , - hws_max_conc_proc, kfd->vm_info.vmid_num_kfd, - kfd->vm_info.vmid_num_kfd); - } + kfd->max_proc_per_quantum =min (hws_max_conc_proc, kfd->vm_info.vmid_num_kfd); }/* calculate max size of mqds needed for queues */
Signature · 1 line
2.25.1
Felix Kuehling
maintainerPlease squash this with your other patch. One more comment inline
Am 2022-03-17 um 16:24 schrieb Tushar Patel:
Quoted 13 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)drivers/gpu/drm/amd/amdkfd/kfd_device.c +0
-1@@ -485,15 +485,7 @@ bool kgd2kfd_device_init(struct kfd_dev *kfd,/* Verify module parameters regarding mapped process number*/ kfd->max_proc_per_quantum = kfd->vm_info.vmid_num_kfd;if (hws_max_conc_proc !=-1 ) { - if ((hws_max_conc_proc > 0)
drivers/gpu/drm/amd/amdkfd/kfd_device.c bool kgd2kfd_device_init(struct kfd_dev *kfd, · line 489
Quoted 10 lines
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1
-8- && (hws_max_conc_proc < kfd->vm_info.vmid_num_kfd)) { - kfd->max_proc_per_quantum = hws_max_conc_proc; - }else { -dev_err (kfd_device, -"hws_max_conc_proc %d must be between 0 and %d, use %d instead\n" , - hws_max_conc_proc, kfd->vm_info.vmid_num_kfd, - kfd->vm_info.vmid_num_kfd); - } + kfd->max_proc_per_quantum =min (hws_max_conc_proc, kfd->vm_info.vmid_num_kfd); }
You can remove the braces {}.
Regards,
Felix
Quoted 2 lines
drivers/gpu/drm/amd/amdkfd/kfd_device.c +0
-0/* calculate max size of mqds needed for queues */