Received: by 10.223.185.116 with SMTP id b49csp2301839wrg; Thu, 22 Feb 2018 11:25:39 -0800 (PST) X-Google-Smtp-Source: AH8x225zobzpMJLiCg2kJ61FA7eLS9QE1kDV5GGhf9Gs2bOb9jUj5XOaqklSCJyEhkl1HSRG1whm X-Received: by 2002:a17:902:69cf:: with SMTP id m15-v6mr3647361pln.104.1519327539817; Thu, 22 Feb 2018 11:25:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519327539; cv=none; d=google.com; s=arc-20160816; b=NNV/s12RfGXOUhYiFnp72TBUwFp3q7HNk/ZI4FxO9TJ1iFf0/ivLEJs+ah47ZISWJ4 bKMzWuqRR4lXjdKdx/HfmZmq2YcBm165We30Mc33zyLsDmOEqbxGjnw43gFt9wSwJyt8 l+UlmWnaUztFr69U0e4QneBj7QtgHYnkpHH2b/TAyOcnEqGfS/NsmjCG+YokNgkPVgQy /5Q4Q5aBSr5d8Se5UqOKvo6lR2LPJ6kd0wEdSmCIhgq6dCu6Pfu/BFnqWDAUbfS9xjJx fZN4zfWweJQHWLSfGsNZiLwqSITGBAqws3t6iGI7j8bpEkjZZtcUBwfbuHwuoGJRghaw 6stg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:to:subject:from:dkim-signature :arc-authentication-results; bh=A1wSrgvMqlqzM3pqBALY8s+AqpQtz80ARk0u9dcZ/bM=; b=aUmlfrzZzGrm9E0ZBlR8A2CPtG2BXOWU1W+we4usRq0TLwv0TaxyZ8a7zA2A9WhEby q9TkfAivi3ok7IcdE+UUfHbc6SrzLlpRKwQB6fqoNzepeOnVwDTo1i7m7kxwQh0Wk3Jj EujQZzldVR2rrW5UnF8qzNjYz/ZE5ZOR88seGDgXiLbMY2fKTabrf0KnpLx4G5UalIvv 0teSTojrS499OlprAFgab1yaRFGIcrUBtRTAo+ccdSmwdJHxpcDUbpnoW6CD6nJBbTpI OdMjiLa/7MDB+Kbn9rg4t+kGz2/b46WtUjqtZ1lVmXdzG/8xRYB5PxHdawlwa9Qmzvqt 09Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=KbXk6isO; 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 f8-v6si450776plo.813.2018.02.22.11.25.25; Thu, 22 Feb 2018 11:25:39 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=KbXk6isO; 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 S1751353AbeBVTXs (ORCPT + 99 others); Thu, 22 Feb 2018 14:23:48 -0500 Received: from merlin.infradead.org ([205.233.59.134]:56492 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750725AbeBVTXq (ORCPT ); Thu, 22 Feb 2018 14:23:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:References:To:Subject:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=A1wSrgvMqlqzM3pqBALY8s+AqpQtz80ARk0u9dcZ/bM=; b=KbXk6isO/9cSLb17C8FKpW1eG4 IY269HAJKBgFfILqmdeGxpWYyHCSvJzGq9pE7UqRmLqWNYZowKlTN9fjO3XXxSjjlcAIo8vqNqTby yvCdrPFbFffdplcFVXppvhTSIc3a6pvBsvY5lqiEvoV5JqZRmXXFYmUb4tx977S+/A1cCrRouiwlz T4KL2TPze3gpx9HYBmbVDfB93l83Ar9WR8JLBkjD3q3XuEKwDaMu1aj5AJmcxCC5MqgdPokErwga2 3SqM6rQ6WM5bYbE7MEaBtHGU3/A9x7J2mc8ru3GhVbQ9/hHJUUzzoRKPd0x4Q/CS/Zm5QupBcUo69 Yzv/frVQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1eowSw-0000NF-6w; Thu, 22 Feb 2018 19:23:38 +0000 From: Randy Dunlap Subject: Re: [PATCH v9 4/7] PCI/DPC: Unify and plumb error handling into DPC To: Oza Pawandeep , 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 References: <1519285571-5634-1-git-send-email-poza@codeaurora.org> <1519285571-5634-5-git-send-email-poza@codeaurora.org> Message-ID: Date: Thu, 22 Feb 2018 11:23:35 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1519285571-5634-5-git-send-email-poza@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > 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. thanks, -- ~Randy