Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1569350
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] x86/xen: Fix APIC id mismatch warning on Intel |
| Date | 2017-01-30 04:10 +0100 |
| Message-ID | <t5avT-77b-3@gated-at.bofh.it> (permalink) |
| References | <t3WOm-2et-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 01/26/2017 01:12 PM, Mohit Gambhir wrote:
> This patch fixes the following warning message seen when booting the
> kernel as Dom0 with Xen on Intel machines.
>
> [0.003000] [Firmware Bug]: CPU1: APIC id mismatch. Firmware: 0 APIC: 1]
>
> The code generating the warning in validate_apic_and_package_id() matches
> cpu_data(cpu).apicid (initialized in init_intel()->
> detect_extended_topology() using cpuid) against the apicid returned from
> xen_apic_read(). Now, xen_apic_read() makes a hypercall to retrieve apicid
> for the boot cpu but returns 0 otherwise. Hence the warning gets thrown
> for all but the boot cpu.
>
> The idea behind xen_apic_read() returning 0 for apicid is that the
> guests (even Dom0) should not need to know what physical processor their
> vcpus are running on. This is because we currently do not have topology
> information in Xen and also because xen allows more vcpus than physical
> processors. However, boot cpu's apicid is required for loading
> xen-acpi-processor driver on AMD machines. Look at following patch for
> details:
>
> commit 558daa289a40 ("xen/apic: Return the APIC ID (and version) for CPU
> 0.")
>
> So to get rid of the warning, this patch modifies
> xen_cpu_present_to_apicid() to return cpu_data(cpu).apicid instead of
> calling xen_apic_read().
>
> The warning is not seen on AMD machines because init_amd() populates
> cpu_data(cpu).apicid by calling hard_smp_processor_id()->xen_apic_read()
> as opposed to using apicid from cpuid as is done on Intel machines.
>
> Signed-off-by: Mohit Gambhir <mohit.gambhir@oracle.com>
Applied to for-linus-4.11.
-boris
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] x86/xen: Fix APIC id mismatch warning on Intel Mohit Gambhir <mohit.gambhir@oracle.com> - 2017-01-26 19:20 +0100 Re: [PATCH] x86/xen: Fix APIC id mismatch warning on Intel Juergen Gross <jgross@suse.com> - 2017-01-27 11:30 +0100 Re: [PATCH] x86/xen: Fix APIC id mismatch warning on Intel Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2017-01-30 04:10 +0100
csiph-web