• Home
  • Raw
  • Download

Lines Matching full:affinity

54 #include "affinity.h"
187 * The real cpu mask is part of the affinity struct but it has to be in node_affinity_init()
430 hfi1_cdbg(AFFINITY, in _dev_comp_vect_mappings_destroy()
480 hfi1_cdbg(AFFINITY, in _dev_comp_vect_mappings_create()
556 … "Number of kernel receive queues is too large for completion vector affinity to be effective\n"); in _dev_comp_vect_cpu_mask_init()
585 hfi1_cdbg(AFFINITY, in _dev_comp_vect_cpu_mask_init()
586 "[%s] Completion vector affinity CPU set(s) %*pbl", in _dev_comp_vect_cpu_mask_init()
625 * Interrupt affinity.
650 * If this is the first time this NUMA node's affinity is used, in hfi1_dev_affinity_init()
651 * create an entry in the global affinity structure and initialize it. in hfi1_dev_affinity_init()
657 "Unable to allocate global affinity node\n"); in hfi1_dev_affinity_init()
779 * Function updates the irq affinity hint for msix after it has been changed
846 * This is required by affinity notifier. We don't have anything to in hfi1_irq_notifier_release()
860 pr_err("Failed to register sdma irq affinity notifier for irq %d\n", in hfi1_setup_sdma_notifier()
869 pr_err("Failed to cleanup sdma irq affinity notifier for irq %d\n", in hfi1_cleanup_sdma_notifier()
874 * Function sets the irq affinity for msix.
1008 struct hfi1_affinity_node_list *affinity) in find_hw_thread_mask() argument
1012 affinity->num_core_siblings / in find_hw_thread_mask()
1015 cpumask_copy(hw_thread_mask, &affinity->proc.mask); in find_hw_thread_mask()
1016 if (affinity->num_core_siblings > 0) { in find_hw_thread_mask()
1045 struct hfi1_affinity_node_list *affinity = &node_affinity; in hfi1_get_proc_affinity() local
1046 struct cpu_mask_set *set = &affinity->proc; in hfi1_get_proc_affinity()
1049 * check whether process/context affinity has already in hfi1_get_proc_affinity()
1053 hfi1_cdbg(PROC, "PID %u %s affinity set to CPU %*pbl", in hfi1_get_proc_affinity()
1064 hfi1_cdbg(PROC, "PID %u %s affinity set to CPU set(s) %*pbl", in hfi1_get_proc_affinity()
1071 * The process does not have a preset CPU affinity so find one to in hfi1_get_proc_affinity()
1104 mutex_lock(&affinity->lock); in hfi1_get_proc_affinity()
1134 if (affinity->num_core_siblings > 0) { in hfi1_get_proc_affinity()
1135 for (i = 0; i < affinity->num_core_siblings; i++) { in hfi1_get_proc_affinity()
1136 find_hw_thread_mask(i, hw_thread_mask, affinity); in hfi1_get_proc_affinity()
1210 mutex_unlock(&affinity->lock); in hfi1_get_proc_affinity()
1226 struct hfi1_affinity_node_list *affinity = &node_affinity; in hfi1_put_proc_affinity() local
1227 struct cpu_mask_set *set = &affinity->proc; in hfi1_put_proc_affinity()
1232 mutex_lock(&affinity->lock); in hfi1_put_proc_affinity()
1235 mutex_unlock(&affinity->lock); in hfi1_put_proc_affinity()