Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp132109ybc; Mon, 18 Nov 2019 21:52:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzrXM5g6PVL8pM3aD4eAHWfyBRld6RDAeeHMUfFOyQptYJiP6+ou3wX/LcQTw6H4Uc+ore+ X-Received: by 2002:a17:906:6006:: with SMTP id o6mr32113409ejj.51.1574142764748; Mon, 18 Nov 2019 21:52:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574142764; cv=none; d=google.com; s=arc-20160816; b=jpnQBRwb973EFe6QLRSOKtUElCwN5JzUjAA+Kws/LuwiHpZTEWR7Wl0BcTVJiUHnK4 7LcS4bx2Ok4wu+BL3G+/L+ivJopf42U1YxLwc8vzJ2TVJg+ikT/VBKSpKLBbUXT1Wtpi dsGasHgHdp8jMiGAp/5VeHxMadr9TMnU7y2yBBIk+da2zbSkcE8vZVllgdk8quGzV3QX nM1/xTTICzrH/7mACRMxEzjTnpj/6IqtR7L37IeNMvMriA7VngZMd6kwT8tdLscMpHg7 SDxbCWXmL2BB71uVgDS3VP0QBaelzJneYdJDi0pZzQgpgUlXJnolZU/EqEGoJ8lNp7x6 PUog== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pk+JAsJ8RMXCuVTpVuWpHsDZFqMnZfOl4Ivzk4bPeuE=; b=07ZJCsG7iUrDX0z6ykiu9KjSN7b5N+Tv0kj6hKe39Y28A4fxaSetl51gS3FwCBIide qOfuYQzWDDXRKIm89U5snzfUNLJCkR58BOmQlDnxWWyCUeLhAXxljH8mc508JL146iJD /xTkHzv4peZIYAv3ba1XSegEb3VJ3P4vC0trvW33u5JQTMnjBEGTRnnEEcoge8by4uO5 xPmjB75ih5Xo2GLsC+++3SJejnboc2qJ/w6b7gHMhf621tDEKp2LTn7K6JxLy0ugkiI3 DKp7XoMZtpTusdnF07KtRxf9y7DJHy6JEIgQspEqx3WOR+8IbkYu0I1E1CwOKTxU96/b KbWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=auZniHqS; 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 e15si14999668eda.106.2019.11.18.21.52.20; Mon, 18 Nov 2019 21:52:44 -0800 (PST) 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=@kernel.org header.s=default header.b=auZniHqS; 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 S1731595AbfKSFuR (ORCPT + 99 others); Tue, 19 Nov 2019 00:50:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:47192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731592AbfKSFuM (ORCPT ); Tue, 19 Nov 2019 00:50:12 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E305A20862; Tue, 19 Nov 2019 05:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574142611; bh=0nt6omekfdvnZbVzvocj9xSl1eWhEFqOqV5EXwNxaH0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=auZniHqSvWJjd6NKWjszbEaAjyfL/lpUA3KGfnpp0A7hLY8oKn5jhVNtGUR/TUHy8 ZLtSPbDqFuyD2MOekp1no+8J/tvnd8fCb3ZCp6r84x2N1jqBml/gYPyfcchCsaUAO9 BjwisHZ0ZJuJ8E5FMOTrplzkOx3LR5d6wfucdwJ4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Fontenot , Tyrel Datwyler , Michael Ellerman , Sasha Levin Subject: [PATCH 4.14 141/239] powerpc/pseries: Disable CPU hotplug across migrations Date: Tue, 19 Nov 2019 06:19:01 +0100 Message-Id: <20191119051331.714026993@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119051255.850204959@linuxfoundation.org> References: <20191119051255.850204959@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Fontenot [ Upstream commit 85a88cabad57d26d826dd94ea34d3a785824d802 ] When performing partition migrations all present CPUs must be online as all present CPUs must make the H_JOIN call as part of the migration process. Once all present CPUs make the H_JOIN call, one CPU is returned to make the rtas call to perform the migration to the destination system. During testing of migration and changing the SMT state we have found instances where CPUs are offlined, as part of the SMT state change, before they make the H_JOIN call. This results in a hung system where every CPU is either in H_JOIN or offline. To prevent this this patch disables CPU hotplug during the migration process. Signed-off-by: Nathan Fontenot Reviewed-by: Tyrel Datwyler Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/kernel/rtas.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index 141d192c69538..a01f83ba739ef 100644 --- a/arch/powerpc/kernel/rtas.c +++ b/arch/powerpc/kernel/rtas.c @@ -984,6 +984,7 @@ int rtas_ibm_suspend_me(u64 handle) goto out; } + cpu_hotplug_disable(); stop_topology_update(); /* Call function on all CPUs. One of us will make the @@ -998,6 +999,7 @@ int rtas_ibm_suspend_me(u64 handle) printk(KERN_ERR "Error doing global join\n"); start_topology_update(); + cpu_hotplug_enable(); /* Take down CPUs not online prior to suspend */ cpuret = rtas_offline_cpus_mask(offline_mask); -- 2.20.1