Home
last modified time | relevance | path

Searched refs:boot_cpu_data (Results 1 – 25 of 127) sorted by relevance

123456

/linux/arch/sh/kernel/cpu/sh4/
H A Dprobe.c35 boot_cpu_data.icache.way_incr = (1 << 13); in cpu_probe()
36 boot_cpu_data.icache.entry_shift = 5; in cpu_probe()
37 boot_cpu_data.icache.sets = 256; in cpu_probe()
38 boot_cpu_data.icache.ways = 1; in cpu_probe()
39 boot_cpu_data.icache.linesz = L1_CACHE_BYTES; in cpu_probe()
44 boot_cpu_data.dcache.way_incr = (1 << 14); in cpu_probe()
45 boot_cpu_data.dcache.entry_shift = 5; in cpu_probe()
46 boot_cpu_data.dcache.sets = 512; in cpu_probe()
47 boot_cpu_data.dcache.ways = 1; in cpu_probe()
48 boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; in cpu_probe()
[all …]
/linux/arch/sh/kernel/cpu/sh2a/
H A Dprobe.c15 boot_cpu_data.family = CPU_FAMILY_SH2A; in cpu_probe()
18 boot_cpu_data.flags |= CPU_HAS_OP32; in cpu_probe()
21 boot_cpu_data.type = CPU_SH7201; in cpu_probe()
22 boot_cpu_data.flags |= CPU_HAS_FPU; in cpu_probe()
24 boot_cpu_data.type = CPU_SH7203; in cpu_probe()
25 boot_cpu_data.flags |= CPU_HAS_FPU; in cpu_probe()
27 boot_cpu_data.type = CPU_SH7263; in cpu_probe()
28 boot_cpu_data.flags |= CPU_HAS_FPU; in cpu_probe()
30 boot_cpu_data.type = CPU_SH7264; in cpu_probe()
31 boot_cpu_data.flags |= CPU_HAS_FPU; in cpu_probe()
[all …]
/linux/arch/parisc/kernel/
H A Dprocessor.c34 struct system_cpuinfo_parisc boot_cpu_data __ro_after_init;
35 EXPORT_SYMBOL(boot_cpu_data);
94 if (boot_cpu_data.cpu_count > 0) { in processor_probe()
103 cpuid = boot_cpu_data.cpu_count; in processor_probe()
152 boot_cpu_data.cpu_count--; in processor_probe()
162 boot_cpu_data.cpu_count++; in processor_probe()
234 memset(&boot_cpu_data, 0, sizeof(boot_cpu_data)); in collect_boot_cpu_data()
239 boot_cpu_data.cpu_hz = 100 * PAGE0->mem_10msec; /* Hz of this PARISC */ in collect_boot_cpu_data()
242 #define p ((unsigned long *)&boot_cpu_data.pdc.model) in collect_boot_cpu_data()
243 if (pdc_model_info(&boot_cpu_data.pdc.model) == PDC_OK) { in collect_boot_cpu_data()
[all …]
H A Dsetup.c85 switch (boot_cpu_data.cpu_type) { in dma_ops_init()
261 boot_cpu_data.cpu_name, in parisc_init()
262 boot_cpu_data.cpu_hz / 1000000, in parisc_init()
263 boot_cpu_data.cpu_hz % 1000000 ); in parisc_init()
H A Dalternative.c42 (((boot_cpu_data.cpu_type > pcxw_) && in apply_alternatives()
43 ((boot_cpu_data.pdc.capabilities & PDC_MODEL_IOPDIR_FDC) == 0)) in apply_alternatives()
72 if (boot_cpu_data.cpu_type >= pcxu) /* >= pa2.0 ? */ in apply_alternatives()
/linux/arch/sh/kernel/cpu/sh3/
H A Dprobe.c50 boot_cpu_data.dcache.ways = 4; in cpu_probe()
51 boot_cpu_data.dcache.entry_shift = 4; in cpu_probe()
52 boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; in cpu_probe()
53 boot_cpu_data.dcache.flags = 0; in cpu_probe()
60 boot_cpu_data.dcache.way_incr = (1 << 11); in cpu_probe()
61 boot_cpu_data.dcache.entry_mask = 0x7f0; in cpu_probe()
62 boot_cpu_data.dcache.sets = 128; in cpu_probe()
63 boot_cpu_data.type = CPU_SH7708; in cpu_probe()
65 boot_cpu_data.flags |= CPU_HAS_MMU_PAGE_ASSOC; in cpu_probe()
67 boot_cpu_data.dcache.way_incr = (1 << 12); in cpu_probe()
[all …]
/linux/arch/sh/mm/
H A Dcache.c66 if (boot_cpu_data.dcache.n_aliases && folio_mapped(folio) && in copy_to_user_page()
73 if (boot_cpu_data.dcache.n_aliases) in copy_to_user_page()
87 if (boot_cpu_data.dcache.n_aliases && folio_mapped(folio) && in copy_from_user_page()
94 if (boot_cpu_data.dcache.n_aliases) in copy_from_user_page()
107 if (boot_cpu_data.dcache.n_aliases && folio_mapped(src) && in copy_user_highpage()
146 if (!boot_cpu_data.dcache.n_aliases) in __update_cache()
164 if (boot_cpu_data.dcache.n_aliases && folio_mapped(folio) && in __flush_anon_page()
186 if (boot_cpu_data.dcache.n_aliases == 0) in flush_cache_mm()
194 if (boot_cpu_data.dcache.n_aliases == 0) in flush_cache_dup_mm()
268 boot_cpu_data.icache.ways, in emit_cache_params()
[all …]
H A Dcache-shx3.c28 if (boot_cpu_data.dcache.n_aliases || boot_cpu_data.icache.n_aliases) { in shx3_cache_init()
31 boot_cpu_data.icache.n_aliases = 0; in shx3_cache_init()
32 boot_cpu_data.dcache.n_aliases = 0; in shx3_cache_init()
H A Dcache-sh4.c77 n = boot_cpu_data.icache.n_aliases; in sh4_flush_icache_range()
97 if ((boot_cpu_data.flags & CPU_HAS_P2_FLUSH_BUG) || in flush_cache_one()
300 if (boot_cpu_data.dcache.n_aliases == 0) in sh4_flush_cache_range()
333 dcache = &boot_cpu_data.dcache; in __flush_cache_one()
/linux/arch/sh/kernel/cpu/sh2/
H A Dprobe.c33 boot_cpu_data.type = CPU_SH7619; in cpu_probe()
34 boot_cpu_data.dcache.ways = 4; in cpu_probe()
35 boot_cpu_data.dcache.way_incr = (1<<12); in cpu_probe()
36 boot_cpu_data.dcache.sets = 256; in cpu_probe()
37 boot_cpu_data.dcache.entry_shift = 4; in cpu_probe()
38 boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; in cpu_probe()
39 boot_cpu_data.dcache.flags = 0; in cpu_probe()
51 boot_cpu_data.type = CPU_J2; in cpu_probe()
56 boot_cpu_data.dcache.ways = 1; in cpu_probe()
57 boot_cpu_data.dcache.sets = 256; in cpu_probe()
[all …]
/linux/arch/x86/include/asm/
H A Dgeode.h16 return ((boot_cpu_data.x86_vendor == X86_VENDOR_NSC) && in is_geode_gx()
17 (boot_cpu_data.x86 == 5) && in is_geode_gx()
18 (boot_cpu_data.x86_model == 5)); in is_geode_gx()
23 return ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) && in is_geode_lx()
24 (boot_cpu_data.x86 == 5) && in is_geode_lx()
25 (boot_cpu_data.x86_model == 10)); in is_geode_lx()
H A Dcpufeature.h74 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)
87 set_cpu_cap(&boot_cpu_data, bit); \
111 [cap_byte] "i" (&((const char *)boot_cpu_data.x86_capability)[bit >> 3]) in _static_cpu_has()
131 #define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit))
132 #define boot_cpu_set_bug(bit) set_cpu_cap(&boot_cpu_data, (bit))
138 #define CPU_FEATURE_TYPEVAL boot_cpu_data.x86_vendor, boot_cpu_data.x86, \
139 boot_cpu_data.x86_model
H A Dacpi.h99 if (boot_cpu_data.x86 == 0x0F && in acpi_processor_cstate_check()
100 boot_cpu_data.x86_vendor == X86_VENDOR_AMD && in acpi_processor_cstate_check()
101 boot_cpu_data.x86_model <= 0x05 && in acpi_processor_cstate_check()
102 boot_cpu_data.x86_stepping < 0x0A) in acpi_processor_cstate_check()
/linux/arch/um/include/asm/
H A Dcpufeature.h54 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)
61 set_cpu_cap(&boot_cpu_data, bit); \
111 [cap_byte] "m" (((const char *)boot_cpu_data.x86_capability)[bit >> 3]) in _static_cpu_has()
130 #define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit))
131 #define boot_cpu_set_bug(bit) set_cpu_cap(&boot_cpu_data, (bit))
137 #define CPU_FEATURE_TYPEVAL boot_cpu_data.x86_vendor, boot_cpu_data.x86, \
138 boot_cpu_data.x86_model
H A Dprocessor-generic.h81 extern struct cpuinfo_um boot_cpu_data;
83 #define cache_line_size() (boot_cpu_data.cache_alignment)
/linux/arch/x86/kernel/acpi/
H A Dcppc.c29 switch (boot_cpu_data.x86_vendor) { in cpc_supported_by_cpu()
32 if (boot_cpu_data.x86 == 0x19 && ((boot_cpu_data.x86_model <= 0x0f) || in cpc_supported_by_cpu()
33 (boot_cpu_data.x86_model >= 0x20 && boot_cpu_data.x86_model <= 0x2f))) in cpc_supported_by_cpu()
35 else if (boot_cpu_data.x86 == 0x17 && in cpc_supported_by_cpu()
36 boot_cpu_data.x86_model >= 0x30 && boot_cpu_data.x86_model <= 0x7f) in cpc_supported_by_cpu()
122 if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) in init_freq_invariance_cppc()
265 switch (boot_cpu_data.x86_model) { in amd_get_boost_ratio_numerator()
/linux/arch/x86/kernel/cpu/
H A Dperfctr-watchdog.c48 switch (boot_cpu_data.x86_vendor) { in nmi_perfctr_msr_to_bit()
55 if (cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) in nmi_perfctr_msr_to_bit()
58 switch (boot_cpu_data.x86) { in nmi_perfctr_msr_to_bit()
81 switch (boot_cpu_data.x86_vendor) { in nmi_evntsel_msr_to_bit()
88 if (cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) in nmi_evntsel_msr_to_bit()
91 switch (boot_cpu_data.x86) { in nmi_evntsel_msr_to_bit()
/linux/arch/um/kernel/
H A Dum_arch.c59 struct cpuinfo_um boot_cpu_data = { variable
65 EXPORT_SYMBOL(boot_cpu_data);
86 seq_printf(m, "fpu\t\t: %s\n", str_yes_no(cpu_has(&boot_cpu_data, X86_FEATURE_FPU))); in show_cpuinfo()
89 if (cpu_has(&boot_cpu_data, i) && (x86_cap_flags[i] != NULL)) in show_cpuinfo()
92 seq_printf(m, "cache_alignment\t: %d\n", boot_cpu_data.cache_alignment); in show_cpuinfo()
272 set_cpu_cap(&boot_cpu_data, i); in parse_host_cpu_flags()
286 boot_cpu_data.cache_alignment = res; in parse_cache_line()
288 boot_cpu_data.cache_alignment = L1_CACHE_BYTES; in parse_cache_line()
/linux/arch/x86/kernel/cpu/resctrl/
H A Dpseudo_lock.c63 if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL || in resctrl_arch_get_prefetch_disable_bits()
64 boot_cpu_data.x86 != 6) in resctrl_arch_get_prefetch_disable_bits()
67 switch (boot_cpu_data.x86_vfm) { in resctrl_arch_get_prefetch_disable_bits()
438 switch (boot_cpu_data.x86_vfm) { in resctrl_arch_measure_l2_residency()
477 switch (boot_cpu_data.x86_vfm) { in resctrl_arch_measure_l3_residency()
496 if (boot_cpu_data.x86_vfm == INTEL_BROADWELL_X) { in resctrl_arch_measure_l3_residency()
/linux/arch/x86/xen/
H A Denlighten.c79 cpu_detect(&boot_cpu_data); in xen_get_vendor()
80 get_cpu_vendor(&boot_cpu_data); in xen_get_vendor()
88 if ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD || in xen_hypercall_setfunc()
89 boot_cpu_data.x86_vendor == X86_VENDOR_HYGON)) in xen_hypercall_setfunc()
119 if ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD || in __xen_hypercall_setfunc()
120 boot_cpu_data.x86_vendor == X86_VENDOR_HYGON)) in __xen_hypercall_setfunc()
/linux/arch/x86/kernel/apic/
H A Dapic.c204 if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD && in modern_apic()
205 boot_cpu_data.x86 >= 0xf) in modern_apic()
209 if (boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) in modern_apic()
561 if (boot_cpu_data.microcode >= rev) in apic_validate_deadline_timer()
1232 if (modern_apic() || boot_cpu_data.x86_vendor == X86_VENDOR_AMD) in sync_Arb_IDs()
1335 if ((boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) && in init_bsp_APIC()
1336 (boot_cpu_data.x86 == 15)) in init_bsp_APIC()
1967 set_cpu_cap(&boot_cpu_data, X86_FEATURE_APIC); in apic_verify()
1970 if (boot_cpu_data.x86 >= 6) { in apic_verify()
1993 if (boot_cpu_data.x86 >= 6) { in apic_force_enable()
[all …]
/linux/arch/x86/mm/
H A Dmaccess.c33 if (!boot_cpu_data.x86_virt_bits) in copy_from_kernel_nofault_allowed()
36 return __is_canonical_address(vaddr, boot_cpu_data.x86_virt_bits); in copy_from_kernel_nofault_allowed()
/linux/arch/x86/events/amd/
H A Duncore.c307 return boot_cpu_data.x86 >= 0x17 && boot_cpu_data.x86 < 0x19 ? in amd_f17h_uncore_is_visible()
314 return boot_cpu_data.x86 >= 0x19 ? attr->mode : 0; in amd_f19h_uncore_is_visible()
739 strscpy(pmu->name, boot_cpu_data.x86 >= 0x17 ? "amd_df" : "amd_nb", in amd_uncore_df_ctx_init()
749 } else if (boot_cpu_data.x86 >= 0x17) { in amd_uncore_df_ctx_init()
778 boot_cpu_data.x86_vendor == X86_VENDOR_HYGON ? "HYGON " : "", in amd_uncore_df_ctx_init()
802 if (ret || boot_cpu_data.x86 < 0x17) in amd_uncore_l3_event_init()
809 if (boot_cpu_data.x86 <= 0x18) in amd_uncore_l3_event_init()
841 if (boot_cpu_data.x86 >= 0x17) in amd_uncore_l3_ctx_scan()
873 strscpy(pmu->name, boot_cpu_data.x86 >= 0x17 ? "amd_l3" : "amd_l2", in amd_uncore_l3_ctx_init()
880 if (boot_cpu_data.x86 >= 0x17) { in amd_uncore_l3_ctx_init()
[all …]
/linux/arch/x86/kvm/mmu/
H A Dspte.c56 if (likely(boot_cpu_data.extended_cpuid_level >= 0x80000008)) in kvm_get_host_maxphyaddr()
64 return boot_cpu_data.x86_phys_bits; in kvm_get_host_maxphyaddr()
536 low_phys_bits = boot_cpu_data.x86_phys_bits; in kvm_mmu_reset_all_pte_masks()
538 !WARN_ON_ONCE(boot_cpu_data.x86_cache_bits >= in kvm_mmu_reset_all_pte_masks()
540 low_phys_bits = boot_cpu_data.x86_cache_bits in kvm_mmu_reset_all_pte_masks()
543 rsvd_bits(low_phys_bits, boot_cpu_data.x86_cache_bits - 1); in kvm_mmu_reset_all_pte_masks()
/linux/arch/mips/kernel/
H A Dfpu-probe.c245 if (!(boot_cpu_data.options & MIPS_CPU_FPU)) in ieee754_setup()
246 cpu_set_nofpu_2008(&boot_cpu_data); in ieee754_setup()
247 cpu_set_nan_2008(&boot_cpu_data); in ieee754_setup()
321 cpu_set_nofpu_opts(&boot_cpu_data); in fpu_disable()

123456