Received: by 10.213.65.68 with SMTP id h4csp196834imn; Mon, 12 Mar 2018 10:57:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELvfygDx2NOvR+xG4yOFCJWXa7XLPjascJWUygxvDCPjYRvFFeJme5SHVfM/dz9lbxLqtwya X-Received: by 10.101.93.135 with SMTP id f7mr7139392pgt.82.1520877442744; Mon, 12 Mar 2018 10:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520877442; cv=none; d=google.com; s=arc-20160816; b=zVS15hBNZsyzon7rJq56UeBb304IASXk8DCCn8ot4t3ZlUYPrXfHq8yxd3ax0ZuMcH zyvd0hJc06LVHI549UrOc4omt2D3W9d7YINLtGvQzSokIxx1EHyElaeRmfjtK/nUlfNb szinUyPTHmr3G2vgJQo66rXDRLVDKotHnJz7WphsYc3nJjbKu0/8ScZqN1MGmT6DkxGa 3OTXl1+1FoGCoctSNXQWbQy41yCh8gUREaChPEHxX8t1ARyXdCFeskyYrVZujitxk6iE IQvTfdR/cvhBwSZ1cfjyw2YpcY9vjI8cahozlm6g9pa7Lbqr0f+z0QY8yOybYSM+14Rx Miag== 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:arc-authentication-results; bh=dIChs5uiM69yEwOkZ1BZfLmCZzjOOj9CpJvNrO4S3RY=; b=vHk2/WNtSAHshuVwuyY039Qbss4gmjhTTxPCpvulEQ1FI1cTK9g/t8g4CzEWW7/MVn 5W6B6WvLimi8TWcMXfS8ucyV5xgbL8rdzd6eR7JbXyZ+VJgat/7tjUMN7jljXNSC6pTf jbeIr0EQ7sGEfCaVw82Bn12vnzPCWRmAvzYhXQOpZgEGVm+dlJ5OmW2wYOiFaaTdGczW 32JnbBl5WLw/S8JYMQqtRu0OmOpRPwgn3XiUoCyhAO8mgUkMt4qXFwKrZeNyY8XAiJvl NRQBAcsbBTSH1XhLYI8BVWZSK7PZi7hD5gVw63VdzkbeO4jhed67UcmYATuZJWhwdInV BjxQ== 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 u188si5301151pgc.785.2018.03.12.10.57.08; Mon, 12 Mar 2018 10:57:22 -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 S932873AbeCLRyh (ORCPT + 99 others); Mon, 12 Mar 2018 13:54:37 -0400 Received: from mga14.intel.com ([192.55.52.115]:41789 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932792AbeCLRyf (ORCPT ); Mon, 12 Mar 2018 13:54:35 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2018 10:54:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,462,1515484800"; d="scan'208";a="23659933" Received: from unknown (HELO localhost.localdomain) ([10.232.112.44]) by fmsmga007.fm.intel.com with ESMTP; 12 Mar 2018 10:54:34 -0700 Date: Mon, 12 Mar 2018 11:56:30 -0600 From: Keith Busch To: Sinan Kaya Cc: poza@codeaurora.org, Bjorn Helgaas , Bjorn Helgaas , Philippe Ombredanne , Thomas Gleixner , Greg Kroah-Hartman , Kate Stewart , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Dongdong Liu , Wei Zhang , Timur Tabi , linux-pci-owner@vger.kernel.org Subject: Re: [PATCH v12 0/6] Address error and recovery for AER and DPC Message-ID: <20180312175630.GF18494@localhost.localdomain> References: <1519837457-3596-1-git-send-email-poza@codeaurora.org> <20180311220337.GA194000@bhelgaas-glaptop.roam.corp.google.com> <04ade52e-d1ea-fe67-bb26-246621d159e6@codeaurora.org> <20180312142551.GB18494@localhost.localdomain> <3e1a2036675de6b8456145a022640f3d@codeaurora.org> <20180312145823.GC18494@localhost.localdomain> <20180312173301.GD18494@localhost.localdomain> <57d0b245-aecb-1518-c8bb-df8b69a86bcc@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57d0b245-aecb-1518-c8bb-df8b69a86bcc@codeaurora.org> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 12, 2018 at 01:41:07PM -0400, Sinan Kaya wrote: > I was just writing a reply to you. You acted first :) > > On 3/12/2018 1:33 PM, Keith Busch wrote: > >>> After releasing a slot from DPC, the link is allowed to retrain. If > >>> there > >>> is a working device on the other side, a link up event occurs. That > >>> event is handled by the pciehp driver, and that schedules enumeration > >>> no matter what you do to the DPC driver. > >> yes, that is what i current, but this patch-set makes DPC aware of error > >> handling driver callbacks. > > I've been questioning the utility of doing that since the very first > > version of this patch set. > > > > I think we should all agree that shutting down the device drivers with active > work is not safe. There could be outstanding work that the endpoint driver > needs to take care of. > > That was the motivation for this change so that we give endpoint drivers an > error callback when something goes wrong. > > The rest is implementation detail that we can all figure out. I'm not sure if I agree here. All Linux device drivers are supposed to cope with sudden/unexpected loss of communication at any time. This includes cleaning up appropriately when requested to unbind from an inaccessible device with active outstanding work.