/openbmc/linux/arch/x86/kvm/ |
H A D | lapic.c | 69 static int kvm_lapic_msr_read(struct kvm_lapic *apic, u32 reg, u64 *data); 70 static int kvm_lapic_msr_write(struct kvm_lapic *apic, u32 reg, u64 data); 77 static inline void kvm_lapic_set_reg(struct kvm_lapic *apic, int reg_off, u32 val) in kvm_lapic_set_reg() argument 79 __kvm_lapic_set_reg(apic->regs, reg_off, val); in kvm_lapic_set_reg() 88 static __always_inline u64 kvm_lapic_get_reg64(struct kvm_lapic *apic, int reg) in kvm_lapic_get_reg64() argument 90 return __kvm_lapic_get_reg64(apic->regs, reg); in kvm_lapic_get_reg64() 99 static __always_inline void kvm_lapic_set_reg64(struct kvm_lapic *apic, in kvm_lapic_set_reg64() argument 102 __kvm_lapic_set_reg64(apic->regs, reg, val); in kvm_lapic_set_reg64() 112 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_pending_eoi() local 114 return apic_test_vector(vector, apic->regs + APIC_ISR) || in kvm_apic_pending_eoi() [all …]
|
H A D | lapic.h | 113 int kvm_apic_local_deliver(struct kvm_lapic *apic, int lvt_type); 120 void kvm_apic_send_ipi(struct kvm_lapic *apic, u32 icr_low, u32 icr_high); 139 int kvm_x2apic_icr_write(struct kvm_lapic *apic, u64 data); 149 u64 kvm_lapic_readable_reg_mask(struct kvm_lapic *apic); 164 static inline void kvm_lapic_set_irr(int vec, struct kvm_lapic *apic) in kvm_lapic_set_irr() argument 166 kvm_lapic_set_vector(vec, apic->regs + APIC_IRR); in kvm_lapic_set_irr() 171 apic->irr_pending = true; in kvm_lapic_set_irr() 179 static inline u32 kvm_lapic_get_reg(struct kvm_lapic *apic, int reg_off) in kvm_lapic_get_reg() argument 181 return __kvm_lapic_get_reg(apic->regs, reg_off); in kvm_lapic_get_reg() 189 return vcpu->arch.apic; in lapic_in_kernel() [all …]
|
/openbmc/linux/arch/x86/kernel/apic/ |
H A D | init.c | 15 DEFINE_STATIC_CALL_NULL(apic_call_##__cb, *apic->__cb) 41 apic->__cb = __x86_apic_override.__cb 62 static_call_update(apic_call_##__cb, *apic->__cb) 86 apic->native_eoi = apic->eoi; in apic_setup_apic_calls() 91 void __init apic_install_driver(struct apic *driver) in apic_install_driver() 93 if (apic == driver) in apic_install_driver() 96 apic = driver; in apic_install_driver() 98 if (IS_ENABLED(CONFIG_X86_X2APIC) && apic->x2apic_set_max_apicid) in apic_install_driver() 99 apic->max_apic_id = x2apic_max_apicid; in apic_install_driver() 102 if (!apic->native_eoi) in apic_install_driver() [all …]
|
H A D | io_apic.c | 90 int apic, pin; member 269 static inline void io_apic_eoi(unsigned int apic, unsigned int vector) in io_apic_eoi() argument 271 struct io_apic __iomem *io_apic = io_apic_base(apic); in io_apic_eoi() 275 unsigned int native_io_apic_read(unsigned int apic, unsigned int reg) in native_io_apic_read() argument 277 struct io_apic __iomem *io_apic = io_apic_base(apic); in native_io_apic_read() 282 static void io_apic_write(unsigned int apic, unsigned int reg, in io_apic_write() argument 285 struct io_apic __iomem *io_apic = io_apic_base(apic); in io_apic_write() 291 static struct IO_APIC_route_entry __ioapic_read_entry(int apic, int pin) in __ioapic_read_entry() argument 295 entry.w1 = io_apic_read(apic, 0x10 + 2 * pin); in __ioapic_read_entry() 296 entry.w2 = io_apic_read(apic, 0x11 + 2 * pin); in __ioapic_read_entry() [all …]
|
H A D | apic_flat_64.c | 16 #include <asm/apic.h> 20 static struct apic apic_physflat; 21 static struct apic apic_flat; 23 struct apic *apic __ro_after_init = &apic_flat; 24 EXPORT_SYMBOL_GPL(apic); 79 static struct apic apic_flat __ro_after_init = { 137 printk(KERN_DEBUG "IBM Summit detected, will use apic physical"); in physflat_acpi_madt_oem_check() 147 return apic == &apic_physflat || num_possible_cpus() > 8 || jailhouse_paravirt(); in physflat_probe() 150 static struct apic apic_physfla [all...] |
H A D | probe_32.c | 32 static struct apic apic_default __ro_after_init = { 72 struct apic *apic __ro_after_init = &apic_default; 73 EXPORT_SYMBOL_GPL(apic); 78 struct apic **drv; in parse_apic() 128 struct apic **drv; in x86_32_probe_apic()
|
H A D | x2apic_phys.c | 10 static struct apic apic_x2apic_phys; 16 if (apic->x2apic_set_max_apicid) in x2apic_set_max_apicid() 17 apic->max_apic_id = apicid; in x2apic_set_max_apicid() 124 return apic == &apic_x2apic_phys; in x2apic_phys_probe() 142 static struct apic apic_x2apic_phys __ro_after_init = {
|
H A D | apic_numachip.c | 24 static const struct apic apic_numachip1; 25 static const struct apic apic_numachip2; 151 return apic == &apic_numachip1; in numachip1_probe() 156 return apic == &apic_numachip2; in numachip2_probe() 220 static const struct apic apic_numachip1 __refconst = { 257 static const struct apic apic_numachip2 __refconst = {
|
H A D | bigsmp_32.c | 78 static struct apic apic_bigsmp __ro_after_init = { 117 return apic == &apic_bigsmp || !cmdline_override; in apic_bigsmp_possible() 122 if (apic != &apic_bigsmp) in apic_bigsmp_force()
|
H A D | probe_64.c | 19 struct apic **drv; in x86_64_probe_apic() 33 struct apic **drv; in default_acpi_madt_oem_check()
|
H A D | x2apic_cluster.c | 8 #include <asm/apic.h> 111 u32 apicid = apic->cpu_present_to_apicid(cpu_i); in prefill_clustermask() 147 u32 apicid = apic->cpu_present_to_apicid(cpu_i); in alloc_clustermask() 178 u32 phys_apicid = apic->cpu_present_to_apicid(cpu); in x2apic_prepare_cpu() 224 static struct apic apic_x2apic_cluster __ro_after_init = {
|
/openbmc/qemu/target/i386/ |
H A D | cpu-apic.c | 44 APICCommonState *apic; in x86_cpu_apic_create() local 57 apic = APIC_COMMON(cpu->apic_state); in x86_cpu_apic_create() 58 apic->cpu = cpu; in x86_cpu_apic_create() 59 apic->apicbase = APIC_DEFAULT_ADDRESS | MSR_IA32_APICBASE_ENABLE; in x86_cpu_apic_create() 71 APICCommonState *apic; in x86_cpu_apic_realize() local 80 apic = APIC_COMMON(cpu->apic_state); in x86_cpu_apic_realize() 83 apic->apicbase & in x86_cpu_apic_realize() 85 &apic->io_memory, in x86_cpu_apic_realize()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | apic.h | 34 * This can be turned up by using apic=verbose for more 35 * information and apic=debug for _lots_ of information. 36 * apic_verbosity is defined in apic.c 70 * With 82489DX we can't rely on apic feature bit 72 * such an apic chip so we assume that SMP configuration 258 struct apic { struct 336 extern struct apic *apic; 341 * of different apic driver files in the Makefile. 343 * For the files having two apic driver 276 delivery_modeapic global() argument 280 x2apic_set_max_apicidapic global() argument 282 calc_dest_apicidapic global() argument 289 max_apic_idapic global() argument 294 apic_id_registeredapic global() argument 296 check_apicid_usedapic global() argument 297 init_apic_ldrapic global() argument 298 ioapic_phys_id_mapapic global() argument 299 cpu_present_to_apicidapic global() argument 300 phys_pkg_idapic global() argument 302 get_apic_idapic global() argument 303 set_apic_idapic global() argument 306 wakeup_secondary_cpuapic global() argument 308 wakeup_secondary_cpu_64apic global() argument 313 nameapic global() argument [all...] |
H A D | io_apic.h | 163 extern unsigned int native_io_apic_read(unsigned int apic, unsigned int reg); 166 static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg) in io_apic_read() argument 168 return x86_apic_ops.io_apic_read(apic, reg); in io_apic_read()
|
/openbmc/qemu/hw/intc/ |
H A D | apic.c | 210 #define foreach_apic(apic, deliver_bitmask, code) \ argument 218 apic = local_apics[__i * 32 + __j];\ 219 if (apic) {\ 517 static bool apic_match_dest(APICCommonState *apic, uint32_t dest) in apic_match_dest() argument 519 if (is_x2apic_mode(&apic->parent_obj)) { in apic_match_dest() 520 return apic->initial_apic_id == dest; in apic_match_dest() 522 return apic->id == (uint8_t)dest; in apic_match_dest() 528 APICCommonState *apic = NULL; in apic_find_dest() local 532 apic = local_apics[i]; in apic_find_dest() 533 if (apic && apic_match_dest(apic, dest)) { in apic_find_dest() [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/qemu/qemu/ |
H A D | 0002-apic-fixup-fallthrough-to-PIC.patch | 4 Subject: [PATCH] apic: fixup fallthrough to PIC 28 hw/intc/apic.c | 2 +- 31 diff --git a/hw/intc/apic.c b/hw/intc/apic.c 33 --- a/hw/intc/apic.c 34 +++ b/hw/intc/apic.c
|
/openbmc/linux/arch/x86/xen/ |
H A D | apic.c | 16 static unsigned int xen_io_apic_read(unsigned apic, unsigned reg) in xen_io_apic_read() argument 21 apic_op.apic_physbase = mpc_ioapic_addr(apic); in xen_io_apic_read() 31 return apic << 24; in xen_io_apic_read() 126 static struct apic xen_pv_apic __ro_after_init = {
|
/openbmc/linux/arch/x86/kernel/cpu/ |
H A D | topology.c | 149 c->cpu_core_id = apic->phys_pkg_id(c->initial_apicid, in detect_extended_topology() 153 c->cpu_die_id = apic->phys_pkg_id(c->initial_apicid, in detect_extended_topology() 157 c->phys_proc_id = apic->phys_pkg_id(c->initial_apicid, in detect_extended_topology() 162 c->apicid = apic->phys_pkg_id(c->initial_apicid, 0); in detect_extended_topology()
|
/openbmc/linux/arch/x86/kvm/svm/ |
H A D | avic.c | 101 if (x2avic_enabled && apic_x2apic_mode(svm->vcpu.arch.apic)) { in avic_activate_vmcb() 287 if (!vcpu->arch.apic->regs) in avic_init_backing_page() 304 svm->avic_backing_page = virt_to_page(vcpu->arch.apic->regs); in avic_init_backing_page() 342 vcpu->arch.apic->irr_pending = true; in avic_kick_vcpu() 497 struct kvm_lapic *apic = vcpu->arch.apic; in avic_incomplete_ipi_interception() local 519 kvm_apic_send_ipi(apic, icrl, icrh); in avic_incomplete_ipi_interception() 527 avic_kick_target_vcpus(vcpu->kvm, apic, icrl, icrh, index); in avic_incomplete_ipi_interception() 583 flat = kvm_lapic_get_reg(vcpu->arch.apic, APIC_DFR) == APIC_DFR_FLAT; in avic_ldr_write() 602 if (apic_x2apic_mode(vcpu->arch.apic)) in avic_invalidate_logical_id_entry() 613 u32 ldr = kvm_lapic_get_reg(vcpu->arch.apic, APIC_LDR); in avic_handle_ldr_update() [all …]
|
/openbmc/u-boot/arch/x86/dts/ |
H A D | cougarcanyon2.dts | 41 intel,apic-id = <0>; 48 intel,apic-id = <1>; 55 intel,apic-id = <2>; 62 intel,apic-id = <3>;
|
H A D | cherryhill.dts | 42 intel,apic-id = <0>; 49 intel,apic-id = <2>; 56 intel,apic-id = <4>; 63 intel,apic-id = <6>;
|
H A D | baytrail_som-db5800-som-6867.dts | 87 intel,apic-id = <0>; 94 intel,apic-id = <2>; 101 intel,apic-id = <4>; 108 intel,apic-id = <6>;
|
H A D | bayleybay.dts | 44 intel,apic-id = <0>; 51 intel,apic-id = <2>; 58 intel,apic-id = <4>; 65 intel,apic-id = <6>;
|
/openbmc/linux/drivers/acpi/ |
H A D | processor_core.c | 51 struct acpi_madt_local_x2apic *apic = in map_x2apic_id() local 54 if (!(apic->lapic_flags & ACPI_MADT_ENABLED)) in map_x2apic_id() 57 if (device_declaration && (apic->uid == acpi_id)) { in map_x2apic_id() 58 *apic_id = apic->local_apic_id; in map_x2apic_id()
|
/openbmc/qemu/tests/functional/acpi-bits/bits-tests/ |
H A D | testacpi.py2 | 55 apic = acpi.parse_apic() 56 procid_apicid = apic.procid_apicid 57 uid_x2apicid = apic.uid_x2apicid 127 apic = acpi.parse_apic() 128 procid_apicid = apic.procid_apicid 129 uid_x2apicid = apic.uid_x2apicid 240 apic = acpi.parse_apic()
|