[PATCH V3] nvme-pci: Fixes EEH failure on ppc

Keith Busch keith.busch at intel.com
Wed Feb 28 15:55:37 PST 2018


On Wed, Feb 28, 2018 at 04:31:37PM -0600, wenxiong wrote:
> On 2018-02-15 14:05, wenxiong at linux.vnet.ibm.com wrote:
> > From: Wen Xiong <wenxiong at linux.vnet.ibm.com>
> > 
> > With b2a0eb1a0ac72869c910a79d935a0b049ec78ad9(nvme-pci: Remove watchdog
> > timer), EEH recovery stops working on ppc.
> > 
> > After removing whatdog timer routine, when trigger EEH on ppc, we hit
> > EEH in nvme_timeout(). We would like to check if pci channel is offline
> > or not at the beginning of nvme_timeout(), if it is already offline,
> > we don't need to do future nvme timeout process.
> > 
> > Add mrmory barrier before calling pci_channel_offline().
> > 
> > With the patch, EEH recovery works successfuly on ppc.
> > 
> > Signed-off-by: Wen Xiong <wenxiong at linux.vnet.ibm.com>
> 
> Hi Keith and All,
> 
> We have the newer Linux distro releases came out recently, so I got more
> reports for this issue.
> 
> Test teams have verified the patch in several distro kernel version(v4.14,
> v4.15).
> 
> 
> If you have any question about the V3 patch I submitted two weeks, Let me
> know.

Sorry, I'd nearly forgotten about this one.

We need a better change log. Could you help explain how this really
works? As I understand it, I would write it something like this, but
let me know if there's more to it:

  Triggering PPC EEH detection and handling requires a memory mapped
  read failure. The NVMe driver removed the periodic health check MMIO,
  so there's no early detection mechanism to trigger the recovery.

  Instead, the detection happens when the nvme driver handles an IO
  timeout event. Since this takes the pci channel offline, we do not
  want the driver to proceed with escalating its own recovery efforts
  that may conflict with the EEH handler. This patch ensures the driver
  will observe the channel was set to offline after a failed MMIO read
  and resets the IO timer so the EEH handler has a chance to recover
  the device.



More information about the Linux-nvme mailing list