Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5596127imm; Tue, 18 Sep 2018 12:06:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaUIPzwx7wNSMlM634cXpLRP/GG4bjgmYYrldZeNLZDnBrYTx/Cc6LEqRvi4B2R9XEFq1Q7 X-Received: by 2002:a63:6d4f:: with SMTP id i76-v6mr28797296pgc.215.1537297597247; Tue, 18 Sep 2018 12:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537297597; cv=none; d=google.com; s=arc-20160816; b=o1cCrYGHBrIhnaxyAdzTW4oV8bn8lMHFYReXR4jKFuD+PPj2tYH7g0bPLay6P5O6qM 2V5ye1We8ExgBPRsoEL4gm2vdsV9u2zfNj5qgJ1Hf4QoxcNIVXPKNFpRM6YLnSqIJGf5 Z3r5YBU+V81kqLarbLB/ghuIcXE4qVSLDsU85bghUphE2lQTKCa6Bn9DXh7qfLlM7AQB Wg5Ra/Fv9Wj+j5K4mRkrRYqndokO3nrC7axP4TSzY5Qj4X0TOVlK50Y/GCUx/7uPzhqM Su4PSzzoke59ZfKeTzotkePEOTMwsvayh1Wyg/WkQZVV73LoxXsuDqARNiCjchn7+xKT a2Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=fkU1SX9eqmIHVDDsnYY4F4ajoaRD3rZ62hg6tDzU9Do=; b=PE8KFBHAQ5jbRSfRixVX9PKzijlR26CQEZWygR4HeZVJz5E4NJ/KI6RikNeTdcXM5R vPZi33/zA4SCvAZAwBlx2Knk7FUp+K9rTYwKM15u8OiAFAXHvcHDAKcYby9uN4z7iqoo 8MM+hYElKN8Vg7/bAo0FzFUS6dvqr5EP6dB1Qn9n1unnXV938InToHNsbbkimxfhMTMj 5X/3sIP0lOu2PDF1CsT0PXSkX/nQjhT9xrjQv52gYR/xVJI09nvs+VkV7cpcSdFh/wUw maJmbycwFIPbYQT9w5z9TbJvSB9KWCoXG2rfkaVyeTN78dsl/IPT4QO9v3hBZScuD4xj d4cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Mg9OBVOI; dkim=pass header.i=@codeaurora.org header.s=default header.b=IpFsJQNG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17-v6si19136011pgj.214.2018.09.18.12.06.21; Tue, 18 Sep 2018 12:06:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Mg9OBVOI; dkim=pass header.i=@codeaurora.org header.s=default header.b=IpFsJQNG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729444AbeISAiw (ORCPT + 99 others); Tue, 18 Sep 2018 20:38:52 -0400 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 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C8A09601CF; Tue, 18 Sep 2018 19:04:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537297493; bh=1evB/4PEtGE4+5auLOhcvbyvx31j9yAeFIBIu9djTxg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Mg9OBVOImvMq8b3BF3oUqPfIpfHAGBLeCq32wcKO3Dl7VR+HocbuaWMaBNLuWs19/ h7biJgkF687OBvykFjnS0YOE6TsstdMgJHqey1HICuj9mz3hPopV6QaVvch/va3GDR UYyH4gNg2Ai7823sJ6DvEbqGvP7FDGjU51Z4IM5Y= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 92C6B605A5; Tue, 18 Sep 2018 19:04:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537297492; bh=1evB/4PEtGE4+5auLOhcvbyvx31j9yAeFIBIu9djTxg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IpFsJQNGoFzorITCkyHlH6DPDTGMgAiyjJjADyjPFY9BN+s2g4oV6H5nrkH13iinM O+IrSGjHI/exC/beTUaHmrAKuSIhrsgedNpWlO7/38BDoB5HICKHrwNX8RKCzBkcBa 3IGOAFcCJM/PDy83Va5cvesBIl+560DERyV7Tzn8= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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> X-Sender: poza@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.