Message ID | 1684506832-41392-2-git-send-email-mikelley@microsoft.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 4B368C77B7A for <linux-arm-kernel@archiver.kernel.org>; Fri, 19 May 2023 14:35:08 +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=iOSfBecuVJAihMXtXEG+sJV4qwYBIJyVdYk4Y6CBcTE=; b=Dyu0bkBCITmWsH X5/4MjwU2pwPVY4qNLM7VrB++7o8VF7MY/dcYoIOuXPfyZZOX4kR0prijmsSI2C7LbMOFd3GmZjxS N6llLRDuQ+UKZIQ/KPt0DpE6reqLGj1gJhZL9fauxgFJG8DNlKBx/uc7sTH+5KeTawwa2hIRK+pox gVdbR+nuvpOGQpsCQ96h9PsFGFZ2xsLEujgjc21qqSEe8TazMtg5Rxs5YNLPdiEso0P2N8AtD6bJQ iE1K3rEW9q/1cwt1bIutTtx6UXdS6kjjJycC+49qFg3aSTlEgEruQuvWyeqJq7uypdxHobi07kLH/ ggGqNdMgow2jZWWiGUVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q01Bt-00GUtX-1e; Fri, 19 May 2023 14:34:45 +0000 Received: from mail-eastus2azlp170100001.outbound.protection.outlook.com ([2a01:111:f403:c110::1] helo=BN3PR00CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q01Bl-00GUq8-1P for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 14:34:38 +0000 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 <mikelley@microsoft.com> 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/1MOvTLPZMuXLpOrI1fRI2O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cu6EsOG5xr1psPMCdZdGP3JMlNMWcW07XSIl+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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230519_073437_475111_D38268B7 X-CRM114-Status: GOOD ( 12.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[1/2] x86/hyperv: Fix hyperv_pcpu_input_arg handling when CPUs go online/offline
|
expand
|
> From: Michael Kelley (LINUX) <mikelley@microsoft.com> > Sent: Friday, May 19, 2023 7:34 AM > To: KY Srinivasan <kys@microsoft.com>; Haiyang Zhang > ... > State CPUHP_AP_HYPERV_ONLINE has been introduced to correctly sequence > the initialization of hyperv_pcpu_input_arg. Use this use new state s/this use/ this > for Hyper-V initialization so that hyperv_pcpu_input_arg is allocated > early enough.
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();
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 <mikelley@microsoft.com> --- arch/arm64/hyperv/mshyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)