Lines Matching refs:cpu
87 struct cpu cpus[1] __aligned(MMU_PAGESIZE);
88 struct cpu *cpu[NCPU] = {&cpus[0]}; variable
89 struct cpu *cpu_free_list;
127 init_cpu_info(struct cpu *cp) in init_cpu_info()
171 init_cpu_syscall(struct cpu *cp) in init_cpu_syscall()
268 init_cpu_id_gdt(struct cpu *cp) in init_cpu_id_gdt()
284 static struct cpu *
287 struct cpu *cp; in mp_cpu_configure_common()
303 ASSERT(cpun < NCPU && cpu[cpun] == NULL); in mp_cpu_configure_common()
494 mp_cpu_unconfigure_common(struct cpu *cp, int error) in mp_cpu_unconfigure_common()
754 do_erratum_298(struct cpu *cpu) in do_erratum_298() argument
764 osvwrc = osvw_opteron_erratum(cpu, 298); in do_erratum_298()
767 ASSERT(osvwrc == osvw_opteron_erratum(cpu, 298)); in do_erratum_298()
783 workaround_warning(cpu, 298); in do_erratum_298()
789 if ((cpuid_opteron_erratum(cpu, 298) > 0) && in do_erratum_298()
795 workaround_warning(cpu, 298); in do_erratum_298()
805 workaround_errata(struct cpu *cpu) in workaround_errata() argument
809 ASSERT(cpu == CPU); in workaround_errata()
812 if (cpuid_opteron_erratum(cpu, 88) > 0) { in workaround_errata()
822 workaround_warning(cpu, 88); in workaround_errata()
827 if (cpuid_opteron_erratum(cpu, 91) > 0) { in workaround_errata()
837 workaround_warning(cpu, 91); in workaround_errata()
842 if (cpuid_opteron_erratum(cpu, 93) > 0) { in workaround_errata()
852 workaround_warning(cpu, 93); in workaround_errata()
858 if (cpuid_opteron_erratum(cpu, 95) > 0) { in workaround_errata()
877 workaround_warning(cpu, 95); in workaround_errata()
882 if (cpuid_opteron_erratum(cpu, 100) > 0) { in workaround_errata()
892 workaround_warning(cpu, 100); in workaround_errata()
898 if (cpuid_opteron_erratum(cpu, 108) > 0) { in workaround_errata()
909 workaround_warning(cpu, 108); in workaround_errata()
915 if (cpuid_opteron_erratum(cpu, 109) > 0) do { in workaround_errata()
928 msr_warning(cpu, "rd", msr, err); in workaround_errata()
929 workaround_warning(cpu, 109); in workaround_errata()
935 workaround_warning(cpu, 109); in workaround_errata()
942 if (cpuid_opteron_erratum(cpu, 121) > 0) { in workaround_errata()
972 workaround_warning(cpu, 121); in workaround_errata()
978 if (cpuid_opteron_erratum(cpu, 122) > 0) do { in workaround_errata()
999 cpuid_get_ncpu_per_chip(cpu) == 1) in workaround_errata()
1005 msr_warning(cpu, "rd", msr, error); in workaround_errata()
1006 workaround_warning(cpu, 122); in workaround_errata()
1011 msr_warning(cpu, "wr", msr, error); in workaround_errata()
1012 workaround_warning(cpu, 122); in workaround_errata()
1018 workaround_warning(cpu, 122); in workaround_errata()
1025 if (cpuid_opteron_erratum(cpu, 123) > 0) do { in workaround_errata()
1038 if (cpuid_get_ncpu_per_chip(cpu) < 2) in workaround_errata()
1048 msr_warning(cpu, "rd", msr, err); in workaround_errata()
1049 workaround_warning(cpu, 123); in workaround_errata()
1055 workaround_warning(cpu, 123); in workaround_errata()
1063 if (cpuid_opteron_erratum(cpu, 131) > 0) do { in workaround_errata()
1086 if (opteron_get_nnodes() * cpuid_get_ncpu_per_chip(cpu) < 4) in workaround_errata()
1094 msr_warning(cpu, "rd", msr, error); in workaround_errata()
1095 workaround_warning(cpu, 131); in workaround_errata()
1104 workaround_warning(cpu, 131); in workaround_errata()
1117 if (cpuid_opteron_erratum(cpu, 6336786) > 0) { in workaround_errata()
1136 workaround_warning(cpu, 6336786); in workaround_errata()
1139 cpuid_get_ncpu_per_chip(cpu) > 1) || in workaround_errata()
1159 workaround_warning(cpu, 6336786); in workaround_errata()
1170 if (cpuid_opteron_erratum(cpu, 147) > 0) { in workaround_errata()
1205 cpuid_get_ncpu_per_chip(cpu)) > 1)) { in workaround_errata()
1211 workaround_warning(cpu, 147); in workaround_errata()
1216 missing += do_erratum_298(cpu); in workaround_errata()
1218 if (cpuid_opteron_erratum(cpu, 721) > 0) { in workaround_errata()
1229 workaround_warning(cpu, 721); in workaround_errata()
1957 mp_cpu_start(struct cpu *cp) in mp_cpu_start()
1967 mp_cpu_stop(struct cpu *cp) in mp_cpu_stop()
1999 cpu_disable_intr(struct cpu *cp) in cpu_disable_intr()
2013 cpu_enable_intr(struct cpu *cp) in cpu_enable_intr()
2022 mp_cpu_faulted_enter(struct cpu *cp) in mp_cpu_faulted_enter()
2043 mp_cpu_faulted_exit(struct cpu *cp) in mp_cpu_faulted_exit()