Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp545999ybb; Wed, 25 Mar 2020 05:07:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vud3bDKkeYPOLITFnC2kFD1gxitTbb5P9BoZgF3aEkNun79qL9lNKMacMhEWh+UAf1gtDwp X-Received: by 2002:aca:54ca:: with SMTP id i193mr2238379oib.163.1585138062982; Wed, 25 Mar 2020 05:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585138062; cv=none; d=google.com; s=arc-20160816; b=Y/OSbM+yNVr4wyceSZECUo/sNLACmdcdi97L/A7pi5JKh+fD2YPgdqmDVJEBrSqA/s /XQzI/SjS4V4iMzhpDM6DJ+u4bdizTYZLIzLPLNl5yOBkhPUYae4EKLwsHknmO3sYnPr MoIIFvJq3CqsXQdTqt02dxn+ZzrKBpQvfa3EZHlxmVFXzUXNeU+JPTigi2R6uUAxnrKB w4W1EX4/4Or+mBY7E9T0dGfrMqwCDsxmDNWrh6e5Edw07yxFanOMnU0qRXRBMviBfZxQ ZfLi9wGne5TWx1V50R0SKCOT0hc0ftocdrwC1qGMz/PyBhT38XI05GDHeC0IHIjoU5DL L93g== 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=3v8r2OtnybcitFUiX2OvhVI3j6ylUSIA1/vbrfgWxsk=; b=GRDZio/BNMJ8HudG9ttbkJlJfMIAz/VBdaenqU0FkcJYis6X5hsJ53KFp9V1BwrHfJ ZM2gm/lB5lIXTR0FbHwQ4FpSuBkIpbBqc9BswmU4E9meBYMfEwlRemnpZRO94/wr8J9k JwymXRrcawUxNocJSp5QYADerVsmZG4URjXsDUn8yfqqsxeaVDiiK1N6Ib9UKg+L3Gk7 Pmgtv/BHPFmstj5TjvWiiq4AcNRczxb5fb65zLJ+MoRYNz2DLz/19M2KWgslhS2ugqVa bOItxQ4uv7y7VvlOMfuLfoPqUmMLmxn5XBEaVnCwxP2B/RfB8BZbU4ICrQ9eGS/P+7z9 Zdtw== 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 f6si11153182otq.50.2020.03.25.05.07.28; Wed, 25 Mar 2020 05:07:42 -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 S1727587AbgCYMGN (ORCPT + 99 others); Wed, 25 Mar 2020 08:06:13 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:47754 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727557AbgCYMGM (ORCPT ); Wed, 25 Mar 2020 08:06:12 -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 1jH4nP-0000lj-0q; Wed, 25 Mar 2020 13:06:07 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 4466E1C0493; Wed, 25 Mar 2020 13:06:06 +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] ARM: Don't use disable_nonboot_cpus() Cc: Qais Yousef , Thomas Gleixner , Russell King , x86 , LKML In-Reply-To: <20200323135110.30522-5-qais.yousef@arm.com> References: <20200323135110.30522-5-qais.yousef@arm.com> MIME-Version: 1.0 Message-ID: <158513796591.28353.16030659658757557287.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: dddf3578e0d497e66ebe654d0f3258ac20a07e27 Gitweb: https://git.kernel.org/tip/dddf3578e0d497e66ebe654d0f3258ac20a07e27 Author: Qais Yousef AuthorDate: Mon, 23 Mar 2020 13:50:57 Committer: Thomas Gleixner CommitterDate: Wed, 25 Mar 2020 12:59:32 +01:00 ARM: 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 Cc: Russell King Link: https://lkml.kernel.org/r/20200323135110.30522-5-qais.yousef@arm.com --- arch/arm/kernel/reboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/kernel/reboot.c b/arch/arm/kernel/reboot.c index bb18ed0..58ad1a7 100644 --- a/arch/arm/kernel/reboot.c +++ b/arch/arm/kernel/reboot.c @@ -88,11 +88,11 @@ void soft_restart(unsigned long addr) * 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 smp_shutdown_nonboot_cpus() to achieve this. */ void machine_shutdown(void) { - disable_nonboot_cpus(); + smp_shutdown_nonboot_cpus(0); } /*