Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2231219imm; Thu, 19 Jul 2018 16:01:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdlceHv46sWBdcEULHZUCh2SHDWorktYHZDSWxuX1XiN2hViQO/osHuBqG4/5erw7fyZh4+ X-Received: by 2002:a17:902:26:: with SMTP id 35-v6mr11863087pla.276.1532041268237; Thu, 19 Jul 2018 16:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532041268; cv=none; d=google.com; s=arc-20160816; b=b9x+7UNIaSsO75cjyBcgPyTnz9CxISOeJGYmOw+1v8lsLDXPI6M9jzO7FCdRElFU4J zCvORFK2ts8zMyRbJ3IuIPgbkcHZfhxul1Yj+ozNE0byyBH412PjIC8lOur3k2ihC7nA WW19gFsqxards54+t+Eugk35k51GvW+7jf97EJKzTezp6BKM0rfBe6aWMuuSvOFOtgA9 NExTFdx6br/l/EsNngBfA1CTMRml9WaA8NtsNbDwf2HW7cD4LeR2OZWeYK3W3rafgvz3 4TrgLZCcXJH5qs+XVRHL2AjUQHfbSZ5WcCDnvknROSwcweRVS4xjpqG1PRKm4rpHvQih zHUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ns0N2/cajQQJwHCY7FkmexauWIhvkOU/s/euhavXNWY=; b=knWgNg3CaatPC3o7zawE0VKdwo0bmEvtD5tUvI3v25CQkasOOduAa7jnOIWtyrUNG5 COvtcYuFOlWgnM36c8odjFiwArA0il1WFAnGzfOcJ4qvERQ1Q1ACr2eZ9BjGoKe/rgGh 9N52gE80LLTshArZzdlBuJCgftGjMts3VIY/rzt2tOXj/Tm1JoGt3PeHP9Ah/peW8YOO rtPYIM9rVRyht2PsImKN7x/ZnH6aEJZuoLAU60OE8k8cBwdYiFpSt1kytgNsUKoUVI0j WDFJKXNYQj0TqfacbkhjeZAbuUugNm14VMdKRuJXRsUQdTIaIrCoZ5YLh4oRpBAvYxDy h/Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LpO1vNL9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1-v6si338883plb.172.2018.07.19.16.00.53; Thu, 19 Jul 2018 16:01:08 -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=@kernel.org header.s=default header.b=LpO1vNL9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730811AbeGSXpd (ORCPT + 99 others); Thu, 19 Jul 2018 19:45:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:52530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728087AbeGSXpd (ORCPT ); Thu, 19 Jul 2018 19:45:33 -0400 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B1C8420684; Thu, 19 Jul 2018 23:00:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1532041218; bh=yLliuZbTiVqAFsbQKE/0bIZPS0/qXbrwqiwzrVBu918=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LpO1vNL9T9GFf/OE65oOQXIwtqD+hxrGcnJ/NIeIiLHN3WbzQxBnT7zjnpmvSysyl bH3HPRVD9TTCrqDheSVHP2LwAAwf8WzI6AknvfEXLfobEI2mq+KQ02J+k+FTrncFOh N0Fk9nlHR/R4WWoehnTb6+u5rGxYm/7VeRMiLgsg= Date: Thu, 19 Jul 2018 18:00:16 -0500 From: Bjorn Helgaas To: poza@codeaurora.org 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 Message-ID: <20180719230016.GQ128988@bhelgaas-glaptop.roam.corp.google.com> References: <153194245964.191586.14782253252654776509.stgit@bhelgaas-glaptop.roam.corp.google.com> <35f60c57a8e8fe9503d63a62fd4776bf@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35f60c57a8e8fe9503d63a62fd4776bf@codeaurora.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 19, 2018 at 09:23:47AM +0530, poza@codeaurora.org wrote: > 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 ? I fixed those already. I moved these all to the pci/aer branch for v4.19. I'll merge them into "next" soon. Thanks! Bjorn