Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1620902ybi; Wed, 3 Jul 2019 20:02:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHPcPAazWYeb+ahaXagAlLPonzkeC0+swqTaEJ4snQ5KD5mQUxTT5/wIMUJQyUQ8TDbOQ+ X-Received: by 2002:a65:62c4:: with SMTP id m4mr39649342pgv.243.1562209367372; Wed, 03 Jul 2019 20:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562209367; cv=none; d=google.com; s=arc-20160816; b=xnMwD52RUSV/I+KLCYUiF86+y06ij2d0Dy3EEMIHFIXQjMEXtQF2zh09mBpHhdYOmS hWbYWBFCmOYtnmYfCa/ptuVYrbmm6NP6F70NkLQj5wco0XoDx2WYssdit3rD6QJFwazM g7bf/0pC4wbeznGADjStewuITIMWEn5RkqXNngQ0yUIO5AbEBJH5gE+6qj8XTIRIzspp 2nzsxlMeqjnVGL03HT/5boZBKUN23XoDefjHb6rx2JcM6j4+jXcu+vleUCixKPsSUnUJ tC/ZJYZijPsrpSo24FcsJrNtV8bXab1VzcSfw0tD49FBKV38ZqlQvMvXYWEFMjOsdmHq dDAw== 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:in-reply-to :mime-version:user-agent:date:message-id:organization:from :references:cc:to:subject:dkim-signature; bh=ulgkacOC9MVQoeI7C3VdBpGEpxQUJnlA06nqtcm87I8=; b=lj1uyRZH0tSYED2OfVqxS/vj9AH9DbiTY3co/Yfzn9wNUL4ho9DYf7Z89CWpmGtqBk 4hV1wlAsW2fuANLA0ILoCxksNlSCY2fwHxAADGfrCQDNL5qepzdB6qBTlbi8fgxKo8rw +eG87qr+IoauXb+gud9M/LbhceM2G+5LQW/IRJSJIKzVL4nVVaYoI4CmCo56yPelvCir vK03t+LuEr4Rd1DoddiOoRRcBQrjSo6NVej5vVjcpTiPJPLmPviHrD3IfiQBuLKHFGws VNCjJ8xC3i/F3VhkStRYbljgGT/r5oZfp0iRIChVZ+qZaaBwu8RLkWKKmweRXLnnZb5Q IyfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DsYC2ozC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si4220954pfa.223.2019.07.03.20.02.32; Wed, 03 Jul 2019 20:02:47 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DsYC2ozC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727242AbfGDDAa (ORCPT + 99 others); Wed, 3 Jul 2019 23:00:30 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:41273 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbfGDDA3 (ORCPT ); Wed, 3 Jul 2019 23:00:29 -0400 Received: by mail-pg1-f193.google.com with SMTP id q4so2172421pgj.8; Wed, 03 Jul 2019 20:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ulgkacOC9MVQoeI7C3VdBpGEpxQUJnlA06nqtcm87I8=; b=DsYC2ozCdkMop+Za96eslk9BJsSKBWurQHezKCWW6geGoOfVIeuhxl4Sp5lHF39jBT 9jgWopa5+cFAjZU5L9ZpZVUj8FUFZQtcURCTsffBbsSNQzvDgi5kcMTLPuJZ8REmXb5D r7/jyERNtwW5tfiNJA+QAlS3h0I0RVFUpeEBxJ57+MiQQZ69Di60oDmw2/e8H6IVntQK ijkqibXJn6OXEIuqNhVn67kGhBLKwB1xJqUxmOkmGjwq63eDwaGHpSPR2vXOwWKGEU1d wIc+Cx7ljseODdcbgFRO0t7bqtYTHfj7kz3Glp4peMDNx+oeX262DOzZLrPM1j8XIfoC M73A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=ulgkacOC9MVQoeI7C3VdBpGEpxQUJnlA06nqtcm87I8=; b=LT3GislaB48qPiWylvQQAxvSd5j4spZThCZ8/JWRD7BaHjIdPUsD7zYL5V9FOvrg5n VPZiICGfUln5FlKZJKRSwSjsJ0uAPeuwdWvv6thp8Yb/GwMKpVhrxkpFC0N2nUZhey9o AM5dAhfRctmfsmpH29cBtJlYMXNbJWfbAAe466TznIPsysoWLrQANNArykfN2IADawj0 VdjqIvCzdMlf0KP1j5Sd6LlK5p8gv2SzhjMLw0y9vj4pAp76ymcav2q2kYu8d+8+/WlR iKIzKg3EbLRCvwtC0f6KfZl3XTxd+Tw87nNLyQW0O9yJxJX6aXVB/1AvHKmTervUGLmb /LtQ== X-Gm-Message-State: APjAAAXF3zxHSSMrlhc+bCSW1Th0J+4bqWzR0u8XyYrlThlF9HK1cjW0 BeVDJpKOM4SNOFs+oyK/MBo= X-Received: by 2002:a63:6986:: with SMTP id e128mr42386432pgc.220.1562209228925; Wed, 03 Jul 2019 20:00:28 -0700 (PDT) Received: from [0.0.0.0] ([80.240.31.150]) by smtp.gmail.com with ESMTPSA id z13sm3247183pjn.32.2019.07.03.20.00.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jul 2019 20:00:27 -0700 (PDT) Subject: Re: [PATCH RFC 0/3] Support CPU hotplug for ARM64 To: Xiongfeng Wang , rjw@rjwysocki.net, catalin.marinas@arm.com, james.morse@arm.com Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, guohanjun@huawei.com, xiexiuqi@huawei.com, huawei.libin@huawei.com, john.garry@huawei.com, jonathan.cameron@huawei.com References: <1561720392-45907-1-git-send-email-wangxiongfeng2@huawei.com> From: Jia He Organization: ARM Message-ID: <2b22cf4d-9646-9f20-41ae-cceb83d9791b@gmail.com> Date: Thu, 4 Jul 2019 11:00:13 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <1561720392-45907-1-git-send-email-wangxiongfeng2@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Xiongfeng It is a little bit awkful that I am also  investigating acpi based cpu hotplug issue silimar with your idea. My question is your purpose to implement the vcpu hotplug in arm64 qemu? Thanks for the ellaboration --- Cheers, Justin (Jia He) 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(-) >