Home
last modified time | relevance | path

Searched full:affinity (Results 1 – 25 of 640) sorted by relevance

12345678910>>...26

/OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/backend/gpu/
H A Dmali_kbase_js_affinity.h21 * Affinity Manager internal APIs.
46 * kbase_js_choose_affinity - Compute affinity for a given job.
48 * @affinity: Affinity bitmap computed
50 * @katom: Job chain of which affinity is going to be found
56 * Returns true if a valid affinity was chosen, false if
59 bool kbase_js_choose_affinity(u64 * const affinity,
65 * kbase_js_affinity_would_violate - Determine whether a proposed affinity on
66 * job slot @js would cause a violation of affinity restrictions.
70 * @affinity: The affinity mask to test
75 * Return: true if the affinity would violate the restrictions
[all …]
H A Dmali_kbase_js_affinity.c21 * Base kernel affinity manager APIs
76 * what job scheduler, power manager and affinity manager will
90 bool kbase_js_choose_affinity(u64 * const affinity, in kbase_js_choose_affinity() argument
107 *affinity = 0; in kbase_js_choose_affinity()
119 *affinity = 1; in kbase_js_choose_affinity()
121 *affinity = 0; in kbase_js_choose_affinity()
128 *affinity = core_availability_mask & in kbase_js_choose_affinity()
136 *affinity = in kbase_js_choose_affinity()
147 *affinity = in kbase_js_choose_affinity()
155 if (*affinity == 0 && core_group_idx == 1 && in kbase_js_choose_affinity()
[all …]
H A Dmali_kbase_jm_rb.c310 /* The most recently checked affinity. Having this at this scope allows in kbasep_js_job_check_ref_cores()
311 * us to guarantee that we've checked the affinity in this function in kbasep_js_job_check_ref_cores()
327 KBASE_DEBUG_ASSERT(katom->affinity == 0); in kbasep_js_job_check_ref_cores()
329 /* Compute affinity */ in kbasep_js_job_check_ref_cores()
345 katom->affinity = recently_chosen_affinity; in kbasep_js_job_check_ref_cores()
357 KBASE_DEBUG_ASSERT(katom->affinity != 0 || in kbasep_js_job_check_ref_cores()
363 katom->affinity); in kbasep_js_job_check_ref_cores()
365 /* Affinity no longer valid - return to in kbasep_js_job_check_ref_cores()
373 (u32) katom->affinity); in kbasep_js_job_check_ref_cores()
386 (u32) katom->affinity); in kbasep_js_job_check_ref_cores()
[all …]
/OK3568_Linux_fs/kernel/kernel/irq/
H A Dcpuhotplug.c19 /* For !GENERIC_IRQ_EFFECTIVE_AFF_MASK this looks at general affinity mask */
28 * which do not implement effective affinity, but the architecture has in irq_needs_fixup()
29 * enabled the config switch. Use the general affinity mask instead. in irq_needs_fixup()
45 pr_debug("Eff. affinity %*pbl of IRQ %u contains only offline CPUs after offlining CPU %u\n", in irq_needs_fixup()
58 const struct cpumask *affinity; in migrate_one_irq() local
64 * still in the radix tree. Also if the chip has no affinity setter, in migrate_one_irq()
76 * - Affinity mask does not include this CPU. in migrate_one_irq()
100 * mask, so the last change of the affinity does not get lost. If in migrate_one_irq()
102 * any online CPU, use the current affinity mask. in migrate_one_irq()
105 affinity = irq_desc_get_pending_mask(desc); in migrate_one_irq()
[all …]
H A Dirqdesc.c57 if (!zalloc_cpumask_var_node(&desc->irq_common_data.affinity, in alloc_masks()
64 free_cpumask_var(desc->irq_common_data.affinity); in alloc_masks()
74 free_cpumask_var(desc->irq_common_data.affinity); in alloc_masks()
82 const struct cpumask *affinity) in desc_smp_init() argument
84 if (!affinity) in desc_smp_init()
85 affinity = irq_default_affinity; in desc_smp_init()
86 cpumask_copy(desc->irq_common_data.affinity, affinity); in desc_smp_init()
100 desc_smp_init(struct irq_desc *desc, int node, const struct cpumask *affinity) { } in desc_smp_init() argument
104 const struct cpumask *affinity, struct module *owner) in desc_set_defaults() argument
127 desc_smp_init(desc, node, affinity); in desc_set_defaults()
[all …]
H A Dmsi.c24 * @affinity: Optional pointer to an affinity mask array size of @nvec
26 * If @affinity is not NULL then an affinity array[@nvec] is allocated
27 * and the affinity masks and flags from @affinity are copied.
30 const struct irq_affinity_desc *affinity) in alloc_msi_entry() argument
41 if (affinity) { in alloc_msi_entry()
42 desc->affinity = kmemdup(affinity, in alloc_msi_entry()
43 nvec * sizeof(*desc->affinity), GFP_KERNEL); in alloc_msi_entry()
44 if (!desc->affinity) { in alloc_msi_entry()
55 kfree(entry->affinity); in free_msi_entry()
93 * msi_domain_set_affinity - Generic affinity setter function for MSI domains
[all …]
/OK3568_Linux_fs/kernel/lib/
H A Dcpu_rmap.c3 * cpu_rmap.c: CPU affinity reverse-map support
14 * CPU affinity. However, we do not assume that the object affinities
21 * alloc_cpu_rmap - allocate CPU affinity reverse-map
150 * cpu_rmap_update - update CPU rmap following a change of object affinity
152 * @index: Index of object whose affinity changed
153 * @affinity: New CPU affinity of object
156 const struct cpumask *affinity) in cpu_rmap_update() argument
176 /* Set distance to 0 for all CPUs in the new affinity mask. in cpu_rmap_update()
179 for_each_cpu(cpu, affinity) { in cpu_rmap_update()
211 /* Glue between IRQ affinity notifiers and CPU rmaps */
[all …]
/OK3568_Linux_fs/kernel/tools/virtio/ringtest/
H A Drun-on-all.sh19 echo "GUEST AFFINITY $cpu"
20 "$@" --host-affinity $HOST_AFFINITY --guest-affinity $cpu
23 echo "NO GUEST AFFINITY"
24 "$@" --host-affinity $HOST_AFFINITY
25 echo "NO AFFINITY"
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Daffinity.c2 /* Manage affinity to optimize IPIs inside the kernel perf API. */
10 #include "affinity.h"
24 int affinity__setup(struct affinity *a) in affinity__setup()
44 * It is more efficient to change perf's affinity to the target
48 void affinity__set(struct affinity *a, int cpu) in affinity__set()
57 * We ignore errors because affinity is just an optimization. in affinity__set()
65 void affinity__cleanup(struct affinity *a) in affinity__cleanup()
H A Daffinity.h7 struct affinity { struct
13 void affinity__cleanup(struct affinity *a); argument
14 void affinity__set(struct affinity *a, int cpu);
15 int affinity__setup(struct affinity *a);
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/
H A Daffinity.c54 #include "affinity.h"
187 * The real cpu mask is part of the affinity struct but it has to be in node_affinity_init()
428 hfi1_cdbg(AFFINITY, in _dev_comp_vect_mappings_destroy()
478 hfi1_cdbg(AFFINITY, in _dev_comp_vect_mappings_create()
554 … "Number of kernel receive queues is too large for completion vector affinity to be effective\n"); in _dev_comp_vect_cpu_mask_init()
583 hfi1_cdbg(AFFINITY, in _dev_comp_vect_cpu_mask_init()
584 "[%s] Completion vector affinity CPU set(s) %*pbl", in _dev_comp_vect_cpu_mask_init()
623 * Interrupt affinity.
648 * If this is the first time this NUMA node's affinity is used, in hfi1_dev_affinity_init()
649 * create an entry in the global affinity structure and initialize it. in hfi1_dev_affinity_init()
[all …]
H A Daffinity.h78 /* Initialize driver affinity data */
81 * Set IRQ affinity to a CPU. The function will determine the
82 * CPU and set the affinity to it.
87 * Remove the IRQ's CPU affinity. This function also updates
93 * Determine a CPU affinity for a user process, if the process does not
94 * have an affinity set yet.
118 struct mutex lock; /* protects affinity nodes */
/OK3568_Linux_fs/kernel/tools/testing/selftests/rseq/
H A Dbasic_test.c18 cpu_set_t affinity, test_affinity; in test_cpu_pointer() local
21 sched_getaffinity(0, sizeof(affinity), &affinity); in test_cpu_pointer()
24 if (CPU_ISSET(i, &affinity)) { in test_cpu_pointer()
35 sched_setaffinity(0, sizeof(affinity), &affinity); in test_cpu_pointer()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A Dbench.c19 .affinity = false,
125 { "affinity", 'a', NULL, 0, "Set consumer/producer thread affinity"},
126 { "prod-affinity", ARG_PROD_AFFINITY_SET, "CPUSET", 0,
127 "Set of CPUs for producer threads; implies --affinity"},
128 { "cons-affinity", ARG_CONS_AFFINITY_SET, "CPUSET", 0,
129 "Set of CPUs for consumer threads; implies --affinity"},
180 env.affinity = true; in parse_arg()
183 env.affinity = true; in parse_arg()
191 env.affinity = true; in parse_arg()
272 fprintf(stderr, "setting affinity to CPU #%d failed: %d\n", in set_thread_affinity()
[all …]
/OK3568_Linux_fs/kernel/tools/power/cpupower/bench/
H A Dsystem.c67 * sets cpu affinity for the process
69 * @param cpu cpu# to which the affinity should be set
72 * @retval -1 when setting the affinity failed
82 dprintf("set affinity to cpu #%u\n", cpu); in set_cpu_affinity()
86 fprintf(stderr, "warning: unable to set cpu affinity\n"); in set_cpu_affinity()
146 * sets up the cpu affinity and scheduler priority
155 printf("set cpu affinity to cpu #%u\n", config->cpu); in prepare_system()
/OK3568_Linux_fs/kernel/include/linux/
H A Dirq.h59 * it from affinity setting
66 * IRQ_NO_BALANCING - Interrupt cannot be balanced (affinity set)
117 * IRQ_SET_MASK_OK - OK, core updates irq_common_data.affinity
118 * IRQ_SET_MASK_NOCPY - OK, chip did update irq_common_data.affinity
138 * @affinity: IRQ affinity on SMP. If this is an IPI
141 * @effective_affinity: The effective IRQ affinity on SMP as some irq
143 * A subset of @affinity.
145 * @ipi_offset: Offset of first IPI target cpu in @affinity. Optional.
154 cpumask_var_t affinity; member
194 * IRQD_SETAFFINITY_PENDING - Affinity setting is pending
[all …]
H A Dcpu_rmap.h6 * cpu_rmap.c: CPU affinity reverse-map support
16 * struct cpu_rmap - CPU affinity reverse-map
22 * based on affinity masks
40 const struct cpumask *affinity);
53 * alloc_irq_cpu_rmap - allocate CPU affinity reverse-map for IRQs
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/htop/
H A Dhtop_3.1.2.bb20 affinity \
24 PACKAGECONFIG[affinity] = "--enable-affinity,--disable-affinity,,,,hwloc"
26 PACKAGECONFIG[hwloc] = "--enable-hwloc,--disable-hwloc,hwloc,,,affinity"
/OK3568_Linux_fs/kernel/drivers/iommu/
H A Dhyperv-iommu.c46 /* Return error If new irq affinity is out of ioapic_max_cpumask. */ in hyperv_ir_set_affinity()
94 * affinity only needs to change IRTE of IOMMU. But Hyper-V doesn't in hyperv_irq_remapping_alloc()
95 * support interrupt remapping function, setting irq affinity of IO-APIC in hyperv_irq_remapping_alloc()
102 * affinity() set vector and dest_apicid directly into IO-APIC entry. in hyperv_irq_remapping_alloc()
107 * Hypver-V IO APIC irq affinity should be in the scope of in hyperv_irq_remapping_alloc()
111 cpumask_copy(desc->irq_common_data.affinity, &ioapic_max_cpumask); in hyperv_irq_remapping_alloc()
170 * max cpu affinity for IOAPIC irqs. Scan cpu 0-255 and set cpu in hyperv_prepare_irq_remapping()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/backend/gpu/
H A Dmali_kbase_jm_hw.c45 const u64 affinity, const u64 limited_core_mask);
50 u64 affinity; in kbase_job_write_affinity() local
55 /* Tiler-only atom, affinity value can be programed as 0 */ in kbase_job_write_affinity()
56 affinity = 0; in kbase_job_write_affinity()
64 affinity = kbdev->pm.backend.shaders_avail & in kbase_job_write_affinity()
71 affinity &= coherency_info->group[1].core_mask; in kbase_job_write_affinity()
73 affinity &= coherency_info->group[0].core_mask; in kbase_job_write_affinity()
75 affinity &= kbdev->gpu_props.curr_config.shader_present; in kbase_job_write_affinity()
78 affinity = kbdev->pm.backend.shaders_avail & in kbase_job_write_affinity()
83 /* Limiting affinity due to BASE_JD_REQ_LIMITED_CORE_MASK by applying the limited core mask. */ in kbase_job_write_affinity()
[all …]
/OK3568_Linux_fs/kernel/arch/mips/kernel/
H A Dmips-mt-fpaff.c20 * CPU mask used to set process affinity for MT VPEs/TCs with FPUs
30 * FPU affinity with the user's requested processor affinity.
63 * mipsmt_sys_sched_setaffinity - set the cpu affinity of a process
155 * mipsmt_sys_sched_getaffinity - get the cpu affinity of a process
214 printk(KERN_DEBUG "FPU Affinity set after %ld emulations\n", in mt_fp_affinity_init()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/debug/backend/
H A Dmali_kbase_debug_ktrace_codes_jm.h68 * affinity
144 /* info_val == lower 32 bits of affinity */
146 /* info_val == lower 32 bits of affinity */
148 /* info_val == lower 32 bits of affinity */
150 /* info_val == lower 32 bits of rechecked affinity */
152 /* info_val == lower 32 bits of rechecked affinity */
154 /* info_val == lower 32 bits of affinity */
/OK3568_Linux_fs/kernel/arch/arm64/kernel/
H A Dsetup.c107 * smp_build_mpidr_hash - Pre-compute shifts required at each affinity
114 u32 i, affinity, fs[4], bits[4], ls; in smp_build_mpidr_hash() local
118 * not contribute to affinity levels, ie they never toggle. in smp_build_mpidr_hash()
124 * Find and stash the last and first bit set at all affinity levels to in smp_build_mpidr_hash()
128 affinity = MPIDR_AFFINITY_LEVEL(mask, i); in smp_build_mpidr_hash()
132 * to express the affinity level. in smp_build_mpidr_hash()
134 ls = fls(affinity); in smp_build_mpidr_hash()
135 fs[i] = affinity ? ffs(affinity) - 1 : 0; in smp_build_mpidr_hash()
140 * significant bits at each affinity level and by shifting in smp_build_mpidr_hash()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_trace_defs.h101 /* gpu_addr==JS_HEAD_NEXT written, info_val==lower 32 bits of affinity */
173 /* info_val == lower 32 bits of affinity */
175 /* info_val == lower 32 bits of affinity */
177 /* info_val == lower 32 bits of affinity */
179 /* info_val == lower 32 bits of rechecked affinity */
181 /* info_val == lower 32 bits of rechecked affinity */
183 /* info_val == lower 32 bits of affinity */
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_crat.h85 * ComputeUnit Affinity structure and definitions
120 * HSA Memory Affinity structure and definitions
145 * HSA Cache Affinity structure and definitions
174 * HSA TLB Affinity structure and definitions
209 * HSA CCompute/APU Affinity structure and definitions
228 * HSA IO Link Affinity structure and definitions

12345678910>>...26