Received: by 10.223.185.116 with SMTP id b49csp263858wrg; Thu, 22 Feb 2018 21:21:50 -0800 (PST) X-Google-Smtp-Source: AH8x224nL+Hk9FIJErpiRcwIqQKrm7GizdXleQ6nXkVZbU6FPt0QlyeR88uSePlDKMnXVaL2JF9p X-Received: by 10.98.58.129 with SMTP id v1mr510488pfj.203.1519363310484; Thu, 22 Feb 2018 21:21:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519363310; cv=none; d=google.com; s=arc-20160816; b=cq4K4NYfiz/L5Ykz7yIdlAeaOg4FC55HqfJEkljcxOqnvKWPoVnqJrRKRxTChxqCy0 SzO19hMJ5WZVpJqimQ2PW+l2oJhfLG0kjtK+KUqoWF6OVD8EUjqnJbDpFQ5LH88trfLf imlYSc5lWcsYW9yOiqdRY/ekF8qY706WBSNTjqcEZm/dBxJJJSWGorjL80hFHNkEmi8l oGT5Cc/zdJ8seF1Bn/qtW42jf/xikniaREhpwqKY9S89se8Q4MAw8JGEIShlb8P4zPIf tT8eBEeZmr8RxOADLdKn233inJrFGvqx+OysrWdr51XNYhvlciX+eu5+oPbWjBEOLlyu BYGQ== 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=e4C2XdMN5ri+9xfxCKCCbpyK8m/hSqYinvWY2whq2+E=; b=ybC0vfohJhUnU0/CGixWcEVRtidaxarGN0bkGVpOLh8NNsE+BiiVAoc85ba0RJg8OH B87nDvTQ45xge6Q8UhIYbw4T8MIW9KiqnoMpbK1MGjZ/YvXFOeP86MJysvBZWWpMruyV 42YEciBKe1M7fWsTTnLbdglommh1gro/qVoYiKUiheuJXFcmnfwbjX2rXRQrsDE9jr9q OF9RnCmCHjtRoHZ1irhutTIzlNAeyFjaB02VSR7zW71kgAJDw3zkstPJ8/v6ZjDznTAc g4Reow88KD/mCfgmeNZKLTY43rjXf+XyRBVvHoupEuKNkzqrVrasqDQjbRZzrgUGDPDU D4/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=HFu2BSux; dkim=pass header.i=@codeaurora.org header.s=default header.b=RGcbeUn8; 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 z62si1024620pgd.688.2018.02.22.21.21.33; Thu, 22 Feb 2018 21:21:50 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=HFu2BSux; dkim=pass header.i=@codeaurora.org header.s=default header.b=RGcbeUn8; 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 S1751365AbeBWFUy (ORCPT + 99 others); Fri, 23 Feb 2018 00:20:54 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:56810 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750827AbeBWFUw (ORCPT ); Fri, 23 Feb 2018 00:20:52 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 10530608BF; Fri, 23 Feb 2018 05:20:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519363252; bh=71mpufpWbme739UJ/2c6HqYp/datrYdo5F4MaPLlx70=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HFu2BSuxHf22t9nXuQBD5LI3HFOOsNajw33Bhv5LEEuG8OVy+4P/oAunh1l7Wq2nL nQWbqpSl0Z1PghJ/As9xZ0MomL1UuF60wH1VasQrGOdlhnCQfuB/LNXZ23cZslIwRd yGzj8FEb6N1sN0N0YjGsBIcl1rJl1oP6G2PejhUg= 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 EBBF1606DC; Fri, 23 Feb 2018 05:20:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519363251; bh=71mpufpWbme739UJ/2c6HqYp/datrYdo5F4MaPLlx70=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RGcbeUn819zEd6VhZOnuXvMPQjTkIi6kWYFXyJedgAprnO8WAv/dvM/iJtZOieWO9 fNU8SpPTNDqU+YJ/l9JbVIznCRQvIkzYoT/SB04EWedMYi+AbPDlKwzM1iKxkKahQB UyJirwvO1igJ3C7FcWJyN1vZGQhDtQp2be8Ub/qo= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 23 Feb 2018 10:50:50 +0530 From: poza@codeaurora.org To: Randy Dunlap 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 v9 4/7] PCI/DPC: Unify and plumb error handling into DPC In-Reply-To: References: <1519285571-5634-1-git-send-email-poza@codeaurora.org> <1519285571-5634-5-git-send-email-poza@codeaurora.org> Message-ID: <5e3c1878229d1524a918b85d94b5bf82@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-02-23 00:53, Randy Dunlap wrote: > On 02/21/2018 11:46 PM, Oza Pawandeep wrote: >> Current DPC driver does not do recovery, e.g. calling end-point's >> driver's >> callbacks, which sanitize the sw. >> >> DPC driver implements link_reset callback, and calls pci_do_recovery. > > Hi, > What does DPC mean? > DPC (Downstream port containment) is PCIe RP or Switch feature, which if detects FATAL error messages halts the outgoing traffic, and PCIe link reset and quiescence activities are taken care by HW, and recovery is made. followed by that; normal operation can be resumed. >> Signed-off-by: Oza Pawandeep >> > >> diff --git a/drivers/pci/pcie/pcie-dpc.c b/drivers/pci/pcie/pcie-dpc.c >> index 38e40c6..208b427 100644 >> --- a/drivers/pci/pcie/pcie-dpc.c >> +++ b/drivers/pci/pcie/pcie-dpc.c > >> @@ -82,12 +137,25 @@ static void dpc_wait_link_inactive(struct dpc_dev >> *dpc) >> dev_warn(dev, "Link state not disabled for DPC event\n"); >> } >> >> +/** >> + * dpc_reset_link - reset link DPC routine > + * @dev: pointer to Root Port's pci_dev data structure > > * @pdev: ... > >> + * >> + * Invoked by Port Bus driver when performing link reset at Root >> Port. >> + */ >> +static pci_ers_result_t dpc_reset_link(struct pci_dev *pdev) >> { > > You can use 'make W=1 ...' to find kernel-doc warnings like this. > sure thanks for this tip. ps: I am going to post v11 to address some comments. > thanks,