Received: by 10.223.185.116 with SMTP id b49csp1273382wrg; Fri, 23 Feb 2018 15:14:26 -0800 (PST) X-Google-Smtp-Source: AH8x225VIzn5e1OCdfu9dHuu1UTMuoCUF5FUcOcAvc4ZhyRaD3zGm18/dpoAftuA1x1hpaVhM1wu X-Received: by 10.101.78.143 with SMTP id b15mr2640305pgs.229.1519427666049; Fri, 23 Feb 2018 15:14:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519427666; cv=none; d=google.com; s=arc-20160816; b=Yud6RvrZvh2Kt8SBqEsy1BJskqYkOEI3rfCCQsbv+nBCS/tu47YxfMbJ2kXrVUAeHh JKYAP8QTQLT3JJqYksdYdqn8FNL66MyNuxyRmU7eU4CTh2Z6V7lxWw60Eisbxwcfnpme dfsdA1ck6DOkU0u6VOccptKIBOaCT0JanYHspOdRQauH7TpvJydJM4ViXovpmWMTDnSs awQRW14byXb2SM9pVNz6Tlz8vCm1RRcglDsPYKTXIVu0DzMkPAJMPGYTArl7k8lxJ30Z pPyeOg4hdV4nsdtlJn8Nyw67nNfszxzU9FdzY3v+FE2rynAeu/3odJWId2DFnUny8OOw JO+w== 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:dmarc-filter:arc-authentication-results; bh=e1xP2ClrIq+KDi8bjuOgua35wezaXgjviplMlJtvoDg=; b=jzOcjPKqlNPId5CyaSrUMTlQy8EdpsJQ92d0i1oBd39CelFKTmFLRDWHleDx2tHuaH mgyTA/Mlfft0lA1UHVuoossmdNQv0cZ+XdkxAT9jMyYm6XnITjWdAn8LC1tLrKw1dYch 7R/z0LJXHqpaKPHC74lPuL+Wt8J7c2mJpcFA0MVtm5g4uzFFaZ8VOTaFF/TUTuZCAR+W HBjbmmyyKESzutoVU4Y6aOVMI426nb3muBYhETZiKrGTA+d0ubXRoj6wWQCconS1oWsa KE+UytJKpb3Rcx05nvGvSdRIW0qIxVxQq6e8AiZDGBNPsmaFS2i1J7uW5w6LxaPYOlKg 6tng== ARC-Authentication-Results: i=1; mx.google.com; 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 w189si2529489pfb.297.2018.02.23.15.13.57; Fri, 23 Feb 2018 15:14:26 -0800 (PST) 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; 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 S1752417AbeBWXMk (ORCPT + 99 others); Fri, 23 Feb 2018 18:12:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:42962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752217AbeBWXMi (ORCPT ); Fri, 23 Feb 2018 18:12:38 -0500 Received: from localhost (unknown [150.199.191.185]) (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 D2B9420837; Fri, 23 Feb 2018 23:12:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D2B9420837 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Fri, 23 Feb 2018 17:12:37 -0600 From: Bjorn Helgaas To: Oza Pawandeep Cc: Bjorn Helgaas , Philippe Ombredanne , Thomas Gleixner , Greg Kroah-Hartman , Kate Stewart , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Dongdong Liu , Keith Busch , Wei Zhang , Sinan Kaya , Timur Tabi Subject: Re: [PATCH v11 0/7] Address error and recovery for AER and DPC Message-ID: <20180223231236.GO14632@bhelgaas-glaptop.roam.corp.google.com> References: <1519374244-20539-1-git-send-email-poza@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519374244-20539-1-git-send-email-poza@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 Fri, Feb 23, 2018 at 01:53:57PM +0530, Oza Pawandeep wrote: > This patch set brings in error handling support for DPC > > The current implementation of AER and error message broadcasting to the > EP driver is tightly coupled and limited to AER service driver. > It is important to factor out broadcasting and other link handling > callbacks. So that not only when AER gets triggered, but also when DPC get > triggered (for e.g. ERR_FATAL), callbacks are handled appropriately. > > DPC should enumerate the devices after recovering the link, which is > achieved by implementing error_resume callback. > > Changes since v10: > Christoph Hellwig's, David Laight's and Randy Dunlap's > comments addressed. > > renamed pci_do_recovery to pcie_do_recovery > > removed inner braces in conditional statements. > > restrctured the code in pci_wait_for_link > > EXPORT_SYMBOL_GPL > Changes since v9: > Sinan's comments addressed. > > bool active = true; unnecessary variable removed. > Changes since v8: > Fixed Kbuild errors. > Changes since v7: > Rebased the code on pci master > > https://kernel.googlesource.com/pub/scm/linux/kernel/git/helgaas/pci > Changes since v6: > Sinan's and Stefan's comments implemented. > > reordered patch 6 and 7 > > cleaned up > Changes since v5: > Sinan's and Keith's comments incorporated. > > made separate patch for mutex > > unified error repotting codes into driver/pci/pci.h > > got rid of wait link active/inactive and > made generic function in driver/pci/pci.c > Changes since v4: > Bjorn's comments incorporated. > > Renamed only do_recovery. > > moved the things more locally to drivers/pci/pci.h > Changes since v3: > Bjorn's comments incorporated. > > Made separate patch renaming generic pci_err.c > > Introduce pci_err.h to contain all the error types and recovery > > removed all the dependencies on pci.h > Changes since v2: > Based on feedback from Keith: > " > When DPC is triggered due to receipt of an uncorrectable error Message, > the Requester ID from the Message is recorded in the DPC Error > Source ID register and that Message is discarded and not forwarded Upstream. > " > Removed the patch where AER checks if DPC service is active > Changes since v1: > Kbuild errors fixed: > > pci_find_dpc_dev made static > > ras_event.h updated > > pci_find_aer_service call with CONFIG check > > pci_find_dpc_service call with CONFIG check Woof, v8, v9, v10, and v11 all in the last two days. It's OK to wait a couple days for feedback to settle out before posting a new version :) > Oza Pawandeep (7): > PCI/AER: Rename error recovery to generic pci naming > PCI/AER: factor out error reporting from AER > PCI/ERR: add mutex to synchronize recovery > PCI/DPC: Unify and plumb error handling into DPC > PCI/AER: Unify aer error defines at single space > PCI/DPC: Enumerate the devices after DPC trigger event > PCI: Unify wait for link active into generic pci Please capitalize the subject lines consistently. Please capitalize acronyms in English text, e.g., PCI, AER, DPC. Please use a blank line between paragraphs in changelogs. I have more comments on individual patches.