| /linux/arch/x86/mm/ |
| H A D | srat.c | 31 int apic_id; in acpi_numa_x2apic_affinity_init() local 42 apic_id = pa->apic_id; in acpi_numa_x2apic_affinity_init() 43 if (!apic_id_valid(apic_id)) { in acpi_numa_x2apic_affinity_init() 44 pr_info("SRAT: PXM %u -> X2APIC 0x%04x ignored\n", pxm, apic_id); in acpi_numa_x2apic_affinity_init() 54 if (apic_id >= MAX_LOCAL_APIC) { in acpi_numa_x2apic_affinity_init() 55 …NFO "SRAT: PXM %u -> APIC 0x%04x -> Node %u skipped apicid that is too big\n", pxm, apic_id, node); in acpi_numa_x2apic_affinity_init() 58 set_apicid_to_node(apic_id, node); in acpi_numa_x2apic_affinity_init() 61 pr_debug("SRAT: PXM %u -> APIC 0x%04x -> Node %u\n", pxm, apic_id, node); in acpi_numa_x2apic_affinity_init() 69 int apic_id; in acpi_numa_processor_affinity_init() local 90 apic_id = (pa->apic_id << 8) | pa->local_sapic_eid; in acpi_numa_processor_affinity_init() [all …]
|
| /linux/arch/x86/kernel/cpu/ |
| H A D | topology.c | 95 static int topo_lookup_cpuid(u32 apic_id) in topo_lookup_cpuid() argument 101 if (cpuid_to_apicid[i] == apic_id) in topo_lookup_cpuid() 107 static __init int topo_get_cpunr(u32 apic_id) in topo_get_cpunr() argument 109 int cpu = topo_lookup_cpuid(apic_id); in topo_get_cpunr() 117 static void topo_set_cpuids(unsigned int cpu, u32 apic_id, u32 acpi_id) in topo_set_cpuids() argument 120 early_per_cpu(x86_cpu_to_apicid, cpu) = apic_id; in topo_set_cpuids() 126 static __init bool check_for_real_bsp(u32 apic_id) in check_for_real_bsp() argument 158 if (apic_id == topo_info.boot_cpu_apic_id) { in check_for_real_bsp() 166 topo_info.real_bsp_apic_id = apic_id; in check_for_real_bsp() 176 pr_warn("Enumerated BSP APIC %x is not marked in APICBASE MSR\n", apic_id); in check_for_real_bsp() [all …]
|
| /linux/arch/x86/kernel/ |
| H A D | devicetree.c | 133 u32 apic_id; in dtb_cpu_setup() local 136 apic_id = of_get_cpu_hwid(dn, 0); in dtb_cpu_setup() 137 if (apic_id == ~0U) { in dtb_cpu_setup() 141 topology_register_apic(apic_id, CPU_ACPIID_INVALID, true); in dtb_cpu_setup() 142 set_apicid_to_node(apic_id, of_node_to_nid(dn)); in dtb_cpu_setup()
|
| H A D | irq.c | 423 u32 destination, apic_id; in intel_posted_msi_init() local 430 apic_id = this_cpu_read(x86_cpu_to_apicid); in intel_posted_msi_init() 431 destination = x2apic_enabled() ? apic_id : apic_id << 8; in intel_posted_msi_init()
|
| /linux/arch/x86/include/asm/uv/ |
| H A D | uv_mmrs.h | 2290 unsigned long apic_id:32; /* RW */ member 2304 unsigned long apic_id:32; /* RW */ member 2318 unsigned long apic_id:32; /* RW */ member 2332 unsigned long apic_id:32; /* RW */ member 2346 unsigned long apic_id:32; /* RW */ member 2393 unsigned long apic_id:32; /* RW */ member 2407 unsigned long apic_id:32; /* RW */ member 2421 unsigned long apic_id:32; /* RW */ member 2435 unsigned long apic_id:32; /* RW */ member 2449 unsigned long apic_id:32; /* RW */ member [all …]
|
| /linux/drivers/platform/x86/amd/hfi/ |
| H A D | hfi.c | 106 u32 apic_id; member 171 u32 apic_id = i * BITS_PER_TYPE(u32) + j; in amd_hfi_fill_metadata() local 178 cpu_index = find_cpu_index_by_apicid(apic_id); in amd_hfi_fill_metadata() 180 dev_warn(amd_hfi_data->dev, "APIC ID %u not found\n", apic_id); in amd_hfi_fill_metadata() 185 info->apic_id = apic_id; in amd_hfi_fill_metadata()
|
| /linux/drivers/hv/ |
| H A D | hv_proc.c | 157 int hv_call_add_logical_proc(int node, u32 lp_index, u32 apic_id) in hv_call_add_logical_proc() argument 178 input->apic_id = apic_id; in hv_call_add_logical_proc() 187 lp_index, apic_id); in hv_call_add_logical_proc()
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | xapic_state_test.c | 147 u32 apic_id, expected; in __test_apic_id() local 155 apic_id = *((u32 *)&xapic.regs[APIC_ID]); in __test_apic_id() 157 TEST_ASSERT(apic_id == expected, in __test_apic_id() 160 expected, apic_id); in __test_apic_id()
|
| H A D | fix_hypercall_test.c | 33 static u64 do_sched_yield(u8 apic_id) in do_sched_yield() argument 40 : "a"((u64)KVM_HC_SCHED_YIELD), "b"((u64)apic_id) in do_sched_yield()
|
| /linux/arch/x86/coco/sev/ |
| H A D | core.c | 439 static int vmgexit_ap_control(u64 event, struct sev_es_save_area *vmsa, u32 apic_id) in vmgexit_ap_control() argument 458 ((u64)apic_id << 32) | in vmgexit_ap_control() 479 static int snp_set_vmsa(void *va, void *caa, int apic_id, bool make_vmsa) in snp_set_vmsa() argument 496 call.r8 = apic_id; in snp_set_vmsa() 524 static void snp_cleanup_vmsa(struct sev_es_save_area *vmsa, int apic_id) in snp_cleanup_vmsa() argument 528 err = snp_set_vmsa(vmsa, NULL, apic_id, false); in snp_cleanup_vmsa() 640 int apic_id, this_cpu, cpu; in shutdown_all_aps() local 677 apic_id = cpuid_to_apicid[cpu]; in shutdown_all_aps() 684 vmgexit_ap_control(SVM_VMGEXIT_AP_DESTROY, vmsa, apic_id); in shutdown_all_aps() 685 snp_cleanup_vmsa(vmsa, apic_id); in shutdown_all_aps() [all …]
|
| /linux/arch/x86/kernel/apic/ |
| H A D | io_apic.c | 1329 u32 apic_id = read_apic_id(); in native_restore_boot_irq_mode() local 1337 entry.destid_0_7 = apic_id & 0xFF; in native_restore_boot_irq_mode() 1338 entry.virt_destid_8_14 = apic_id >> 8; in native_restore_boot_irq_mode() 1950 u32 apic_id; in unlock_ExtINT_logic() local 1966 apic_id = read_apic_id(); in unlock_ExtINT_logic() 1971 entry1.destid_0_7 = apic_id & 0xFF; in unlock_ExtINT_logic() 1972 entry1.virt_destid_8_14 = apic_id >> 8; in unlock_ExtINT_logic() 2378 static int io_apic_get_unique_id(int ioapic, int apic_id) in io_apic_get_unique_id() argument 2392 if (apic_id >= broadcast_id) { in io_apic_get_unique_id() 2394 ioapic, apic_id, reg_00.bits.ID); in io_apic_get_unique_id() [all …]
|
| H A D | apic.c | 2378 u32 apic_id; member 2404 apic_pm_state.apic_id = apic_read(APIC_ID); in lapic_suspend() 2486 apic_write(APIC_ID, apic_pm_state.apic_id); in lapic_resume()
|
| /linux/arch/x86/xen/ |
| H A D | apic.c | 60 op.u.pcpu_info.apic_id = BAD_APICID; in xen_apic_read() 62 return op.u.pcpu_info.apic_id << 24; in xen_apic_read()
|
| /linux/drivers/gpu/drm/amd/include/ |
| H A D | amd_cper.h | 160 uint64_t apic_id : 1; member 167 uint64_t apic_id; member
|
| /linux/arch/x86/hyperv/ |
| H A D | hv_init.c | 714 int hv_apicid_to_vp_index(u32 apic_id) in hv_apicid_to_vp_index() argument 727 input->apic_ids[0] = apic_id; in hv_apicid_to_vp_index() 739 apic_id, status); in hv_apicid_to_vp_index()
|
| H A D | ivm.c | 295 int hv_snp_boot_ap(u32 apic_id, unsigned long start_ip, unsigned int cpu) in hv_snp_boot_ap() argument 310 vp_index = hv_apicid_to_vp_index(apic_id); in hv_snp_boot_ap()
|
| /linux/include/xen/interface/ |
| H A D | platform.h | 430 uint32_t apic_id; member 444 uint32_t apic_id; member
|
| /linux/include/hyperv/ |
| H A D | hvhdk_mini.h | 396 u32 apic_id; member
|
| /linux/include/acpi/ |
| H A D | actbl1.h | 1334 u32 apic_id; member
|
| /linux/tools/power/x86/turbostat/ |
| H A D | turbostat.c | 2132 unsigned int apic_id; member 3449 outp += sprintf(outp, "%s0x%x", (printed++ ? delim : ""), t->apic_id); in format_counters() 3974 new->apic_id = old->apic_id; in delta_thread() 4222 average.threads->apic_id = t->apic_id; in sum_counters() 4614 t->apic_id = (ebx >> 24) & 0xff; in get_apic_id() 4650 if (debug && (t->apic_id != (t->x2apic_id & 0xff))) in get_apic_id() 4651 fprintf(outf, "cpu%d: BIOS BUG: apic 0x%x x2apic 0x%x\n", t->cpu_id, t->apic_id, t->x2apic_id); in get_apic_id()
|