Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp77592imm; Wed, 30 May 2018 18:09:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJw4sjDiB6VtZjzVFg6fYZN/omiuv+3JMC9lczTrwGPF3qUIKpAXTIVX/vsmSphLhp/tgQw X-Received: by 2002:a62:fb14:: with SMTP id x20-v6mr4876861pfm.48.1527728976625; Wed, 30 May 2018 18:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527728976; cv=none; d=google.com; s=arc-20160816; b=aFtXCMGZxY+bPkQiurA5HogDE3u317VTbvkNTF1X3uat3poNaqqH/E614Ls3x4/rIl QAhzk6b05jGJJtf0slk4MrVUM9Nx8IGoqxB6GM/k0JXbNhwjks9OMvhKHfED/sCCV3cs Jp/n7iN+iO5mGGsFD8/rSmpEW+X8eVo4Iz9CYI5P+R38LqiSmdpm8kLmmA+BvE73J8YS 1WZuwzohxyAHDD8qQeEZDOdiD0X3Adrb4w7dzTdE79/AKBNxOHBknzpJUbWCLhqVwD7N MMIbJnNdD4cYtHdqNCumd6/trhJvb6v9+9ngbi90ehif/XgtbaA8J2KC28AbeP9zd+lG JK8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=CBLxyOHatdXmelfcgmVByhXYO6b+ZddbWm5Oz5C8/tI=; b=sfNoJ+XMJROOBRRHWpHzCBJ5GIk6AK1m9juRxOASxA4Zb0BrPJhN4f3bO3wqeezt0q eG8boef+auYa4Ihxf7t43CMKrqwXqY7GnOjBRjQP6WYyqaVJPvXSHSEHztnP5hqp4lXF rCKm0XQ0AmBnx2SB+inVEthWABkBuqLQDYX4PjIJrFIOncEce/DMM5IAWEIySuiX1upT RaJY2TpT68nL0Lrj4HwUMSjRE8EZWo5wCrrSml0OZIYg7m/DpbekfyooRpOz2NpErpXC U6+XN7OPThB9xCKu0BsvTfVbqjlJsbv8EfSpkY5NkJgyqp4Q/zV61NU8+7BFIGyQSNA+ tgLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Tkj78QLU; dkim=pass header.i=@codeaurora.org header.s=default header.b=BI8n6x9v; 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 q7-v6si28270194pgv.658.2018.05.30.18.09.21; Wed, 30 May 2018 18:09:36 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=Tkj78QLU; dkim=pass header.i=@codeaurora.org header.s=default header.b=BI8n6x9v; 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 S932663AbeEaBIv (ORCPT + 99 others); Wed, 30 May 2018 21:08:51 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37592 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932561AbeEaBIr (ORCPT ); Wed, 30 May 2018 21:08:47 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B22336063A; Thu, 31 May 2018 01:08:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527728926; bh=H9fJYMpLqHMwThgUX1MdXxCi8g+yRRazpHxeIZJQeu8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Tkj78QLU3wf/eYR1PC0wfzd0WDY3IHJgzKJBtWBt5/RTYN7oOj9CRmKahwy8hauzD 0HF39btEdBG+GvKJ1uoj64rpLKIVs29iDcHj+tgOA/clO7OCcYMWQTcEWO/4yVExyK MSvwbHsSVaAT4qvpR8t856JW3v0+uNdhG3ZefnQw= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 36CBB60251; Thu, 31 May 2018 01:08:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527728922; bh=H9fJYMpLqHMwThgUX1MdXxCi8g+yRRazpHxeIZJQeu8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BI8n6x9v8aBK9wmw54umLyogqKDEUuBuLcFuqnO6v5ZlhBaA54Eof/SIOL1YLxBE7 SrF89B8EFYZF8IfTtjz0x7Qh5ZmSsp5oA3mtQrXyZW6lDZDHuVNB8g/8JQ0Xdo/Zdi mGzY33C79NN5WOU7Jr2SuNnuERoj+wOc8xG1/nQs= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 30 May 2018 21:08:42 -0400 From: okaya@codeaurora.org To: Don Brace Cc: Ryan Finnie , linux-pci@vger.kernel.org, timur@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, "James E.J. Bottomley" , "Martin K. Petersen" , "esc.storagedev" , "open list:HEWLETT-PACKARD SMART ARRAY RAID DRIVER (hpsa)" , open list Subject: Re: [PATCH V3 2/2] scsi: hpsa: drop shutdown callback In-Reply-To: References: <1527542471-10316-1-git-send-email-okaya@codeaurora.org> <1527542471-10316-2-git-send-email-okaya@codeaurora.org> <51bb7b82-c4a1-435c-7668-639db96d76e1@finnie.org> Message-ID: <3ebb873ea4658275e7fa89c01cd8bfe1@codeaurora.org> X-Sender: okaya@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-05-30 15:25, Don Brace wrote: >> -----Original Message----- >> From: Ryan Finnie [mailto:ryan@finnie.org] >> Sent: Tuesday, May 29, 2018 8:50 PM >> To: Sinan Kaya ; linux-pci@vger.kernel.org; >> timur@codeaurora.org >> Cc: linux-arm-msm@vger.kernel.org; >> linux-arm-kernel@lists.infradead.org; >> stable@vger.kernel.org; Don Brace ; James >> E.J. >> Bottomley ; Martin K. Petersen >> ; esc.storagedev >> ; open list:HEWLETT-PACKARD SMART ARRAY >> RAID DRIVER (hpsa) ; open list > kernel@vger.kernel.org> >> Subject: Re: [PATCH V3 2/2] scsi: hpsa: drop shutdown callback >> >> EXTERNAL EMAIL >> >> >> On 05/28/2018 02:21 PM, Sinan Kaya wrote: >> > 'Commit cc27b735ad3a ("PCI/portdrv: Turn off PCIe services during >> > shutdown")' has been added to kernel to shutdown pending PCIe port >> > service interrupts during reboot so that a newly started kexec kernel >> > wouldn't observe pending interrupts. >> > >> > pcie_port_device_remove() is disabling the root port and switches by >> > calling pci_disable_device() after all PCIe service drivers are shutdown. >> > >> > This has been found to cause crashes on HP DL360 Gen9 machines during >> > reboot due to hpsa driver not clearing the bus master bit during the >> > shutdown procedure by calling pci_disable_device(). >> > >> > Drop the shutdown API and do an orderly clean up by using the remove. >> > >> > Signed-off-by: Sinan Kaya >> > Link: https://bugzilla.kernel.org/show_bug.cgi?id=199779 >> > Fixes: cc27b735ad3a ("PCI/portdrv: Turn off PCIe services during shutdown") >> > Cc: stable@vger.kernel.org >> > Reported-by: Ryan Finnie >> >> Tested successfully on DL360 Gen9 and DL380 Gen9. >> >> Tested-by: Ryan Finnie > > The shutdown path issues a cache flush to the controller. > Without this flush, you will see "Dirty Cache" messages at POST. > It is best to keep the shutdown path. > I have seen that shutdown() is also called from remove(). remove() is supposed to do a safe cleanup too. If it is leaving the hw in inconsistent state even though it is c lling shutdown , it is yet another bug. > Thanks, > Don Brace > ESC - Smart Storage > Microsemi Corporation