Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6551798ybx; Mon, 11 Nov 2019 10:49:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwT40qb5qTjDTclNRRZEwP6Snk67muB6uXEMURKaAgmFb7RTqX/5h7Za2pzt0epeXdapahm X-Received: by 2002:a17:906:c2d6:: with SMTP id ch22mr3648284ejb.262.1573498171702; Mon, 11 Nov 2019 10:49:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573498171; cv=none; d=google.com; s=arc-20160816; b=fNo+wIDxHT9IOsYpKR/uCsD/rApszM9pl79Em7WTCDTOVx+G8qG7C1ooEMpetf/gYI 2iXQ42OlAsSLZdAiob6igIFnlnj4eU7ZEDOv5YkeWELB7VXKFCyqkxFcbQBinv141ltT c8H/AbmpO76hmo9RjG9sg9mIyKHZaSQPBs0FOJNE303Ev31Fcpf/59YBCyi3U1Z5gJjd rEq9eKcnLWCKuvsShAYXKuUwmLR8v2RZNp+o6pqK8o95jmzUwYui6Q3Ud2OetqQc4x61 2Bz3qAZOBQin0kvf1WuSYEfjjpfkf2h1Ke02Jf4BkL61k7ycm7RzNi41RaSWyN7cBd0Q 3xRg== 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=YToZ040BRMRE5Ym0djAG8IimJ2FiOJmuRVyE6YbT5KQ=; b=tRdSzlojjiQBS8bvaIzn/tLmge+YXr8v/WieLomVeTqBj11hqwxmaDqhGpg3XQJ4i9 AzQBrZf4RGIsMjbegsNxaA9/5UOooPPCscIC6l6fWEiq8GcJzvIUpv494NGPe06/UMoN QbWz3fGz5L/1Gy8wc/cH5KvbYCMunCVALOgTL8gEzUm1FFIJTA4bkjglrRgVHkt6/DZm x8Ul6ujDDShZUHZ66miE74e/o4j2AVobchZOoqXpujnNyPOcXjhp66Ju33HkwXHNN1pO liyVaCNktMyj1KMODds9KmWMBlV/vEIT3vAnXBFW8kK+Xklt/XLRw6/im7MqkQiiJA0O nMxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=njBOBGNR; 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 m16si9800994ejc.383.2019.11.11.10.49.06; Mon, 11 Nov 2019 10:49:31 -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=njBOBGNR; 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 S1729901AbfKKSpp (ORCPT + 99 others); Mon, 11 Nov 2019 13:45:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:37950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729164AbfKKSpo (ORCPT ); Mon, 11 Nov 2019 13:45:44 -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 E32B521655; Mon, 11 Nov 2019 18:45:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573497943; bh=12//u6Trk77lyuLCaFQo/nahx1rGN8LE0DpZxFfiT6E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=njBOBGNRkKcIAqldQQO8j+udhYAOULqf7yW43OEd23ZmQzjmxLLixB477qBnz/6cd +x54ETvGgnIOGQf27y/z1t9JwGWGk3PJcJyiPh2a3rE55b2B01QnKbggLV05YbPHen CyGH3Geeaa4joXvlvruqCNBQ/cur3Sf0CjjN9XHk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicholas Piggin , Himanshu Madhani , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.19 103/125] scsi: qla2xxx: stop timer in shutdown path Date: Mon, 11 Nov 2019 19:29:02 +0100 Message-Id: <20191111181453.607132675@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191111181438.945353076@linuxfoundation.org> References: <20191111181438.945353076@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: Nicholas Piggin [ Upstream commit d3566abb1a1e7772116e4d50fb6a58d19c9802e5 ] In shutdown/reboot paths, the timer is not stopped: qla2x00_shutdown pci_device_shutdown device_shutdown kernel_restart_prepare kernel_restart sys_reboot This causes lockups (on powerpc) when firmware config space access calls are interrupted by smp_send_stop later in reboot. Fixes: e30d1756480dc ("[SCSI] qla2xxx: Addition of shutdown callback handler.") Link: https://lore.kernel.org/r/20191024063804.14538-1-npiggin@gmail.com Signed-off-by: Nicholas Piggin Acked-by: Himanshu Madhani Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/qla2xxx/qla_os.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 856a7ceb9a041..18ee614fe07f5 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -3496,6 +3496,10 @@ qla2x00_shutdown(struct pci_dev *pdev) qla2x00_try_to_stop_firmware(vha); } + /* Disable timer */ + if (vha->timer_active) + qla2x00_stop_timer(vha); + /* Turn adapter off line */ vha->flags.online = 0; -- 2.20.1