[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch V4 36/37] x86/smpboot: Support parallel startup of secondary CPUs
- To: Jeffrey Hugo <quic_jhugo@xxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>, David Woodhouse <dwmw2@xxxxxxxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Fri, 19 May 2023 17:57:12 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jG1556UdD29OJoaALVIo8wkISlGBR2/HX2MVx7arj5c=; b=kSMIAT5FgOyy4xytPuQDWzmb3Rxu0rGzlOQnZKImPvpD4yOqcuAnCAUA7NXQ5i4ybhNq7WVpZCgpBKlAauA4n5LgJUJ3pwWsi1PNXb9W6/zP0ouxAc4HFaMo/mnICeRovvH++Mo3eX8JUqxUF69adhCOZ5w8bM7j2rUtpkpZYeh+6eHX5OMTVc1aTT8WUQv9XCSIiMFtv1eix+OjpMjGZdJRH3WIyNNmMu/it4xI1bv3R08XGO7c4+EXNmcaRqnxxWac8FbTwnpHI7HLmV4eoYNjdUNqzKcIDylmbQEFVHZpcv2EPHV05SeUy0OlBfhAMqCUFG/Y0r/ekMqETzZFJQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MgAsgsjHRP7EACn8XdeluJuZnDeCrbDFUNWSYrQwf9EWPvc2U3QCpNuZkEIaAaJj/uBf1y9LRIE73ZY7Aa7OmpVH6obv5AWBqMG9ftapYrjxF4Q6gJnZ+a7FnX9LxPqeI7iebPZUFW8Ef9uxf1hC6JHIYOgO8XyZTZUcnO+yW7L6rFKvwUPu+nspeVeL7Sswf6cm1CW/YRkZPw/NsQFll+LUq0uKqJSB2zM57xarS2E7XrASFjbUhMEglGhyzHy//TXZzT+PSZ6BVvngatGOjkMHQiHCDkxCKIZGVWgOQWvAq9WTsRgfVFOjyEgNI9SiA5EVGjNnAsdy1kUPw9Btmg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: x86@xxxxxxxxxx, Brian Gerst <brgerst@xxxxxxxxx>, Arjan van de Veen <arjan@xxxxxxxxxxxxxxx>, Paolo Bonzini <pbonzini@xxxxxxxxxx>, Paul McKenney <paulmck@xxxxxxxxxx>, Tom Lendacky <thomas.lendacky@xxxxxxx>, Sean Christopherson <seanjc@xxxxxxxxxx>, Oleksandr Natalenko <oleksandr@xxxxxxxxxxxxxx>, Paul Menzel <pmenzel@xxxxxxxxxxxxx>, "Guilherme G. Piccoli" <gpiccoli@xxxxxxxxxx>, Piotr Gorski <lucjan.lucjanov@xxxxxxxxx>, Usama Arif <usama.arif@xxxxxxxxxxxxx>, Juergen Gross <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>, "Michael Kelley (LINUX)" <mikelley@xxxxxxxxxxxxx>, Ross Philipson <ross.philipson@xxxxxxxxxx>, David Woodhouse <dwmw@xxxxxxxxxxxx>
- Delivery-date: Fri, 19 May 2023 16:57:55 +0000
- Ironport-data: A9a23:jKZWe6lHCqBpyzNxCaWfjgno5gwLIERdPkR7XQ2eYbSJt1+Wr1Gzt xJOXWyDaa2PNGfwLd92a9vi8x9S6pbWmoNgGlZp+CxkRSMWpZLJC+rCIxarNUt+DCFhoGFPt JxCN4aafKjYaleG+39B55C49SEUOZmgH+a6U6icfHgqH2eIcQ954Tp7gek1n4V0ttawBgKJq LvartbWfVSowFaYCEpNg064gE0p5KyaVA8w5ARkPqgW5Q6GzRH5MbpETU2PByqgKmVrNrbSq 9brlNmR4m7f9hExPdKp+p6TnpoiG+O60aCm0xK6aoD66vRwjnVaPpUTbZLwXXx/mTSR9+2d/ f0W3XCGpaXFCYWX8AgVe0Ew/yiTpsSq8pefSZS0mZT7I0Er7xIAahihZa07FdRwxwp5PY1B3 aAJNi89Zxudvvvs2YLrQMRvrcoBFNa+aevzulk4pd3YJdAPZMmbBo/suppf1jp2gd1SF/HDY cZfcSBocBnLfxxIPBEQFY46m+CrwHL4dlW0qnrM/fZxvzeVk1Q3ieC0WDbWUoXiqcF9t0CUv G/ZuU/+BQkXLoe3wjuZ6HO8wOTImEsXXapLTOzgr6Ez2wD7Kmo7Ui0ECUG7sdSDuhScBvheN GJT/AU+hP1nnKCsZpynN/Gim1adox8XbNhQDuI9wBiQy6HV5Q3fDW8BJhZFado7pIo/Xzlv1 VKTmd7tLThuq6GOD3Ob+K2doT67NW4SN2BqTSQNUQIB4t+lpYgpjxTGVf5qCqvzhdrwcRnvw jSOhCsznbMeiYgMz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qKo+Y6GWyrEPYBmBLX5FR7dq++UUHgnhlCqa3DGPLwW7fJxLLvmTqUugU ZU2f4RISgi00zuIonYDH6kQLrRonfkvot0fZrfsIm1AuLyaxtZ0jK/tGuHFrDdDa71TfQwVc +s9qxrq/rSsuEZp
- Ironport-hdrordr: A9a23:acvBjqoRXn9NRvA2wqBf36kaV5o8eYIsimQD101hICG9Ffbo9f xG/c5rtiMc7Qx7Mk3I9ursBED+ewK4yXcY2+Us1NWZMjUOyVHJEGgK1+KL/9SKIUzDH4Bmup uIepIObOHNMQ==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 19/05/2023 5:28 pm, Jeffrey Hugo wrote:
> DESCEND objtool
> INSTALL libsubcmd_headers
> CALL scripts/checksyscalls.sh
> AS arch/x86/kernel/head_64.o
> arch/x86/kernel/head_64.S: Assembler messages:
> arch/x86/kernel/head_64.S:261: Error: missing ')'
> arch/x86/kernel/head_64.S:261: Error: junk `UL<<10)' after expression
> CC arch/x86/kernel/head64.o
> CC arch/x86/kernel/ebda.o
> CC arch/x86/kernel/platform-quirks.o
> scripts/Makefile.build:374: recipe for target
> 'arch/x86/kernel/head_64.o' failed
> make[3]: *** [arch/x86/kernel/head_64.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> scripts/Makefile.build:494: recipe for target 'arch/x86/kernel' failed
> make[2]: *** [arch/x86/kernel] Error 2
> scripts/Makefile.build:494: recipe for target 'arch/x86' failed
> make[1]: *** [arch/x86] Error 2
> make[1]: *** Waiting for unfinished jobs....
> Makefile:2026: recipe for target '.' failed
> make: *** [.] Error 2
>
> This is with GCC 5.4.0, if it matters.
>
> Reverting this change allows the build to move forward, although I
> also need to revert "x86/smpboot/64: Implement
> arch_cpuhp_init_parallel_bringup() and enable it" for the build to
> fully succeed.
>
> I'm not familiar with this code, and nothing obvious stands out to me.
> What can I do to help root cause this?
Can you try:
-#define XAPIC_ENABLE (1UL << 11)
-#define X2APIC_ENABLE (1UL << 10)
+#define XAPIC_ENABLE BIT(11)
+#define X2APIC_ENABLE BIT(10)
The UL suffix isn't understood by older binutils, and this patch adds
the first use of these constants in assembly.
~Andrew
|