Received: by 10.213.65.16 with SMTP id m16csp56681imf; Sun, 11 Mar 2018 15:05:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELuMwemaXZfsRqg6U7RwvQR9pmk7i7+04IOM8noVXCfWGf73YATf6WS1Dvrmdz4WjBMgfKhm X-Received: by 10.99.7.147 with SMTP id 141mr4899603pgh.349.1520805959631; Sun, 11 Mar 2018 15:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520805959; cv=none; d=google.com; s=arc-20160816; b=ZqKOl1ysjx2G8aB3PG3vNIv4m9gAIWMqGNCeyrAHShIpz+1kcYGRuTeXrayzZcF15Z KGs9mZ0Jx6vSxqTpy+LIioUP/zmPx1Tro9XlMt7SijuXZM+sPV0ENCGF7QeT3prtS6aA V1PfNCvujRj0QoY6R75v4f1EaZcYUbRi7r02LwjQPK9FCUaEF6/S6z48s/Ix2gyVUjVd yjXTQPoH34b+UHwEKwJFtVE+Esfpmq00NvYbpRTbaH0AxrHmY+0DPdLglqT+s5ougciR Yqe0mIfAeoX1LeSiU95+1C+w/TOqni9nyNhpdaHzfOZRhBZUe9lYFXl55MWysF+9s5hZ B2VA== 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=B7duFtoNEM7MhCckbQwKNsfMVQhNrhnYdweJTV85Zx4=; b=f1OaYarh+YcI9gGyTE9JE0YF+S6BNJX6ofWYBpF+2T71Kcog/ZpWB0Nv+aYhh6J7B9 jV79VWh+zvbomwo/STMpXwq6eRHTBl3TIacncb2sGM4buZwLnhtamovBqHU0skNl7z+g I81WddOle96NmsW5kKaNDFrMzuYYz5qbdlF1wSQ1vxw5l4lV0eXIxtd2p1EgGBK3es/t lKJkDQ78eh1drPvC7qNtlxE8z6DqUxUsOWdeeMene2N3pl/d3IzS4egGLQeMQshkEZyP au5B7wuEIDSE8D7yhq25WL73nLliUUS0kulWmnAdTExgNdRwGQUjmIjLY3OQ4cOwrMsm bj5g== 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 u187si4096712pgc.451.2018.03.11.15.05.45; Sun, 11 Mar 2018 15:05:59 -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; 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 S932533AbeCKWEh (ORCPT + 99 others); Sun, 11 Mar 2018 18:04:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:54612 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932498AbeCKWE0 (ORCPT ); Sun, 11 Mar 2018 18:04:26 -0400 Received: from localhost (unknown [69.71.5.252]) (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 EBE51208FE; Sun, 11 Mar 2018 22:04:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EBE51208FE 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: Sun, 11 Mar 2018 17:03:37 -0500 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 v12 0/6] Address error and recovery for AER and DPC Message-ID: <20180311220337.GA194000@bhelgaas-glaptop.roam.corp.google.com> References: <1519837457-3596-1-git-send-email-poza@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519837457-3596-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 Wed, Feb 28, 2018 at 10:34:11PM +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. The main point of this series is to call the driver error handling callbacks (error_detected(), mmio_enabled(), slot_reset(), etc.) when DPC events occur. We've always called them for AER events, but prior to this series, we didn't call them for DPC events. That's a good thing -- we should treat DPC events as much like AER events as possible. This series does make it more obvious that there's still a big difference between AER and DPC handling -- for DPC, we remove and re-enumerate all the devices, but we don't for AER. That difference has been there since the beginning of DPC, so it has nothing to do with *this* series EXCEPT for the fact that it really complicates the logic you're adding to reset_link() and broadcast_error_message(). We ought to be able to simplify that somehow because the only real difference between AER and DPC should be that DPC automatically disables the link and AER does it in software. Bjorn