Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp394564lqm; Wed, 1 May 2024 04:14:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVgl3M9mT1Pv/mGBpj3FnACQUlfGfM3RpTBaxJtTH1T1FXXS41o57WDXsC6YUYIfp2dDCDsks2PYnwlP+aloDE0gyDawe1MNQZPCKRF4Q== X-Google-Smtp-Source: AGHT+IFnnEGDRoiJcd8kXfr+1CtdskA6nPMlrgIAbXou/GJ+zPIDGGVGUxCUPjN4DOVXq+eJJZVh X-Received: by 2002:a05:620a:8319:b0:78d:3b3f:50cd with SMTP id pa25-20020a05620a831900b0078d3b3f50cdmr1915274qkn.65.1714562051592; Wed, 01 May 2024 04:14:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714562051; cv=pass; d=google.com; s=arc-20160816; b=cZfeXpxN6oQP1qtEYDT6aJV87eh+nig8UyWyNTxGt1I/8ciY9uEu+tVQGxY02eignk wNtzkIsebGKs2A7Ir7VrzyyF1OzXftR7rlCXyPcJmG+5npu2e7S3s/ZQFYS+Ml2DYg7E 1DnJNQOEZtbCHkoUFeFiMdTbSKae/6qbsIkf29ZaYyx+sZSBq9iix8lXZH5RKOtVC/cX K8ijJE4uGPJ8nQwmeFwDYIAe5rQt1l5DZYX6ZyBUyYMBljQecKBIZweljxyFHwTGbLlh RR7o6gldods0dWGl74LdNYqi69cxCOLpOKRYpgPYJ9sAEAda/FtzmJitGzYud38LAai2 pFNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=klJb2Hbg7SNB5TUedK1etVELNa99mZOeY3ik6uIdHp8=; fh=4gqyt/RzFcTyAL6yEy8rm2YLBpLEa2LlATdYUV/DH6g=; b=BOUSjvc//4u/D8rYxxD40NNtdVuA7CObz5gA3uAHyQtuK6caOQ1CLisk2uLdlpT412 kBd5DZxQi5bHiKJ/DnIcLj5YBH+ikSm4ljHbo3xPJwbSPrzCYnMZXAPGVanxhu7XbwOo bWfAMgfuERzQbLV+ARmcYyuyTuY9wbEf4NQ4BYgQyUbqOAggO3lwXTDyOqVOWWAOKPy2 VhRZNVLLBhs0SQDBvDN0ZWlS+ur+HUwxtxPfQMwCrpWSS29vsW0yjy29PAbX3jpnkleX RjeZNOhMHZL1l+yxwBp4YL6hqwrNSeITynvvkzb1XpWQZYFHJl3304D4+BA6xbr8ahZi aXFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cCrtPYnZ; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-165175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v7-20020a05620a440700b00790e27ae7ddsi10141342qkp.305.2024.05.01.04.14.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 04:14:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cCrtPYnZ; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-165175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3E8721C22B0D for ; Wed, 1 May 2024 11:14:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF2465C8E2; Wed, 1 May 2024 11:14:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cCrtPYnZ" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 0C4A655E5C for ; Wed, 1 May 2024 11:14:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714562042; cv=none; b=rqY5ijck1gI1NzG+vZ7Sda8c/hY8d/QffqqJ+FQeASDRpjbXfcN/2yzalmSyyia/wNnv7+4apUR8Y2udUS2JxI88RTSr1xNlDnj7zuS61HXvxQ8gqyeit0EVIDwFAqAycHDDgZI6X4LKOJw2dPRnSs0uYF3za/VdpTY434Kzwbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714562042; c=relaxed/simple; bh=Gn2C+fSEj9oEgEcKRZTFnYTq392nKVc8ox1XVnAtZ4Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lneKpkpzARLeIC0qcgCf1UJOjxQ2b66OwrwTcBgXZibQgnBjZezFHKRIP+lsxvm7akURdZq1TPCxoWtRC544s/x3rgGe+v7ArXODXGkhjkR7QTtRdN/sA+AOXsURqe/edUS1vZr+BZAmkwqWVBiu6BdAeSS3Uk7xLJJsfCa1ua4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=cCrtPYnZ; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714562040; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=klJb2Hbg7SNB5TUedK1etVELNa99mZOeY3ik6uIdHp8=; b=cCrtPYnZiWRgYHzxmllroQOT2O32EuArsrHKPmdUEGCXfQlpKMHzFE8IAEkjFtvTuezduJ OJNaTsUUq4nUTXY8qAukcnVP/mBJoTgp3mdI5VcHit6yHsT2VFD4SMk0Lm9vl9nuxm72l7 bx+NX13bLrjZvYqa/6DoRSjQcArOxyk= Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-682-_IjocKkGMWWCJC1vC3gZ9w-1; Wed, 01 May 2024 07:13:59 -0400 X-MC-Unique: _IjocKkGMWWCJC1vC3gZ9w-1 Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-6089c86e4d9so6785409a12.0 for ; Wed, 01 May 2024 04:13:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714562038; x=1715166838; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=klJb2Hbg7SNB5TUedK1etVELNa99mZOeY3ik6uIdHp8=; b=YrnE4Wo5uxavFtWYg+FnickTqKIGE+xjDVyrIG8BWJu20so7cMNWdWKzuF94LHhn2b rNYumdMP/KgleL/ltXRPragHeAFfQdhlf/nHCwXebH+2wEizFengD/K0U0SrNE3SEeAI +YOVSisG8W8hHpMwlJc0f0Myg75XiGYzIdkDw12I7NLXkwZyyVNJt1etTbIUfGVET4ke IvOCjQOqCWaCsZHwub6oYWneKQUK3s6BPSnfrqCMavvMX/6c9cAAzJSbBSYdwNs9/nHz UNqWQmihvgNpgqoJGgnXVjbxFQxckx5CWDbSuvolt5R+0k2zLO8LjtTe4JcYSah+95QN zkKw== X-Forwarded-Encrypted: i=1; AJvYcCUVhzjkL0I+3qoTUVjkyLw6s+iesEgNyCy35m6C9xSMAUtmKbvvtn0HPTW9r+MBGnwRX2WmlW1JILz2hc7nBugnono6+dNCW7rf4AZg X-Gm-Message-State: AOJu0YwBZrNasBRQ7w5RBVelnFmkNkvgqrECMszPTFDQrooA/DvlF+r+ DJdYFf/tQnHWjS8oQ4ubKZN5A4Fd6PvT64LQPQx1jvLC0aYgOaIT2z9K6HwaZqOt/sPHKsn3t7C 3HcRo4IOZjvVm/j2mT0ZvyyVzOtU3blfLZtaAcNIw6qR3A7kGjHF9CJ2JRcH2Vg== X-Received: by 2002:a05:6a20:551d:b0:1ad:9413:d5c3 with SMTP id ko29-20020a056a20551d00b001ad9413d5c3mr1712269pzb.17.1714562037869; Wed, 01 May 2024 04:13:57 -0700 (PDT) X-Received: by 2002:a05:6a20:551d:b0:1ad:9413:d5c3 with SMTP id ko29-20020a056a20551d00b001ad9413d5c3mr1712231pzb.17.1714562037414; Wed, 01 May 2024 04:13:57 -0700 (PDT) Received: from [192.168.68.50] ([43.252.112.88]) by smtp.gmail.com with ESMTPSA id h9-20020a17090a050900b002a55198259fsm3245338pjh.0.2024.05.01.04.13.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 May 2024 04:13:56 -0700 (PDT) Message-ID: <114fcd7e-33e3-4741-936f-21b0576c59e4@redhat.com> Date: Wed, 1 May 2024 21:13:46 +1000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 17/19] arm64: Kconfig: Enable hotplug CPU on arm64 if ACPI_PROCESSOR is enabled. Content-Language: en-US To: Jonathan Cameron , Thomas Gleixner , Peter Zijlstra , linux-pm@vger.kernel.org, loongarch@lists.linux.dev, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, x86@kernel.org, Russell King , "Rafael J . Wysocki" , Miguel Luis , James Morse , Salil Mehta , Jean-Philippe Brucker , Catalin Marinas , Will Deacon , Marc Zyngier , Hanjun Guo Cc: Ingo Molnar , Borislav Petkov , Dave Hansen , linuxarm@huawei.com, justin.he@arm.com, jianyong.wu@arm.com References: <20240430142434.10471-1-Jonathan.Cameron@huawei.com> <20240430142434.10471-18-Jonathan.Cameron@huawei.com> From: Gavin Shan In-Reply-To: <20240430142434.10471-18-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/1/24 00:24, Jonathan Cameron wrote: > In order to move arch_register_cpu() to be called via the same path > for initially present CPUs described by ACPI and hotplugged CPUs > ACPI_HOTPLUG_CPU needs to be enabled. > > The protection against invalid IDs in acpi_map_cpu() is needed as > at least one production BIOS is in the wild which reports entries > in DSDT (with no _STA method, so assumed enabled and present) > that don't match MADT. > > Tested-by: Miguel Luis > Signed-off-by: Jonathan Cameron > > --- > V9: No change. > > --- > arch/arm64/Kconfig | 1 + > arch/arm64/kernel/acpi.c | 22 ++++++++++++++++++++++ > 2 files changed, 23 insertions(+) > Reviewed-by: Gavin Shan