From patchwork Tue May 23 17:14:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kelley (LINUX)" X-Patchwork-Id: 13252701 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C972C7EE26 for ; Tue, 23 May 2023 17:15:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=c+CCxBZqDjRrxfzO0pBl8Gp3dWhYQukWklRAriEg6KY=; b=w5tZR9PPiczA9O Q/LtOfqu3E3mQB+btkxFr/Myiw72rzX2JLFRLHAt8MDPYkmWfITZqAI7HjZ+NKaIkw4T+9fHZK4va j3wp/5JGLB7Xx6XrwTexHP/Y9XSMy/qoYHgi370E2dRcEP7FS3UKz3FV2cuv8WSY6eq8i7j/1Q8as 7C8YY+plnvSfEb1Fk8Km/y/YQrG+zVrC6CdypiShv81PndG6dZEw8sI713ODEPFLzs3UM+l2W18zt bjJcaoWEr2GyCYwyuCqIdHoj3TAv5CqwkijEViJ369WNqpmsWRXj4/n2X6fb0dKNOCK9HY4xUZRcd DIUJx8S5yzivCrqREc4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1VbP-00AvKn-0k; Tue, 23 May 2023 17:15:15 +0000 Received: from [2a01:111:f403:c111::] (helo=DM6FTOPR00CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1VbH-00AvHO-2M for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 17:15:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yk8G+0l8Clkq50x5IBrqOtNFDaQIvf6IOb5Eom2Ug4cjmJIfha/g2bkjizq0PQmYehI2S2l26UHPsc8ovTmQDfoRvTBKsBG62BegNKvZEVdO9X9j/eV/boIWhuswzOgLYYRf8q2OVDkJc+cEiz3YR21onxK2r84tR5GxCWy9g2D1F2kRrwrChtOCwt+yX5gFhc+gR2IQs30xQRoxhjl6Q4/A7otl/0+DsZZbncrxkrKWnxwGe6bdTxxR5eES/2F9TfY6GpA3zfgtg4gCJEyC+AOXuz5znHfcwABYuGCnBkfOvcKhhxi8JKA7iVtpdNNLkKGorrxnp8s+EzsGyBOg4A== 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=4gk7P7mm085GcOFy/QlJ6VB8iwPpBiBi9YxJ2vj1nW4=; b=l672DVXn+Yi/UevSjii5ZD9M1wbPIOIdLSp/ibhdTZQMijbnUJlsZQKCsbPJxGEemtLEQBrr/DXHwT3IwF0yMwwxCA0tXaCS42OZhTBqBKOqIVtY9Ptqg5EdnF4+f1CSvw+437BSkhoX3arfPntU832lHSLot0Px4NuoWCUStx5Um9N/+hM4d3AsUxT6nDohCkb5pWDIBJTxKiAjHnu93YvwfQhF3MKnxerCAqVcQfDw89XuFu8b9ejYGRTUPhDOi4qaeq2wHsZdmEioZO1x/EuHuxRMZZgn3149ZLh3U5/JU06FkkhGM95vMaoCXmTqaG7Nh7m5jxnkV+cNUc9lew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4gk7P7mm085GcOFy/QlJ6VB8iwPpBiBi9YxJ2vj1nW4=; b=FlhlveoAGJ+nOGpnMeCpKHh4P+mAQLTydN9J4/d8qvUHlttTnaWtWaLS7NXi2oNv13DuCnzqw7TVDtFLCNu/pAzwhvL83bgmKhP0F/ffJuqa6SAbedch/nf64/YXsif0gb4kt+rbztsLzn55flmKn1jMEINc2jz03Q9uaWPUoAE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; Received: from DM6PR21MB1370.namprd21.prod.outlook.com (2603:10b6:5:16b::28) by SA3PR21MB3866.namprd21.prod.outlook.com (2603:10b6:806:2fb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.6; Tue, 23 May 2023 17:15:00 +0000 Received: from DM6PR21MB1370.namprd21.prod.outlook.com ([fe80::b7e9:4da1:3c23:35f]) by DM6PR21MB1370.namprd21.prod.outlook.com ([fe80::b7e9:4da1:3c23:35f%6]) with mapi id 15.20.6433.013; Tue, 23 May 2023 17:15:00 +0000 From: Michael Kelley To: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org Cc: mikelley@microsoft.com Subject: [PATCH v2 2/2] arm64/hyperv: Use CPUHP_AP_HYPERV_ONLINE state to fix CPU online sequencing Date: Tue, 23 May 2023 10:14:22 -0700 Message-Id: <1684862062-51576-2-git-send-email-mikelley@microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1684862062-51576-1-git-send-email-mikelley@microsoft.com> References: <1684862062-51576-1-git-send-email-mikelley@microsoft.com> X-ClientProxiedBy: CYXPR03CA0065.namprd03.prod.outlook.com (2603:10b6:930:d1::7) To DM6PR21MB1370.namprd21.prod.outlook.com (2603:10b6:5:16b::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR21MB1370:EE_|SA3PR21MB3866:EE_ X-MS-Office365-Filtering-Correlation-Id: 60c2af2a-798e-43d3-5358-08db5bb13dba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EhrF2z2/IgBo1t0yJ4rp7EEvUsWcN2mknhMqS9cweIjmcHscvS2GmwfeBtEODepCZ/gu93nw1eqwa6eZdSc8aXhRQ75LkUruw0IeH+iKWfVMhj3aWvdAD3CsfMo0G5Bfqj34laFHYDt7yJKK2ytOJPRBnGeom27iuRTp5cBqVnbHD+JeJks1hdb+omvyciXgFtSa79s0nA5nxYLK/yJqCmCmJNRlVzYu6XxUiSDb2xKdCJvumCRfONjWeEZQwPyAsdzMUjMQ71jIfxKbsEgAKyvRv80A7LvtaKuh6h6tMy7kEh8yxs91cCweAm/Xj6Sdu/nPtquIl8skDj46SDdbSTpeLXtWYiAy/CQYqeDg7HD80W61FEpQBRTZ4tkKlCdn9G+i0o1gJ99QIj7LJqD1JnohJtAcLujraeZN6eRLKMP+DLX/dW254KloAjgfmb/U7n02BXjLPjsmcyCay+MkRJoJMoUayl48uLC8zavmO/21FbnHmOm65QEcXnp1SDFmLdH0Qmmi2xrPY1FnkqYysRzG/xArRLXJkMBd8i6P+cb17VerNxgo+kQlHGqs198OHFDC7UvOXMoBFjZU4IrBMTzhc6nVFZ04zKesfOiISYmAsV2zkbETzef0lrEBrLRr4rbaULV0/kp1N4+r9WqzGTIXf2iab7uWpjbU5CpO02Gwp05DM4G4iRzxTih1CKLv X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR21MB1370.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(39860400002)(366004)(396003)(136003)(376002)(451199021)(5660300002)(6486002)(6666004)(66946007)(8936002)(786003)(52116002)(316002)(41300700001)(8676002)(10290500003)(107886003)(478600001)(7416002)(4326008)(66556008)(66476007)(2906002)(4744005)(186003)(6506007)(6512007)(26005)(82950400001)(2616005)(83380400001)(82960400001)(36756003)(86362001)(38350700002)(921005)(38100700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AbT7skfBffANSrpGwxja+Rl+6kWkc83P9IcOxGwd1TCHlS50kOd1XaPai8G1ZbTrPnB4aYyriPgKsSnNyYjVMc+y/tofqKXIpSyVKmx7yIEWSge4vFkJRUNjYhBYLH0FEYFSAEPMpI8Qt9bumjT2TMLBch3MUAgnGMoUalfth91RSAa6i5vHM36mFExEJrfou+839Cj8tCx7bSy7ogs94lzxHFXyJHcUG3iOf5h6mDewyneQhhWBgjSO/oTggb8xyVbz08p1IBOLL+GZ+BcCZ/DtWsvZnvmQv3i0q6FheOBEH7J8FhJ7lHwJpbH47VAyEunseMJ047xEZcS8+pQeSGLGe7gd4Q5HfnIfPdl50TFgp0wNXaR3CaDmnqIW6Daj+oh+QnQ9efTaOPynYBquoTmL9rUqNL6JbveKodeGlyTQwyai0oLy/2wF+T4USz/OAH/e6ss5eZeSXKZbHhTfmIs8254wMbyeKo/YDoHVniba9wVrnSZ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WmxMbgaKRK+xatyPuP70JaJR2rt1TQGXg2Kv6L9jny X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60c2af2a-798e-43d3-5358-08db5bb13dba X-MS-Exchange-CrossTenant-AuthSource: DM6PR21MB1370.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2023 17:15:00.7278 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: D8oyL+4Edss9HBk//W0Q1AjatefwftlQQrk7FBl0i2fnVWGMbjNzncLEgrztxsvZAzpAjR9scJu6v70KgLNnug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR21MB3866 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_101507_772987_E51B9E86 X-CRM114-Status: GOOD ( 12.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org State CPUHP_AP_HYPERV_ONLINE has been introduced to correctly sequence the initialization of hyperv_pcpu_input_arg. Use this new state for Hyper-V initialization so that hyperv_pcpu_input_arg is allocated early enough. Signed-off-by: Michael Kelley Reviewed-by: Dexuan Cui --- Changes in v2: * Fixed typo in commit message [Dexuan Cui] arch/arm64/hyperv/mshyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/hyperv/mshyperv.c b/arch/arm64/hyperv/mshyperv.c index a406454..f1b8a04 100644 --- a/arch/arm64/hyperv/mshyperv.c +++ b/arch/arm64/hyperv/mshyperv.c @@ -67,7 +67,7 @@ static int __init hyperv_init(void) if (ret) return ret; - ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "arm64/hyperv_init:online", + ret = cpuhp_setup_state(CPUHP_AP_HYPERV_ONLINE, "arm64/hyperv_init:online", hv_common_cpu_init, hv_common_cpu_die); if (ret < 0) { hv_common_free();