From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.codeaurora.org ([198.145.29.96]:59590 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728721AbeISAiw (ORCPT ); Tue, 18 Sep 2018 20:38:52 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Date: Wed, 19 Sep 2018 00:34:52 +0530 From: poza@codeaurora.org To: Sinan Kaya Cc: Bjorn Helgaas , Philippe Ombredanne , Thomas Gleixner , Greg Kroah-Hartman , Kate Stewart , linux-pci@vger.kernel.org, Keith Busch , Wei Zhang , linux-kernel@vger.kernel.org, Giovanni Cabiddu , Herbert Xu , "David S . Miller" , Dan Williams , Kees Cook , Sagi Grimberg , Adaptec OEM Raid Solutions , "James E . J . Bottomley" , "Martin K . Petersen" Subject: Re: [PATCH] PCI/AER: Clear uncorrectable error status for device In-Reply-To: References: <1537258829-15763-1-git-send-email-poza@codeaurora.org> Message-ID: <49a44a7202802c20d52164403139284b@codeaurora.org> Sender: linux-pci-owner@vger.kernel.org List-ID: On 2018-09-18 20:00, Sinan Kaya wrote: > On 9/18/2018 4:20 AM, Oza Pawandeep wrote: >> +++ b/drivers/pci/pcie/err.c >> @@ -265,6 +265,8 @@ static pci_ers_result_t >> broadcast_error_message(struct pci_dev *dev, >> * The error is non fatal so the bus is ok; just invoke >> * the callback for the function that logged the error. >> */ >> + if (cb == report_resume) >> + pci_cleanup_aer_uncorrect_error_status(dev); >> cb(dev, &result_data); >> } > > In order to follow the existing behavior (drivers are calling > pci_cleanup_aer_uncorrect_error_status() right before return), > you should probably move the pci_cleanup_aer_uncorrect_error_status > after > > cb(dev, &result_data); > > line. some drivers are calling it in slot_reset, which is before resume, while some are calling in beginning of resume (e.g. netxen_io_resume) hence I have kept it before calling resume() (e.g. before cb(dev, &result_data)) Regards, Oza.