Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1256407imm; Wed, 18 Jul 2018 20:55:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfLIn96fl9L14SrbPDjTLqtOYVJOtg/cxrOv1/qTDv4zl4lwyKse0jFY9Ef8J95bn5TVb2u X-Received: by 2002:a63:de10:: with SMTP id f16-v6mr8193027pgg.97.1531972506075; Wed, 18 Jul 2018 20:55:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531972506; cv=none; d=google.com; s=arc-20160816; b=E7hgkParBO9woyOwls1GEuXezCJUbgwM138lfVGPF2WjAeVxEjb9sUd0p9ESq+mFrQ kB0tw+Ar8FrNtrFmLiH6ZyMyXNI/fBfpps/odGxcCQfrm4Ia0uOCneMn4kh7rzxlmI+p Nluf+Br2PrhH4iBU+DFTcQEvjPOtfG67sWVyAmk0G8kK6uVLUNTKy9qytYweG3fv9c18 qafN/PZWqja5n2sm6iHgxYzJ1/E1vI+Df0mGTEDsD/b0+R2HZpiLLK74laJpvrJQ6z5e h1JYK6cf+3RALG48lSk8+BTQcm9d0eobI7RGN06yo37ib6jsY9j/wRk1hNiu1+To2XQd iOEw== 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 :arc-authentication-results; bh=pS3GDIbB0b5NQoq5C+iT+5+lKWBos7vciYoAjdxOe/o=; b=HlSwa+qtX02ApxUIwxOmtJZaNlo+DeDxBSvwsrNpsKLsd2IEWJrjcNQ+nmPgxCfZYc uaRUYWKXSbu1izMcQEUUVxpdS6YTMLH7V+41dls3urdcKPaumPtXUTPpp4zJLZJjIhEl pLTrljwMLN/u+dLMqB2HzkdcPKa8LbKxnVeSlrqxy/Ao1NrETYaI2m0qCv5MuWwfaJSv 8tR8d7/hctPhvW5u8TYodVT6+FGl5FIsqS8rGFJ0IDXSvJT02i4M+kcJ+0/ndXrxayTv 63mcNrCOMq/xHPmKhKn1NbVBM+2wg3P0RyBVYaosQ8N9sjp3qGKUGncZg5JtQSDadmtN HTCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Qwvf5Rzj; dkim=pass header.i=@codeaurora.org header.s=default header.b=SspuwOKY; 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 a128-v6si5094358pfb.81.2018.07.18.20.54.51; Wed, 18 Jul 2018 20:55:06 -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=Qwvf5Rzj; dkim=pass header.i=@codeaurora.org header.s=default header.b=SspuwOKY; 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 S1727324AbeGSEeu (ORCPT + 99 others); Thu, 19 Jul 2018 00:34:50 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58712 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726672AbeGSEeu (ORCPT ); Thu, 19 Jul 2018 00:34:50 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4448D60481; Thu, 19 Jul 2018 03:53:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1531972428; bh=z3B8kmwzoEPkyawhET2X0o8s6vlc60hReJBzgB6qZKU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Qwvf5Rzjig1aPz8w3KyNH5WuQ6alfjcLIL0h6hveM1i48mIrpZVtqpNHyr4fSaxni Cfg8R5spQwkNeZ/Jb/KRichcakHf5pE20176sW31N0vmN36HKBBvmi8aVG77lcN3Mc NSuH6LAIlQ+ICoWhdsW4HG2K/RP67OOb7dNLc2Bw= 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 592E260481; Thu, 19 Jul 2018 03:53:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1531972427; bh=z3B8kmwzoEPkyawhET2X0o8s6vlc60hReJBzgB6qZKU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SspuwOKYc2wNbj+1DbzaRo1oQiy3yplhSTTrStURyR13rxzxBP++U+X5RnUl8oyFD npTnV568qAiuCzQBSnry4s1eLuFStI12+ZZyj0lg+ry1oMl4I9fVGcZfvj1xapKP4T HBrfIPAW0AmM+CQfGhMIc9/0XJEOx7zg6k3oTW0k= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 19 Jul 2018 09:23:47 +0530 From: poza@codeaurora.org To: Bjorn Helgaas Cc: Philippe Ombredanne , Thomas Gleixner , Greg Kroah-Hartman , Kate Stewart , Dongdong Liu , Keith Busch , Wei Zhang , Sinan Kaya , Timur Tabi , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/7] Fix issues and cleanup for ERR_FATAL and ERR_NONFATAL In-Reply-To: <153194245964.191586.14782253252654776509.stgit@bhelgaas-glaptop.roam.corp.google.com> References: <153194245964.191586.14782253252654776509.stgit@bhelgaas-glaptop.roam.corp.google.com> Message-ID: <35f60c57a8e8fe9503d63a62fd4776bf@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-07-19 01:14, Bjorn Helgaas wrote: > This is a v3 of Oza's patches [1]. It's available at [2] if you prefer > git. > > v3 changes: > - Add pci_aer_clear_fatal_status() to clear ERR_FATAL bits, only > called > from pcie_do_fatal_recovery(). Moved to first in series to avoid a > window where ERR_FATAL recovery only clears ERR_NONFATAL bits. > Visible > only inside the PCI core. > - Instead of having pci_cleanup_aer_uncorrect_error_status() do > different > things based on dev->error_state, use this only for ERR_NONFATAL > bits. > I didn't change the name because it's used by many drivers. > - Rename pci_cleanup_aer_error_device_status() to > pci_aer_clear_device_status(), make it void, and make it visible > only > inside the PCI core. > - Remove pcie_portdrv_err_handler.slot_reset altogether instead of > making > it a stub function. Possibly pcie_portdrv_err_handler could be > removed > completely? > > [1] > https://lkml.kernel.org/r/1529661494-20936-1-git-send-email-poza@codeaurora.org > [2] > https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/?h=pci/06-22-oza-aer > > --- > > Bjorn Helgaas (1): > PCI/AER: Clear only ERR_FATAL status bits during fatal recovery > > Oza Pawandeep (6): > PCI/AER: Clear only ERR_NONFATAL bits during non-fatal recovery > PCI/AER: Factor out ERR_NONFATAL status bit clearing > PCI/AER: Remove ERR_FATAL code from ERR_NONFATAL path > PCI/AER: Clear device status bits during ERR_FATAL and > ERR_NONFATAL > PCI/AER: Clear device status bits during ERR_COR handling > PCI/portdrv: Remove pcie_portdrv_err_handler.slot_reset > > > drivers/pci/pci.h | 5 ++++ > drivers/pci/pcie/aer.c | 47 > +++++++++++++++++++++++++++------------- > drivers/pci/pcie/err.c | 15 +++++-------- > drivers/pci/pcie/portdrv_pci.c | 25 --------------------- > 4 files changed, 43 insertions(+), 49 deletions(-) looks good to me. Thanks for the corrections. some x86 compilation errors, you want me to to fix it and push v4 ? Regards, Oza.