Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp545588ybb; Wed, 25 Mar 2020 05:07:19 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsrLxU+bZv+jQ2pNGf+Pa9h2v87s3TB+CFzH2xVDV/bWO6gKeJPzjQy3QAIlRA/vSCBWnDe X-Received: by 2002:aca:210c:: with SMTP id 12mr2121716oiz.0.1585138037597; Wed, 25 Mar 2020 05:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585138037; cv=none; d=google.com; s=arc-20160816; b=wLD1641tQUEjQXiv7kXaEn4I3zcV9xK1P66wyxBC3jJdn3q64wi+Nk9kCC5cA1IcO+ 8EMQgaSDy0UT1d6cMDPirHI03Gy7UnHXv7MAFSnALc/QcSCZglN0GBY+7SIINtngYWMM lHRKsUckgPUlwS/4lIcms0uRo07hkmQ8flLHAfhTEjebBtMQwli8YUOAHKOmn1lLsald qqgrnN0C9fIdWjkcLfls09WC5G6Je05JHn5MmbZ1EMYcBVF3vWtu+Tzzh3qfDc6CY8Dn CU89fExySW4nl1NJ/9OosHiSLDs9lSvi/6eXMwCZOm/DxKmHgfuBuQPf3hbP4NBp4qkd 3FcA== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=5gJisYbf+5dRvKykKw7XThCKh2h3HZAd7fHBT5Mil98=; b=PnkCgQl7VqMctgbUdtQQCgSSEhWXK0/NGhPZEtY77s4vENigEVWzbwU+zEtjgOjY0U rH32YK6/eXAhybg6UPQVTRy8umlS8znolLEtFmFRaGzRf/SXsIfK0z69aj3ydEw8lf3f ws6cEzCVOchttl4JH6snJ0inl2TMuFErQEjD1QgPUeoA5cKlBY7Y2c0+N8zuCWPJmSZ8 TGk0pLkMOpHP0CbpAzY9t51klAdBQTIc+rYGGjMFtIfeKE6Aq7MM/Au91AF6ls6Y7Fuk ZBEwM/I9Y1lxYQ0WKXO4QgigLqf8rcVkKp5cZlgKO1ATrgn2BWyTnhG/Wkeu+vmlZuGx lJbQ== 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 y19si10282452oie.128.2020.03.25.05.07.00; Wed, 25 Mar 2020 05:07:17 -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 S1727667AbgCYMGV (ORCPT + 99 others); Wed, 25 Mar 2020 08:06:21 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:47778 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727606AbgCYMGR (ORCPT ); Wed, 25 Mar 2020 08:06:17 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jH4nS-0000lU-N8; Wed, 25 Mar 2020 13:06:10 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 5772F1C0450; Wed, 25 Mar 2020 13:06:05 +0100 (CET) Date: Wed, 25 Mar 2020 12:06:05 -0000 From: "tip-bot2 for Qais Yousef" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: smp/core] arm64: Don't use disable_nonboot_cpus() Cc: Qais Yousef , Thomas Gleixner , Catalin Marinas , Will Deacon , x86 , LKML In-Reply-To: <20200323135110.30522-7-qais.yousef@arm.com> References: <20200323135110.30522-7-qais.yousef@arm.com> MIME-Version: 1.0 Message-ID: <158513796502.28353.4622039887526222517.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the smp/core branch of tip: Commit-ID: d66b16f5df4b41c719b98f7b5f61f0161e9e9246 Gitweb: https://git.kernel.org/tip/d66b16f5df4b41c719b98f7b5f61f0161e9e9246 Author: Qais Yousef AuthorDate: Mon, 23 Mar 2020 13:50:59 Committer: Thomas Gleixner CommitterDate: Wed, 25 Mar 2020 12:59:33 +01:00 arm64: Don't use disable_nonboot_cpus() disable_nonboot_cpus() is not safe to use when doing machine_down(), because it relies on freeze_secondary_cpus() which in turn is a suspend/resume related freeze and could abort if the logic detects any pending activities that can prevent finishing the offlining process. Beside disable_nonboot_cpus() is dependent on CONFIG_PM_SLEEP_SMP which is an othogonal config to rely on to ensure this function works correctly. Signed-off-by: Qais Yousef Signed-off-by: Thomas Gleixner Acked-by: Catalin Marinas Cc: Will Deacon Link: https://lkml.kernel.org/r/20200323135110.30522-7-qais.yousef@arm.com --- arch/arm64/kernel/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 0062605..1b9f7b7 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -141,11 +141,11 @@ void arch_cpu_idle_dead(void) * to execute e.g. a RAM-based pin loop is not sufficient. This allows the * kexec'd kernel to use any and all RAM as it sees fit, without having to * avoid any code or data used by any SW CPU pin loop. The CPU hotplug - * functionality embodied in disable_nonboot_cpus() to achieve this. + * functionality embodied in smpt_shutdown_nonboot_cpus() to achieve this. */ void machine_shutdown(void) { - disable_nonboot_cpus(); + smp_shutdown_nonboot_cpus(0); } /*