[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- To: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
- From: Sean Christopherson <seanjc@xxxxxxxxxx>
- Date: Thu, 20 Apr 2023 07:51:49 -0700
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Paul Menzel <pmenzel@xxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx, David Woodhouse <dwmw2@xxxxxxxxxxxxx>, Brian Gerst <brgerst@xxxxxxxxx>, Arjan van de Veen <arjan@xxxxxxxxxxxxxxx>, Paolo Bonzini <pbonzini@xxxxxxxxxx>, Paul McKenney <paulmck@xxxxxxxxxx>, Tom Lendacky <thomas.lendacky@xxxxxxx>, Oleksandr Natalenko <oleksandr@xxxxxxxxxxxxxx>, "Guilherme G. Piccoli" <gpiccoli@xxxxxxxxxx>, Piotr Gorski <lucjan.lucjanov@xxxxxxxxx>, David Woodhouse <dwmw@xxxxxxxxxxxx>, Usama Arif <usama.arif@xxxxxxxxxxxxx>, "Jürgen Groß" <jgross@xxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Russell King <linux@xxxxxxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, Catalin Marinas <catalin.marinas@xxxxxxx>, Will Deacon <will@xxxxxxxxxx>, Guo Ren <guoren@xxxxxxxxxx>, linux-csky@xxxxxxxxxxxxxxx, Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>, linux-mips@xxxxxxxxxxxxxxx, "James E. J. Bottomley" <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx>, Helge Deller <deller@xxxxxx>, linux-parisc@xxxxxxxxxxxxxxx, Paul Walmsley <paul.walmsley@xxxxxxxxxx>, Palmer Dabbelt <palmer@xxxxxxxxxxx>, linux-riscv@xxxxxxxxxxxxxxxxxxx, Mark Rutland <mark.rutland@xxxxxxx>, Sabin Rapan <sabrapan@xxxxxxxxxx>
- Delivery-date: Thu, 20 Apr 2023 14:52:06 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Thu, Apr 20, 2023, Thomas Gleixner wrote:
> On Thu, Apr 20 2023 at 10:23, Andrew Cooper wrote:
> > On 20/04/2023 9:32 am, Thomas Gleixner wrote:
> > > On Wed, Apr 19, 2023, Andrew Cooper wrote:
> > > > This was changed in x2APIC, which made the x2APIC_ID immutable.
>
> >> I'm pondering to simply deny parallel mode if x2APIC is not there.
> >
> > I'm not sure if that will help much.
>
> Spoilsport.
LOL, well let me pile on then. x2APIC IDs aren't immutable on AMD hardware.
The
ID is read-only when the CPU is in x2APIC mode, but any changes made to the ID
while the CPU is in xAPIC mode survive the transition to x2APIC. From the APM:
A value previously written by software to the 8-bit APIC_ID register (MMIO
offset
30h) is converted by hardware into the appropriate format and reflected into
the
32-bit x2APIC_ID register (MSR 802h).
FWIW, my observations from testing on bare metal are that the xAPIC ID is
effectively
read-only (writes are dropped) on Intel CPUs as far back as Haswell, while the
above
behavior described in the APM holds true on at least Rome and Milan.
My guess is that Intel's uArch specific behavior of the xAPIC ID being read-only
was introduced when x2APIC came along, but I didn't test farther back than
Haswell.
- References:
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
|