From patchwork Fri May 19 14:33:52 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: 96463 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1288109vqo; Fri, 19 May 2023 07:42:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4DmoorzXuXfVTA1jQDHITQqQeFxAfXCeCihy7+njYm6xzav9A1zavIuFNK/ceoFL+S8r2D X-Received: by 2002:a05:6a20:1614:b0:106:8534:514 with SMTP id l20-20020a056a20161400b0010685340514mr2776685pzj.43.1684507354728; Fri, 19 May 2023 07:42:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684507354; cv=pass; d=google.com; s=arc-20160816; b=ldRiRJS4iH9xTxBmsm25OMhYDgOYaK9yRHczLiLLO70pP4h406zJWykM+vBSGpz3I+ XuAA+lYW5xksPx4qH3We8bT3x5GYX80diDGtUMIO2N3eJ7LW0e+8WfHqxV2HqGmLH7mo DD8YqaPvBYHECgdhkSey/MJi4KYoi0GqUijws3Wle61jnPH8s87JAWvOZe+U5JpTjFBx jh8f7f3dwQGunEtnz+A6uJ91CDjsS8v17/klQGieRjhIqigxJkF+rPv2MtFX4rXeSRQ5 fR2lGdLZA+KJJ/HKoYuBdNH9HgrKCJE83NFSD4goeOVWOimjO1d0Xv1FtSpcsO95FUl6 hXmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=TVLCXaXFVSydw+sLVl3pn1lZjRPAvTpnNGR1Hbdmeqc=; b=0JEgBWihYq5S0N2nXyprAiPjV69J7/W9ICtdU/ZquBnqM/H6bOVYq87CmHTbb6A8Eg rpchGRQRncsiL03khrkeHr9KvH0aHFsASpOw+YppKCkAw54BFXK9UPxKB6fM4/JT8J6b nFzcMpxcN3CM4kyi99tcUk/o4qLYQs/4wkDYU5euWmPEe7mbDbvTEzOzS0FpceCuZAzm mcoHwCWsYwmRg9nf9PIlRhNE6IFcZzn7nfETm8bLFnx0kiIT5NkXWOBc15H3IKInCUU8 a6VPjw4vueEsVZ/2xRZS5NXSXdeabIxquYTJUOAUuJwXpC4KJnOl67gAxGJiGyx+Soqv l6oQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=AkvEOUB6; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020aa7998e000000b0064caa26723bsi3942054pfh.318.2023.05.19.07.42.19; Fri, 19 May 2023 07:42:34 -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=@microsoft.com header.s=selector2 header.b=AkvEOUB6; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232156AbjESOeh (ORCPT + 99 others); Fri, 19 May 2023 10:34:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232149AbjESOed (ORCPT ); Fri, 19 May 2023 10:34:33 -0400 Received: from BN3PR00CU001.outbound.protection.outlook.com (mail-eastus2azon11020018.outbound.protection.outlook.com [52.101.56.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D19469D; Fri, 19 May 2023 07:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K6EnuYt1+2wh8cGH+ptqq1OuatRtWtLUXhqIRmP7X1x6O/l9PkcwyEkdv7ltDO/XufkrHY1v6L41J0LajtbkOyjS5mY6MDV3BynxWCmz2udpedLZAtvJK/pM+IkgZ7htKP9Zo1mlt80Q8Loc/5+znTbtQMTXSpN7lX8cflMhxE+0cBGbug5PN9mvqpapg8B5uWsOJ7wp3DcEBipgFNS5djjs2G2myBr1uo8lkiUGDLrkce+sPdGlHAXGwKpsIP+6rkXThTIo768zWZHRMmOiW1BZQgeAuz5av/HU56n1dXxGnXiReddaUkRqJF/ShRQXw2WfUu7xo+JQR61QKowacg== 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=TVLCXaXFVSydw+sLVl3pn1lZjRPAvTpnNGR1Hbdmeqc=; b=OOhmprkkchT0W1wPHmK0zxri/IgEOWPFJoyKuqqJepN97iFbQbBbrwAireMKAmCvfTOPLQc0sE1pEnDinNuf4TGJVUxvwXZazMWAL29vTeizgtmr+nKD9VMHzLrDVwrGKu+fQC/n5ccO3QTIlBseX8i9HfAmqIW7/Ry2oesxJo5xIXckIxPE/JavQ9bb+hCSC+uKlYz+WwgPqHr2nTNQhcBCB7xCpStKK+tQYDAAJ9bxMA6XN6/DMQz+tgeX70eOV5P/93Y8PoR803FkrxCwO9kuxoYlMqmajGewW6p3BrIIiSpJO1a/cUIlRIDPjd9goI93GnE/50X+MLX9Ia3m/g== 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=TVLCXaXFVSydw+sLVl3pn1lZjRPAvTpnNGR1Hbdmeqc=; b=AkvEOUB6CDoGIDMbbA3E8KgQfzytcL+fCcSVwDOFaLGuSUZTX5h6JVmYrpyGxFzlUZ6nPu5siLSqG24Jdjyupn7YOrFbOxNVN1eFuw9tXJVhrvcWbuCGEDOC50QQP2jayPaxPt3wW64DOt63ms8T8lkAXfYAZqQRNY9XsiGcsnE= 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 DS7PR21MB3391.namprd21.prod.outlook.com (2603:10b6:8:83::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.7; Fri, 19 May 2023 14:34:28 +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.007; Fri, 19 May 2023 14:34:28 +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 2/2] arm64/hyperv: Use CPUHP_AP_HYPERV_ONLINE state to fix CPU online sequencing Date: Fri, 19 May 2023 07:33:52 -0700 Message-Id: <1684506832-41392-2-git-send-email-mikelley@microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1684506832-41392-1-git-send-email-mikelley@microsoft.com> References: <1684506832-41392-1-git-send-email-mikelley@microsoft.com> X-ClientProxiedBy: CY5PR15CA0166.namprd15.prod.outlook.com (2603:10b6:930:81::14) 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_|DS7PR21MB3391:EE_ X-MS-Office365-Filtering-Correlation-Id: 3fb9cd1b-956e-40be-bcb1-08db58762700 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B2SIFUBw6nI7D8qH2XbfJ6ZH5lbXsllcYVZuVsfRvWoBrzHH3Neawkm8gu2/4IXN/kEFjkcRR9iFGTVPsc8hZV32vBcNRizaLWJTfxwU2+YHCjqN0t2vAr95UwOFGw7zNwVganMc7wDGgcfZBJpHTUqUPt8bz0GnLBRwVybtuPEhZtrzjmheKSM5OpV0FOIwVqCrM/D2nOHYws+DMv0nHEgz3HLNIFPCM4AL4/dHr1A57SLOqCyNVBcgr51lwtqdhfRlIR3GilErWBeyZU+JlUn8RdB4dCYpshtaWSXhCNFBGH1I1Ndz0TBdhQ6kgldA5maAhYS1MNBSZP4CHonQtaNRWh7tbcyk8/T7BtJh+O/fkZW+bL71b47wxvYj2RPy2d2c6trXaLQxLHJTnD7yy65+VzqX22LkpOO5FEhPQdbBk6ZIxjE3+9moP+nHDhYYQlk1JEnY2H2Pvv4ERRjNuAZhLLudebJHZC07qVWAVTp655L+2qAzrkd0z/l0eWcWKXscZTgFN/feiKVfV5pkqNOp7Et16x5tlkovuWszaKX4hCuc0hNzP6YDEF8eOyfI4pP4x6Iai45DnzJAiqPnF4Pe5VBd3sfeUi4JRLAlcdXMvWzF01LNidfsS8+HJXVb3TwC1p51ddCZ/HPQb3pwVhxUHX96ZoHMg1Fav3Ze8J6Ti1l+S6QHW3jdIHuxTdkf 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)(396003)(376002)(366004)(39860400002)(346002)(136003)(451199021)(4744005)(2616005)(6506007)(2906002)(66476007)(6512007)(8936002)(7416002)(8676002)(83380400001)(107886003)(6666004)(26005)(186003)(41300700001)(5660300002)(66946007)(66556008)(316002)(786003)(4326008)(52116002)(6486002)(921005)(82960400001)(82950400001)(86362001)(38100700002)(478600001)(10290500003)(38350700002)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IqvNu5PeLNbTFabk57k3lAS5nU05hYW2LZvwW2KIU7VB5U2r/xaDiAdCpUHEPT5tDpuzUBeRocmt2l1rudlDMelaDT/DoURwcNBJ+fBC//pK/1zfpXHepyn4/5JZuhoBU8G7nCqUmuBGMxB1Q9UwpHb5RVGdKOng/libfGJWlUmmYIAVUBv7CKV5RT/6GLRdrQ+YYufDilLlYV3//pOOQVp+neB606Bsa15ry9UkSkuya3y9x9cQWTpXWYILjCzIvL8dUiIbRRR0VKg3rVLcHLsb2WNAVLPRLf2zfZmJWJ1+Rzo3mNhPTe15jXXXVmi7BxXvHpYxeFZLDYuffUxu4F+zNdu88ydt+Z2+r7+eMCIokN0PnlE8Mnh1Ok91+AjESlqQmWFsZLFIul/1MOvTLPZMuXLpOrI1fRI2OqVx0ZUpBt8LiJSVUsNU862cxfGyh+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W07XSIl+6O48rBg/WORImH5zGofJJwgM3ubcmo/eHmI1i+8XtoTRgjQyeaeFGdUhz5k5+ X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3fb9cd1b-956e-40be-bcb1-08db58762700 X-MS-Exchange-CrossTenant-AuthSource: DM6PR21MB1370.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2023 14:34:28.8292 (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: HnWXTGuzQlc5THoeOnsUP3h2SMScKCuSEcZTXzZwis2QiJQ90MdqLM+/1SHty2SaMYeooNr9dM7zArOApG+9cQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR21MB3391 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766333984369480323?= X-GMAIL-MSGID: =?utf-8?q?1766333984369480323?= State CPUHP_AP_HYPERV_ONLINE has been introduced to correctly sequence the initialization of hyperv_pcpu_input_arg. Use this use new state for Hyper-V initialization so that hyperv_pcpu_input_arg is allocated early enough. Signed-off-by: Michael Kelley --- 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();