Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2397465imu; Thu, 24 Jan 2019 12:04:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN7g3557wGy7650CBlDJ25kG2xE0oQA1L/Pn6Gw2OLgmGhK+/ZqBQ0GleLRKop8fXG3m1WT7 X-Received: by 2002:a17:902:14b:: with SMTP id 69mr8038775plb.52.1548360263551; Thu, 24 Jan 2019 12:04:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548360263; cv=none; d=google.com; s=arc-20160816; b=pbkuklL5OjHyO4AWI1igyrHrJU1ZpPi3kVnj7Ov/fAH1UU9JvY9VOkx7wdRwYgn/U0 BQAR4s2c3BpeVzcv4eJs72uiKAzl3/fq5anGv4nkWQLRKWVRotLWN8phbxAsDXjuNvfq 6rfq8E+yNfutA9ocXqpD09GV1cPVR4ymFxinc1ndttli1iNjAdcUYlLxW7swuVX+ejDY 16Ts51/XsGZGjUz+Tal6gkDARwjMclyC3VdUt9Un9sUUTvj0D/HoxhONgsy7V2IhisIo LyNu02vQ7ViAylNkbod88gyoyeSBcy0OAXy2bhlcY83XFP2erFn7jw3M8o5/oaoi1mJP TXKg== 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=3nmZuXoqTrSTYfoxBjzOarlCvISpVdzLK47SEPV8zok=; b=B4veJOS1zZPcWr/9RFujIRNmMDMy6HXn1VvLTGGceVNac804hWECTWDZuiEdddY4va 9jL9UyjE3GStwVnb1/4RzarsvObbPCba51UiNWsdAb6IBYgUebY6uULyXLKBCa5d9yYQ pJCmnxb0/wRoBMEHhkmm0WzZGfx75ZmkT+uImd/DvA85XxQIqO0OTvAz729HuwiIb1TM DD0f6o4yCwNYkC8a+UDa47icEW3eg8a8T3JQj41X+zWQAhweOAp0RbbTwxs+HKLt71pS z2xGv3nZx7AjzvAlrgD0QV9u9YVmJc5HpEyzIX6lkvZmmD4NBFq5l3UMk78lF3wujo1K za8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DDMxeo5d; 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 93si22665086plc.2.2019.01.24.12.04.08; Thu, 24 Jan 2019 12:04:23 -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=DDMxeo5d; 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 S1730709AbfAXUCt (ORCPT + 99 others); Thu, 24 Jan 2019 15:02:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:60914 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731913AbfAXTc7 (ORCPT ); Thu, 24 Jan 2019 14:32:59 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 D2A91218E2; Thu, 24 Jan 2019 19:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548358378; bh=NdM6OF8cyyCtbOGXzKpA9IDd+Rx/1l06tI+O52h5NoA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DDMxeo5dCyRBp40W9VBbImHAJjd7RX3Lp3W9eyOtkY8g827Mft+/OnEuLSZKl8TRI a7vtI7epIjff2mhazuwBKcqqtLdBrFDJdk0tjA7ewbYM2ciQYf5valIurXRGmkz5L3 lSQ8LyMyWCAOK0BrKH9qhQ9f5go0OnJPUyJgzkgk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yanjiang Jin , Don Brace , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.14 52/63] scsi: smartpqi: call pqi_free_interrupts() in pqi_shutdown() Date: Thu, 24 Jan 2019 20:20:41 +0100 Message-Id: <20190124190201.577008917@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190124190155.176570028@linuxfoundation.org> References: <20190124190155.176570028@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit e57b2945aa654e48f85a41e8917793c64ecb9de8 ] We must free all irqs during shutdown, else kexec's 2nd kernel would hang in pqi_wait_for_completion_io() as below: Call trace: pqi_wait_for_completion_io pqi_submit_raid_request_synchronous.constprop.78+0x23c/0x310 [smartpqi] pqi_configure_events+0xec/0x1f8 [smartpqi] pqi_ctrl_init+0x814/0xca0 [smartpqi] pqi_pci_probe+0x400/0x46c [smartpqi] local_pci_probe+0x48/0xb0 pci_device_probe+0x14c/0x1b0 really_probe+0x218/0x3fc driver_probe_device+0x70/0x140 __driver_attach+0x11c/0x134 bus_for_each_dev+0x70/0xc8 driver_attach+0x30/0x38 bus_add_driver+0x1f0/0x294 driver_register+0x74/0x12c __pci_register_driver+0x64/0x70 pqi_init+0xd0/0x10000 [smartpqi] do_one_initcall+0x60/0x1d8 do_init_module+0x64/0x1f8 load_module+0x10ec/0x1350 __se_sys_finit_module+0xd4/0x100 __arm64_sys_finit_module+0x28/0x34 el0_svc_handler+0x104/0x160 el0_svc+0x8/0xc This happens only in the following combinations: 1. smartpqi is built as module, not built-in; 2. We have a disk connected to smartpqi card; 3. Both kexec's 1st and 2nd kernels use this disk as Rootfs' mount point. Signed-off-by: Yanjiang Jin Acked-by: Don Brace Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/smartpqi/smartpqi_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c index b662f58203ac..bc15999f1c7c 100644 --- a/drivers/scsi/smartpqi/smartpqi_init.c +++ b/drivers/scsi/smartpqi/smartpqi_init.c @@ -6703,6 +6703,7 @@ static void pqi_shutdown(struct pci_dev *pci_dev) * storage. */ rc = pqi_flush_cache(ctrl_info, SHUTDOWN); + pqi_free_interrupts(ctrl_info); pqi_reset(ctrl_info); if (rc == 0) return; -- 2.19.1