Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1538395

Re: [PATCH] x86/smpboot: Make logical package management more robust

From Borislav Petkov <bp@alien8.de>
Newsgroups linux.kernel
Subject Re: [PATCH] x86/smpboot: Make logical package management more robust
Date 2016-12-08 10:20 +0100
Message-ID <sM31T-4kE-5@gated-at.bofh.it> (permalink)
References <sM2Sd-4hp-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Dec 08, 2016 at 10:04:25AM +0100, Thomas Gleixner wrote:
> The logical package management has several issues:
> 
>  - The APIC ids provided by ACPI are not required to be the same as the
>    initial APIC id which can be retrieved by CPUID. The APIC ids provided
>    by ACPI are those which are written by the BIOS into the APIC. The
>    initial id is set by hardware and can not be changed. The hardware
>    provided ids contain the real hardware package information.
> 
>    Especially AMD sets the effective APIC id different from the hardware id
>    as they need to reserve space for the IOAPIC ids starting at id 0.
> 
>    As a consequence those machines trigger the currently active firmware
>    bug printouts in dmesg, These are obviously wrong.
> 
>  - Virtual machines have their own interesting way of enumerating APICs and
>    packages which are not reliably covered by the current implementation.
> 
> The sizing of the mapping array has been tweaked to be generously large to
> handle systems which provide a wrong core count when HT is disabled so the
> whole magic which checks for space in the physical hotplug case is not
> needed anymore.
> 
> Simplify the whole machinery and do the mapping when the CPU starts and the
> CPUID derived physical package information is available. This solves the
> observed problems on AMD machines and works for the virtualization issues
> as well.
> 
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Already

Tested-by: Borislav Petkov <bp@suse.de>

Thanks!

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] x86/smpboot: Make logical package management more robust Thomas Gleixner <tglx@linutronix.de> - 2016-12-08 10:10 +0100
  Re: [PATCH] x86/smpboot: Make logical package management more robust Borislav Petkov <bp@alien8.de> - 2016-12-08 10:20 +0100
  Re: [PATCH] x86/smpboot: Make logical package management more robust Peter Zijlstra <peterz@infradead.org> - 2016-12-08 13:10 +0100
    Re: [PATCH] x86/smpboot: Make logical package management more  robust Thomas Gleixner <tglx@linutronix.de> - 2016-12-08 14:00 +0100
      Re: [PATCH] x86/smpboot: Make logical package management more robust Peter Zijlstra <peterz@infradead.org> - 2016-12-08 14:10 +0100
        Re: [PATCH] x86/smpboot: Make logical package management more  robust Thomas Gleixner <tglx@linutronix.de> - 2016-12-08 14:20 +0100
  Re: [PATCH] x86/smpboot: Make logical package management more  robust Thomas Gleixner <tglx@linutronix.de> - 2016-12-09 23:10 +0100
    Re: [PATCH] x86/smpboot: Make logical package management more  robust Thomas Gleixner <tglx@linutronix.de> - 2016-12-10 00:10 +0100
      Re: [PATCH] x86/smpboot: Make logical package management more robust Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-12-10 04:40 +0100
        Re: [PATCH] x86/smpboot: Make logical package management more  robust Thomas Gleixner <tglx@linutronix.de> - 2016-12-10 20:10 +0100
    Re: [PATCH] x86/smpboot: Make logical package management more robust Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-12-10 00:10 +0100
      Re: [PATCH] x86/smpboot: Make logical package management more robust Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-12-10 04:30 +0100
        Re: [PATCH] x86/smpboot: Make logical package management more  robust Thomas Gleixner <tglx@linutronix.de> - 2016-12-10 20:20 +0100
          Re: [PATCH] x86/smpboot: Make logical package management more robust Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-12-11 04:30 +0100
        Re: [PATCH] x86/smpboot: Make logical package management more  robust Thomas Gleixner <tglx@linutronix.de> - 2016-12-10 20:20 +0100

csiph-web