From mboxrd@z Thu Jan 1 00:00:00 1970 From: hch@lst.de (Christoph Hellwig) Date: Fri, 11 May 2018 08:38:24 +0200 Subject: [PATCH] nvme/pci: Sync controller reset for AER slot_reset In-Reply-To: <20180510160113.4432-1-keith.busch@intel.com> References: <20180510160113.4432-1-keith.busch@intel.com> Message-ID: <20180511063824.GB8368@lst.de> On Thu, May 10, 2018@10:01:13AM -0600, Keith Busch wrote: > AER handling expects a successful return from slot_reset means the > driver made the device functional again. The nvme driver had been using > an asynchronous reset to recover the device, so the device > may still be initializing after control is returned to the > AER handler. This creates problems for subsequent event handling, > causing the initializion to fail. > > This patch fixes that by syncing the controller reset before returning > to the AER driver, and reporting the true state of the reset. Looks good, Reviewed-by: Christoph Hellwig From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:51297 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752343AbeEKGej (ORCPT ); Fri, 11 May 2018 02:34:39 -0400 Date: Fri, 11 May 2018 08:38:24 +0200 From: Christoph Hellwig To: Keith Busch Cc: linux-nvme@lists.infradead.org, Christoph Hellwig , Sagi Grimberg , "Alex G ." , Sinan Kaya , Bjorn Helgaas , stable@vger.kernel.org Subject: Re: [PATCH] nvme/pci: Sync controller reset for AER slot_reset Message-ID: <20180511063824.GB8368@lst.de> References: <20180510160113.4432-1-keith.busch@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180510160113.4432-1-keith.busch@intel.com> Sender: stable-owner@vger.kernel.org List-ID: On Thu, May 10, 2018 at 10:01:13AM -0600, Keith Busch wrote: > AER handling expects a successful return from slot_reset means the > driver made the device functional again. The nvme driver had been using > an asynchronous reset to recover the device, so the device > may still be initializing after control is returned to the > AER handler. This creates problems for subsequent event handling, > causing the initializion to fail. > > This patch fixes that by syncing the controller reset before returning > to the AER driver, and reporting the true state of the reset. Looks good, Reviewed-by: Christoph Hellwig