Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17941895ybl; Thu, 2 Jan 2020 15:15:24 -0800 (PST) X-Google-Smtp-Source: APXvYqwtYGnO/e4ad7xvVYYSZGmfixJi7Z7EJW8BT09oOEC5BoqYBo3oXVnRAn4unuuVHXbJFJXu X-Received: by 2002:aca:af8b:: with SMTP id y133mr3212266oie.73.1578006924545; Thu, 02 Jan 2020 15:15:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578006924; cv=none; d=google.com; s=arc-20160816; b=z8T0WF9/ZdghByUlMkpatbcwrMKrZjt5Icp3qEUBK1/xx91euj1gs1pLWygAfln610 0AnTXTZ6zgNYGpBxwi2TdqAr5JSSHpuChzV4kwMpP2YOs2vQ0/xeiOTv7TXp6CG6ZdTr vY3E54VbmGdRR2ulVqgKJTxKHLFCGJ388RDPKv9FPgNgGl6RlG/iPWEuelANeolss3UK gXPHV08dglyLXv/MENI7pC/+6WRk63XxmUF8FWC2SxY7Fm4yRTSjubUjdFSxsx7XXsy4 LHe9e9125IX2oc7KXV11Udt+Krwt9150db5JaDn2g2AULNtc4iZ1Dat+kb0Cpnj28Pwi lMuA== 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=JTxjTL8X5qNBevhuZH8Jpmqm5g5IH7QfawlHD9XJn84=; b=Rb7WxqEBTlZDCStgkSN8ilJmfEs60+RpWNUF4jA0dloHQwWI4edzjaKdpxitzvgxGg ZeO0LKqJp/a7Ab8olAyQJ2mPjOvV9cdo0GSvRhnFMPWKXWGiUoJZ7432B/sz9uSIhWIs o1sXxRxCHElYpqUd/POshAh3Em/Ais4J/MCpnMps+o5GD4oO/Rha3ReIzu6L9Goeustq E+rowC561GsJ/AJRsoDejlrBPEaMxkbiDGh1Qbvb3E5uThGCOuqORMNplnAyOwsV7iig as587O6snhUly3fBrp8BT5gQSk40B1Kt546dCTt9fRpLnGjyPBcWi3HyV+wgD/pI56E8 8eFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LpR9S7hM; 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 f187si27669777oia.218.2020.01.02.15.15.12; Thu, 02 Jan 2020 15:15:24 -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=LpR9S7hM; 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 S1728310AbgABW7A (ORCPT + 99 others); Thu, 2 Jan 2020 17:59:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:55512 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727980AbgABWO7 (ORCPT ); Thu, 2 Jan 2020 17:14:59 -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 B1C11227BF; Thu, 2 Jan 2020 22:14:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003299; bh=lIgnPbZoi6opNBmtNTCpIV0Nr11jwcGg5uA+Bg96oEQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LpR9S7hMa5lacvlprLCcNElzhFCzXVrq/hGN2QnYLIMc5u28BgcJRt2Xb7RlpmwJQ M8KV/V6Q3fTYqXO7zz23RYk0HPORtZiKTLA9JlWVOMlP65ggCaOKJkHQ2aMF+vLQ4P b4X4HWHa8+mP9qzeDHORK+E9+kxY8ClolZJluSHk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Kelley , Vitaly Kuznetsov , Dexuan Cui , Sasha Levin Subject: [PATCH 5.4 103/191] Drivers: hv: vmbus: Fix crash handler reset of Hyper-V synic Date: Thu, 2 Jan 2020 23:06:25 +0100 Message-Id: <20200102215840.970579601@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102215829.911231638@linuxfoundation.org> References: <20200102215829.911231638@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: Michael Kelley [ Upstream commit 7a1323b5dfe44a9013a2cc56ef2973034a00bf88 ] The crash handler calls hv_synic_cleanup() to shutdown the Hyper-V synthetic interrupt controller. But if the CPU that calls hv_synic_cleanup() has a VMbus channel interrupt assigned to it (which is likely the case in smaller VM sizes), hv_synic_cleanup() returns an error and the synthetic interrupt controller isn't shutdown. While the lack of being shutdown hasn't caused a known problem, it still should be fixed for highest reliability. So directly call hv_synic_disable_regs() instead of hv_synic_cleanup(), which ensures that the synic is always shutdown. Signed-off-by: Michael Kelley Reviewed-by: Vitaly Kuznetsov Reviewed-by: Dexuan Cui Signed-off-by: Sasha Levin --- drivers/hv/vmbus_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 53a60c81e220..05ead1735c6e 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -2308,7 +2308,7 @@ static void hv_crash_handler(struct pt_regs *regs) vmbus_connection.conn_state = DISCONNECTED; cpu = smp_processor_id(); hv_stimer_cleanup(cpu); - hv_synic_cleanup(cpu); + hv_synic_disable_regs(cpu); hyperv_cleanup(); }; -- 2.20.1