Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2716057lqz; Wed, 3 Apr 2024 06:44:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU03LywsrNhIZ5i69QciR45TMeWcHPlzmf7AogACuduhv0hfSZUrXHJ6D6GGlfdVZPdwFfe/qiJ7pPU8Y1g90YNjSg/viadaPexevTrcQ== X-Google-Smtp-Source: AGHT+IEh9ehNbJKYznTjnXmIe5OgbYC3p2L3HoqFLdjrAgxdwpPudGiLrRQQy4xQLzIPO7w7tPox X-Received: by 2002:a50:a45d:0:b0:56e:ddc:17ad with SMTP id v29-20020a50a45d000000b0056e0ddc17admr627692edb.30.1712151869162; Wed, 03 Apr 2024 06:44:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712151869; cv=pass; d=google.com; s=arc-20160816; b=tmVM0jrc7b93vDKO+4926fkUU7jQjWtOjYQnvhlxRo1WqPsy18HRvi9/JfL97QC3h1 AkSbdrFQ+V2RQwJi15zDFze12MIUiCjN+BN8AhJ9cMgzR8xiXBwIwBQsoSt7OIwvRvWW xp3OCSHv+xwikMeT7v8ReGUjnZzTDHRItfXQiZoiI2dFGQG2Tn/xr385EMtKeN+J2Xll +QCjcBZsEeDmd3m9IFSWJxTfnQaFR45DwPcL2pbj4hlnHkn0LDOlBhUFusxJ54fk4XcI KSZFJBRQlUYT8cG75W2M4UDg+O0/sHT09e+ALoH3R1XtdqciLjtNslOCC/vCDOHySncC n2+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=M9M3U43yBhvawIiX8F7VSrqDjYkQZYD8gcHsh1OqZgY=; fh=X/+sO2rn9uaBGZccaLUI8WX7qIiZyrJR+4LG2YFCceE=; b=VSyH8dS7vYNL8ThpibrCdHjr3dmnwcqWccanTdvCjj/quQyr27Az1mNq3lG8RF4ifg +XuoNMF84v/V/6JCLh/GLnYsIQozBaibPiwAcl1llWnXHQQfwN6eS2q35DxX/cp8Bmk8 g/6Wo6snCmxz/BiUY/D6vbU4cSoKlboATQ+TYaqnW1BOBn9qcc/4vEPg7JrkWSqAOdkQ OLf62cw05lzpxrZDeC7mU2hZo+9pTd3vu9gzN8/GewwMBozTgDxbr4bFre8o0wtvOgtA zCmYjKLXmALENoy9gsYMcqAp+GIKr/cTys0mJpdMM2SjbG5awq6dcZPpW125XSqxFwGH Gs2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-129865-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i20-20020a05640242d400b0056dc828f7c5si4073169edc.288.2024.04.03.06.44.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:44:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129865-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-129865-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 485741F21581 for ; Wed, 3 Apr 2024 13:43:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 891871487F6; Wed, 3 Apr 2024 13:43:45 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EAF114830F for ; Wed, 3 Apr 2024 13:43:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712151825; cv=none; b=ThggTGGoqnOgGGHp4VveTbOVqJa30CMnuGMRoq2KiUH/F4Y57AHp1BWQLQEkAjhHaGXYvVs0LIwneqNTq35NWSU5jSZGlIL948Jb3HBMNLa+rJcRnxlugqkcoTq5+cZddKEH6B9RLTyanNC0l2/ROVM9DlBWISKyKeslQM8GEi4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712151825; c=relaxed/simple; bh=pmjTyGe0FsdT8oYkfLE7cOWfangICUybcbS8VHpZY/c=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=o9FhJMcyhajOachIY7yXnoY+z9TRPFxo3yN7FZP2uL6t/p1JfJAbKEF9Aaz4PznpShE+p4ZRqCmjUhfjFwD9OYuiKHpUVAhegPoQa5YOAjDznqS62F0E9adFFsTiJKiGYzVqOzSwzhAm/zIc+qQ7+/AlP997OATsRHNv6PWiQEo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4V8mC20zpGz67N4y; Wed, 3 Apr 2024 21:42:22 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 99097140CB9; Wed, 3 Apr 2024 21:43:38 +0800 (CST) Received: from localhost (10.122.247.231) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 3 Apr 2024 14:43:38 +0100 Date: Wed, 3 Apr 2024 14:43:37 +0100 From: Jonathan Cameron To: Guenter Roeck CC: Alexey Dobriyan , Thomas Gleixner , Peter Zijlstra , , Subject: Re: [PATCH v2] cpu: mark cpu_possible_mask as __ro_after_init Message-ID: <20240403144337.00005060@huawei.com> In-Reply-To: <7c5dd81f-46ee-43a7-8359-f713a027386d@roeck-us.net> References: <41cd78af-92a3-4f23-8c7a-4316a04a66d8@p183> <11d7a34f-909b-4923-a15f-d32015463c35@p183> <20240327181053.0000481d@Huawei.com> <7c5dd81f-46ee-43a7-8359-f713a027386d@roeck-us.net> Organization: Huawei Technologies R&D (UK) Ltd. X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.29; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500002.china.huawei.com (7.191.160.78) To lhrpeml500005.china.huawei.com (7.191.163.240) On Wed, 27 Mar 2024 11:36:28 -0700 Guenter Roeck wrote: > On Wed, Mar 27, 2024 at 06:10:53PM +0000, Jonathan Cameron wrote: > > On Thu, 22 Feb 2024 14:19:35 +0300 > > Alexey Dobriyan wrote: > > > > > cpu_possible_mask is by definition "cpus which could be hotplugged without > > > reboot". It's a property which is fixed after kernel enumerates hardware > > > configuration. > > > > > > Signed-off-by: Alexey Dobriyan > > > > Causes a crash in this path (via CPU HP testing on qemu) > > Pretending to be an AMD Genoa, but I doubt that matters. > > > > Can you send me the configuration, qemu command line, and commands > executed ? I'd like to add that to my test setup if possible. > > Thanks, > Guenter Hi Guenter, Great to get some regular tests running on this. I haven't minimized this that much, so probably don't need most of this setup. qemu-system-x86_64 -M q35,cxl=on,sata=off,smbus=off -m 12g -cpu EPYC-Genoa -smp 2,maxcpus=4,sockets=2 \ -kernel bzImage \ -drive if=none,file=/mnt/d/images-x86/full2.qcow2,format=qcow2,id=hd \ -device ioh3420,id=root_port1 \ -device nvme,serial=deadbeef,drive=hd \ -nographic -no-reboot -append 'earlycon console=ttyS0 root=/dev/nvme0n1p3 fsck.mode=skip tp_printk maxcpus=4' \ -monitor telnet:127.0.0.1:1235,server,nowait \ -object memory-backend-ram,size=12G,id=mem0 \ -numa node,nodeid=0,memdev=mem0 \ -numa node,nodeid=1 \ -numa cpu,node-id=0,socket-id=0 \ -numa cpu,node-id=0,socket-id=0 \ -numa cpu,node-id=1,socket-id=1 \ -numa cpu,node-id=1,socket-id=1 telnet 1235 (qemu) device_add EPYC-Genoa-x86_64-cpu,node-id=1,socket-id=1,core-id=0,thread-id=0 Jonathan