Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp257860ybd; Fri, 28 Jun 2019 19:09:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8KdQzeTZEy2MSE4fUkiF1T1WJe9tyOoLtuupM4WU1BPmUD06b6kYkONWcrjUv87y5vex9 X-Received: by 2002:a63:6f8d:: with SMTP id k135mr12284014pgc.118.1561774148914; Fri, 28 Jun 2019 19:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561774148; cv=none; d=google.com; s=arc-20160816; b=BElRcdFi6ZYJeHKkUhyF6LnDLDsZjMyABCiigkRdSTt4qMXj/lMrqfcWJ8AblRS0Kx EMxBnJnmRRdY0iAnDP2I6ZDZKK+7Hh+d+XYYN9uHCCIOcQHt26mqV4sdEQc6rv600Tk3 c7REIDmNuzS5B8FgTc6cwNiGQcL4mSisZW+sFrSXvzEUMjP0S1kOf00YQxzriSM/kLOi uJ7F9fMGIRzc2tbtnc7zsssrpJEjWFrQNbu9PbbORhzZhwGg0Wiuo+ZnmAtpGvY7t5Q/ l0Cof5TDS1ZQvaqEMZLBLdnv1OQT+Dw+jbq9zdSgP9p+WmX4d650+0ahjgpazvOD5fD2 BaWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=rBLxhzr9SQShrIC3FZcWMC+lUqkHs+ySsl0p0MH2Diw=; b=wkhsJKl9zrRbd4Pw8/L/W4/YLSxWgo/uE8mh6sISNsinplPDYgroqvWoNAmbU89z/k IP9tibdqmhJMO6cZCFQXmbbTqWfiXKGPHE7AEGdzHCth8ee0l5Gh1yVXqBvwRpTakYGY peMfZv0HBWwLftNft179/+gLw0PGN3VUUTIsPfNKtJuGRscoZaqTTTPx9bLh4Jg8KsG1 Xoq51pMppR/L5ux7RXG/owFDJtbMSjsEfJwJMClkpmNQf86mgCDtpWq76ioqkTBSXOnN zlxx1IwL5juGy5R0wY+mAwZyR9hU8k6bsxau7rqy43F8G86rDt6+1PGquEv3x5Rw2n/F 0H/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k16si4083400pfk.68.2019.06.28.19.08.52; Fri, 28 Jun 2019 19:09:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbfF2CIn (ORCPT + 99 others); Fri, 28 Jun 2019 22:08:43 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8236 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726682AbfF2CIn (ORCPT ); Fri, 28 Jun 2019 22:08:43 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 03EA9AD12CCE9E729E1A; Sat, 29 Jun 2019 10:08:40 +0800 (CST) Received: from [127.0.0.1] (10.184.52.56) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Sat, 29 Jun 2019 10:08:34 +0800 Subject: Re: [PATCH RFC 0/3] Support CPU hotplug for ARM64 To: , , CC: , , , , , , , References: <1561720392-45907-1-git-send-email-wangxiongfeng2@huawei.com> From: Xiongfeng Wang Message-ID: <74bda3c2-e706-aa3b-441a-fb85e2a5c778@huawei.com> Date: Sat, 29 Jun 2019 10:07:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1561720392-45907-1-git-send-email-wangxiongfeng2@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.184.52.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry, the third patch can't be applied to the lastest kernel. I will send another version and attach the method to test this patchset. On 2019/6/28 19:13, Xiongfeng Wang wrote: > This patchset mark all the GICC node in MADT as possible CPUs even though it > is disabled. But only those enabled GICC node are marked as present CPUs. > So that kernel will initialize some CPU related data structure in advance before > the CPU is actually hot added into the system. This patchset also implement > 'acpi_(un)map_cpu()' and 'arch_(un)register_cpu()' for ARM64. These functions are > needed to enable CPU hotplug. > > To support CPU hotplug, we need to add all the possible GICC node in MADT > including those CPUs that are not present but may be hot added later. Those > CPUs are marked as disabled in GICC nodes. > > Xiongfeng Wang (3): > ACPI / scan: evaluate _STA for processors declared via ASL Device > statement > arm64: mark all the GICC nodes in MADT as possible cpu > arm64: Add CPU hotplug support > > arch/arm64/kernel/acpi.c | 22 ++++++++++++++++++++++ > arch/arm64/kernel/setup.c | 19 ++++++++++++++++++- > arch/arm64/kernel/smp.c | 11 +++++------ > drivers/acpi/scan.c | 12 ++++++++++++ > 4 files changed, 57 insertions(+), 7 deletions(-) >