From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp2130.oracle.com ([156.151.31.86]:53626 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388988AbeHATdu (ORCPT ); Wed, 1 Aug 2018 15:33:50 -0400 Subject: Re: Possible race condition in the kernel between PCI driver and AER handling To: gokul cg Cc: linux-pci@vger.kernel.org References: From: Thomas Tai Message-ID: Date: Wed, 1 Aug 2018 13:47:00 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-pci-owner@vger.kernel.org List-ID: On 08/01/2018 01:42 AM, gokul cg wrote: > Hi Thomas, > > In my hardware, there is i2c power control chip for PCI card, I just > powered down using i2c command . Hi Gokul, When you power off the card via the i2c, it forcefully power off the card without notify the kernel? That is, during the card power off sequence it manages to send a last AER isr to report the error and die? I am kind of expect the pcie surprise removal or hot plug driver will handle it correctly. Thanks, Thomas > > Regards, > Gokul