Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp281586ybd; Fri, 28 Jun 2019 19:45:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKes07zdQ4hOv808b4ghxS5NLe9+vVwdwNj+X2+tX/3E64RpHTqksMB0BPqJYhCcJ9xfRh X-Received: by 2002:a63:500e:: with SMTP id e14mr1310885pgb.11.1561776325419; Fri, 28 Jun 2019 19:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561776325; cv=none; d=google.com; s=arc-20160816; b=x6mGedBWWLbiTPnaKQMzNFRivfQj1VfUmO8aVURp5phXs/05K0WjLDLUv5XjvfzzML E5wK7kaR6jXqD4eGMgZ0SsMuFN4tV2EydUsrog0b8E4ccPK07OMmbfuD4+600rFL8L90 TaZgFN5AMveD2RghtCi5zvBFh+VO/NXBqpPH5xhJuvIKc1Qtm6WaiK3cSuoCzyaodYwm blKhdVahfEtzc2EguTzUnghFmm9OJkwWTdutgpGgyDYLSX2LUJ5StgHC/nkZ3mU1vtrP lOScOjKOHMrDz/02+PPuCeablZl2NhKWRpvKcasAer/nid0iTwMD0pnLqjbfVrlsftbm MJAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=zL7KwDtALWT2Tvs6FgnysqykKo1tvwLRNgUpqKTk3zU=; b=ShasTzEbv3erLZqZGZkgciFy+OviYedNnDL9WwM9nM/1pwsNzP4j8WpC3RpFysCsd9 2+KxvepSdIKNRffvwt8yXyzVBLXg61HVrgmqMuBYP1fwHiAYdzZeR6NjgU8bcNuydRb1 Hr682c4WZhSkdUNzHGYmxnL/R1aNIcTtq505rv180cbc6b1APKvpcLsMwNfelOvYzYfH xoKQXuzzYYxnAprHyXzAIbOXqCjA2GDN/1ZCm5VI7f3yeCqiFCDM34wbDp6jTOSJQoqF tDjJLqHLLFpMKxRDqR/gFSSLSpGHp0HKifO0BQWLmOsMw+CXJ+iepQRr4ZY3Nagx+Avq cDCg== 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 v15si4033893pfm.238.2019.06.28.19.45.09; Fri, 28 Jun 2019 19:45:25 -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 S1726873AbfF2Co4 (ORCPT + 99 others); Fri, 28 Jun 2019 22:44:56 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8238 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726723AbfF2Coy (ORCPT ); Fri, 28 Jun 2019 22:44:54 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 2F130804E4552ACA6848; Sat, 29 Jun 2019 10:44:51 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Sat, 29 Jun 2019 10:44:41 +0800 From: Xiongfeng Wang To: , , CC: , , , , , , , , Subject: [RFC PATCH v2 0/3] Support CPU hotplug for ARM64 Date: Sat, 29 Jun 2019 10:42:32 +0800 Message-ID: <1561776155-38975-1-git-send-email-wangxiongfeng2@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Changelog: v1 -> v2: rebase the thrid patch to the lastest kernel 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(-) -- 1.7.12.4