Lines Matching +full:3 +full:rd
239 pr_info("rd %*pbl: Checking EAS, CPUs do not have asymmetric capacities\n", in sched_is_eas_possible()
248 pr_info("rd %*pbl: Checking EAS, SMT is not supported\n", in sched_is_eas_possible()
256 pr_info("rd %*pbl: Checking EAS: frequency-invariant load tracking not yet supported", in sched_is_eas_possible()
267 pr_info("rd %*pbl: Checking EAS, cpufreq policy not set for CPU: %d", in sched_is_eas_possible()
276 pr_info("rd %*pbl: Checking EAS, schedutil is mandatory\n", in sched_is_eas_possible()
429 * 3. no SMT is detected.
430 * 4. schedutil is driving the frequency of all CPUs of the rd;
438 struct root_domain *rd = cpu_rq(cpu)->rd; in build_perf_domains() local
462 tmp = rd->pd; in build_perf_domains()
463 rcu_assign_pointer(rd->pd, pd); in build_perf_domains()
471 tmp = rd->pd; in build_perf_domains()
472 rcu_assign_pointer(rd->pd, NULL); in build_perf_domains()
484 struct root_domain *rd = container_of(rcu, struct root_domain, rcu); in free_rootdomain() local
486 cpupri_cleanup(&rd->cpupri); in free_rootdomain()
487 cpudl_cleanup(&rd->cpudl); in free_rootdomain()
488 free_cpumask_var(rd->dlo_mask); in free_rootdomain()
489 free_cpumask_var(rd->rto_mask); in free_rootdomain()
490 free_cpumask_var(rd->online); in free_rootdomain()
491 free_cpumask_var(rd->span); in free_rootdomain()
492 free_pd(rd->pd); in free_rootdomain()
493 kfree(rd); in free_rootdomain()
496 void rq_attach_root(struct rq *rq, struct root_domain *rd) in rq_attach_root() argument
503 if (rq->rd) { in rq_attach_root()
504 old_rd = rq->rd; in rq_attach_root()
520 atomic_inc(&rd->refcount); in rq_attach_root()
521 rq->rd = rd; in rq_attach_root()
523 cpumask_set_cpu(rq->cpu, rd->span); in rq_attach_root()
529 * move the fair server bw to the rd if it already started. in rq_attach_root()
541 void sched_get_rd(struct root_domain *rd) in sched_get_rd() argument
543 atomic_inc(&rd->refcount); in sched_get_rd()
546 void sched_put_rd(struct root_domain *rd) in sched_put_rd() argument
548 if (!atomic_dec_and_test(&rd->refcount)) in sched_put_rd()
551 call_rcu(&rd->rcu, free_rootdomain); in sched_put_rd()
554 static int init_rootdomain(struct root_domain *rd) in init_rootdomain() argument
556 if (!zalloc_cpumask_var(&rd->span, GFP_KERNEL)) in init_rootdomain()
558 if (!zalloc_cpumask_var(&rd->online, GFP_KERNEL)) in init_rootdomain()
560 if (!zalloc_cpumask_var(&rd->dlo_mask, GFP_KERNEL)) in init_rootdomain()
562 if (!zalloc_cpumask_var(&rd->rto_mask, GFP_KERNEL)) in init_rootdomain()
566 rd->rto_cpu = -1; in init_rootdomain()
567 raw_spin_lock_init(&rd->rto_lock); in init_rootdomain()
568 rd->rto_push_work = IRQ_WORK_INIT_HARD(rto_push_irq_work_func); in init_rootdomain()
571 rd->visit_cookie = 0; in init_rootdomain()
572 init_dl_bw(&rd->dl_bw); in init_rootdomain()
573 if (cpudl_init(&rd->cpudl) != 0) in init_rootdomain()
576 if (cpupri_init(&rd->cpupri) != 0) in init_rootdomain()
581 cpudl_cleanup(&rd->cpudl); in init_rootdomain()
583 free_cpumask_var(rd->rto_mask); in init_rootdomain()
585 free_cpumask_var(rd->dlo_mask); in init_rootdomain()
587 free_cpumask_var(rd->online); in init_rootdomain()
589 free_cpumask_var(rd->span); in init_rootdomain()
609 struct root_domain *rd; in alloc_rootdomain() local
611 rd = kzalloc(sizeof(*rd), GFP_KERNEL); in alloc_rootdomain()
612 if (!rd) in alloc_rootdomain()
615 if (init_rootdomain(rd) != 0) { in alloc_rootdomain()
616 kfree(rd); in alloc_rootdomain()
620 return rd; in alloc_rootdomain()
740 cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu) in cpu_attach_domain() argument
793 rq_attach_root(rq, rd); in cpu_attach_domain()
804 struct root_domain *rd; member
834 * node 0 1 2 3
838 * 3: 20 30 20 10
846 * 3 ----- 2
852 * For the above NUMA topology that gives 3 levels:
854 * NUMA-2 0-3 0-3 0-3 0-3
855 * groups: {0-1,3},{1-3} {0-2},{0,2-3} {1-3},{0-1,3} {0,2-3},{0-2}
857 * NUMA-1 0-1,3 0-2 1-3 0,2-3
858 * groups: {0},{1},{3} {0},{1},{2} {1},{2},{3} {0},{2},{3}
860 * NUMA-0 0 1 2 3
869 * domain. For instance Node-0 NUMA-2 would only get groups: 0-1,3 and 1-3.
874 * gets us the first 0-1,3
875 * - the only uncovered node is 2, who's child domain is 1-3.
880 * end up at those groups (they would end up in group: 0-1,3).
895 * node 0 1 2 3
899 * 3: 30 20 20 10
907 * 2 ----- 3
909 * This topology is asymmetric, nodes 1,2 are fully connected, but nodes 0,3
915 * NUMA-2 0-3 0-3
916 * groups: {0-2},{1-3} {1-3},{0-2}
918 * NUMA-1 0-2 0-3 0-3 1-3
920 * NUMA-0 0 1 2 3
1083 * But for machines whose NUMA diameter are 3 or above, we move in build_overlap_sched_groups()
1088 * Smallest diameter=3 topology is: in build_overlap_sched_groups()
1090 * node 0 1 2 3 in build_overlap_sched_groups()
1094 * 3: 40 30 20 10 in build_overlap_sched_groups()
1096 * 0 --- 1 --- 2 --- 3 in build_overlap_sched_groups()
1098 * NUMA-3 0-3 N/A N/A 0-3 in build_overlap_sched_groups()
1099 * groups: {0-2},{1-3} {1-3},{0-2} in build_overlap_sched_groups()
1101 * NUMA-2 0-2 0-3 0-3 1-3 in build_overlap_sched_groups()
1102 * groups: {0-1},{1-3} {0-2},{2-3} {1-3},{0-1} {2-3},{0-2} in build_overlap_sched_groups()
1104 * NUMA-1 0-1 0-2 1-3 2-3 in build_overlap_sched_groups()
1105 * groups: {0},{1} {1},{2},{0} {2},{3},{1} {3},{2} in build_overlap_sched_groups()
1107 * NUMA-0 0 1 2 3 in build_overlap_sched_groups()
1109 * The NUMA-2 groups for nodes 0 and 3 are obviously buggered, as the in build_overlap_sched_groups()
1155 * The tree consists of 3 primary data structures:
1171 * CPU 0 1 2 3 4 5 6 7
1180 * MC 0-3 0-3 0-3 0-3 4-7 4-7 4-7 4-7
1181 * SMT 0-1 0-1 2-3 2-3 4-5 4-5 6-7 6-7
1183 * CPU 0 1 2 3 4 5 6 7
1507 if (!atomic_read(&d->rd->refcount)) in __free_domain_allocs()
1508 free_rootdomain(&d->rd->rcu); in __free_domain_allocs()
1531 d->rd = alloc_rootdomain(); in __visit_domain_allocation_hell()
1532 if (!d->rd) in __visit_domain_allocation_hell()
2492 imb = sd->span_weight >> 3; in build_sched_domains()
2529 cpu_attach_domain(sd, d.rd, i); in build_sched_domains()
2724 struct root_domain *rd; in partition_sched_domains_locked() local
2734 rd = cpu_rq(cpumask_any(doms_cur[i]))->rd; in partition_sched_domains_locked()
2735 dl_clear_root_domain(rd); in partition_sched_domains_locked()
2771 cpu_rq(cpumask_first(doms_cur[j]))->rd->pd) { in partition_sched_domains_locked()
2776 /* No match - add perf domains for a new rd */ in partition_sched_domains_locked()