Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2846369rwd; Fri, 19 May 2023 10:58:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7D1vPGHz76FdaA1xUs8vGHWiFVmP+6iGXbikgn8i+2vN6ehXEGPKZLMitx9QytOUbRH50z X-Received: by 2002:a17:90a:f2d1:b0:24e:3a0a:9b48 with SMTP id gt17-20020a17090af2d100b0024e3a0a9b48mr2845107pjb.21.1684519091553; Fri, 19 May 2023 10:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684519091; cv=none; d=google.com; s=arc-20160816; b=zPYB3PAGo/8ooQyPxr/9KRRXMeFbEp5fTL36BZLIpbNPktKbHNSOvlEvlv1zGulyvv OP/rHcO4en7bcl5JL2DoKt/60uBtq7amMYv39ratv9Pwqw8SntDzF2ArJM+4bwECEgnw zisceJKjyu3AdiA92Jjc0mJx94Fnu713yQYbTCMjucvhQr5W8uIRkv9a+SUfi+CKwbIx jiIN1zmHgrK385orLWUfZXvdU2nG5PnIwnWIEitquA39Ill6wKG4TZTrcQt0QolNnF7V Swx0U1Lm8oeSczgGFI0FY1VehX5bCQ8a05OLUy7/cJEBQ/wf/XjJdHDz24n3FicC+DO4 W6fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=eudHzY6WP7JinnfOr70AykPZvSkkpEMxuNg8hMfppYo=; b=bu04uh8O3z5Cdr39Ab/3oKacm9Ld/voIpaceOnq8CyhLU0+4M3O+CVwyz74G5s4KuA JT304Dq5pnAIkMW4u/w/V6vBxJcV4qp3uCMe4VZKm0Muc6/f1e1EmfxtclSwv48FS9oD NZAzg0CSvKHA0s9QyZCubmbQVGODbrQynyVhjgS1PKgC7rV6GYtJ4RlbbkPImFwJDAIM 6oaFEVMyVZrX4rolau+7r94+aaR8Ot2bovh4mCjJ7VOqJM5IG/7ifbKXoaQMqpRKRtxo lN+aIhQ1Dg4+frjirxR1rFpWSEJcJLc/qEOvQg3quvwMzQZcnj/Sb688ljauDHHvssbM Ddbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DMV0U+nI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e3-20020a17090ac20300b00252b14e5ce4si1853020pjt.190.2023.05.19.10.57.32; Fri, 19 May 2023 10:58:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DMV0U+nI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231173AbjESRqk (ORCPT + 99 others); Fri, 19 May 2023 13:46:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230426AbjESRqi (ORCPT ); Fri, 19 May 2023 13:46:38 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B38113D; Fri, 19 May 2023 10:46:35 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34JFMfDd012512; Fri, 19 May 2023 17:45:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=eudHzY6WP7JinnfOr70AykPZvSkkpEMxuNg8hMfppYo=; b=DMV0U+nIXEVCY+aepXRfFYvdfBeVO+N4QF0je1NreoKWWMhdhmNCmkCFY69GHp3G1MUl W4uLhQQIfJlWzCmL2UlwpB67SLBLlnvd3eaMcPBXY3xpzTd4DPesNiwRSj6AMqZBspVo 08MDwx36HiK4jQA4XpyJQxV1CWo2sx0aEh71PEANzSjVcRsNE8URDp/9OH/+p2Kh4/Bd u8dY8/MWw20kSLCJ06My3a975QQQC9ySq7nhEqEvzzuIHXWUfJmJ+Gzj0a0CNBUiRPUE dcRr1k8AfSKrqIM3q0pDGScz3hGnOYsEF+bviVQ6TCuLFhAIK7GTUA+1LUQeisPdvBFr pg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qp95v0w04-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 17:45:03 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34JHj1wR008027 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 17:45:01 GMT Received: from [10.226.59.182] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 19 May 2023 10:44:59 -0700 Message-ID: Date: Fri, 19 May 2023 11:44:58 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [patch V4 36/37] x86/smpboot: Support parallel startup of secondary CPUs Content-Language: en-US To: Andrew Cooper , Thomas Gleixner , LKML , David Woodhouse CC: , Brian Gerst , Arjan van de Veen , Paolo Bonzini , Paul McKenney , Tom Lendacky , Sean Christopherson , Oleksandr Natalenko , Paul Menzel , "Guilherme G. Piccoli" , Piotr Gorski , Usama Arif , Juergen Gross , Boris Ostrovsky , , Russell King , Arnd Bergmann , , Catalin Marinas , Will Deacon , Guo Ren , , Thomas Bogendoerfer , , "James E.J. Bottomley" , Helge Deller , , Paul Walmsley , Palmer Dabbelt , , Mark Rutland , Sabin Rapan , "Michael Kelley (LINUX)" , Ross Philipson , David Woodhouse References: <20230512203426.452963764@linutronix.de> <20230512205257.411554373@linutronix.de> <16562305-3bc0-c69f-0cb5-1b9da1014f19@quicinc.com> <0cafbfcb-2430-6d90-ee77-4e5de08ee1da@citrix.com> From: Jeffrey Hugo In-Reply-To: <0cafbfcb-2430-6d90-ee77-4e5de08ee1da@citrix.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: wzgfaxTFUND7jtAhGx51l9t9Ic-_fDjs X-Proofpoint-GUID: wzgfaxTFUND7jtAhGx51l9t9Ic-_fDjs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-19_12,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 phishscore=0 bulkscore=0 adultscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 clxscore=1015 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305190152 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/19/2023 10:57 AM, Andrew Cooper wrote: > 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. Ah, makes sense. Your suggested change works for me. No more compile error. I assume you will be following up with a patch to address this. Feel free to add the following tags as you see fit: Reported-by: Jeffrey Hugo Tested-by: Jeffrey Hugo -Jeff