From mboxrd@z Thu Jan 1 00:00:00 1970 From: martin.petersen@oracle.com (Martin K. Petersen) Date: Fri, 11 May 2018 16:54:11 -0400 Subject: [PATCH] nvme/pci: Sync controller reset for AER slot_reset In-Reply-To: <20180510160113.4432-1-keith.busch@intel.com> (Keith Busch's message of "Thu, 10 May 2018 10:01:13 -0600") References: <20180510160113.4432-1-keith.busch@intel.com> Message-ID: Keith, > 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. LGTM. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp2120.oracle.com ([156.151.31.85]:33248 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbeEKUym (ORCPT ); Fri, 11 May 2018 16:54:42 -0400 To: Keith Busch Cc: linux-nvme@lists.infradead.org, Christoph Hellwig , Sagi Grimberg , Sinan Kaya , Bjorn Helgaas , "Alex G ." , stable@vger.kernel.org Subject: Re: [PATCH] nvme/pci: Sync controller reset for AER slot_reset From: "Martin K. Petersen" References: <20180510160113.4432-1-keith.busch@intel.com> Date: Fri, 11 May 2018 16:54:11 -0400 In-Reply-To: <20180510160113.4432-1-keith.busch@intel.com> (Keith Busch's message of "Thu, 10 May 2018 10:01:13 -0600") Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: stable-owner@vger.kernel.org List-ID: Keith, > 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. LGTM. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering