Received: by 10.213.65.68 with SMTP id h4csp184328imn; Mon, 12 Mar 2018 10:32:16 -0700 (PDT) X-Google-Smtp-Source: AG47ELuqC1aneXooYD5ADDfUDYsFMDy0god3e8J9kv4LgJvXSxkIrip3Ca0avY9XWksQQb+FcOaZ X-Received: by 2002:a17:902:a981:: with SMTP id bh1-v6mr8729582plb.5.1520875936595; Mon, 12 Mar 2018 10:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520875936; cv=none; d=google.com; s=arc-20160816; b=s1JKBdBpvxkqt9YqltScApqT2RSlcc6oFczcd/Iegp6+5v0ItlpJ0V7TYYLJGjCJzD x4DoLZQFijFe1XndZEKiKEEld6exh6s6ZMMB6yaAi7pl6k4vW9tN9JlN8Kb7stxCGHwR svSjnWTTKunWR0YQcw3oqxs+9rKuagHLOSLX+l1fA3AL2gGUhqQdFdJVV/WsYbJQ9ZbC KC7VaQpk4wMB5oer4yye6puuskehdByN5zYakbwsJiUTeZQ6PBp+7uY7So7oj6jYRHwu cpYUqw3bHH+2N1dDyKwEoyuCWhzu9cQ/pZUFRBU26itvesN5TOLEnY9U+7g3YlsBPuEd /Vug== 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=alsf8Eo4OswkI/SN2j/fLwlSc8UH9uoHD4635p0L+M8=; b=sjVTIq28z9GuBegPr0B+E+HV1BR4vUXCy1oBlR2/0A0CpLPb+sdgwsbdq3VTW/HTjD rd3rkZAU8m9pt92JIyteUXO4Pr7JxYBLkyRFWRftwggI+bQhqnRxLh31Z6m3He6An+FU 5Z7XsfwnyPb4g9R16G7Ya8ZduaoGfnKVr2wEGPEIHGcZL7Nw0becgLchLMDA4nAz+nIJ VIgQrYWyLXVxT0FiGjkgX25XxvYRoIw5OlqN98+FZAopIMKyoZELLpn6zEE2SDn8fJhl n2MtkKD0XrDz1hD0nMvg5i7qPkJ43uM+8IjtbE80cASJ58Bsy48EYxsZfEBRW4q8WbQa X+aQ== 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 bf3-v6si6114588plb.477.2018.03.12.10.32.01; Mon, 12 Mar 2018 10:32:16 -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 S932778AbeCLRbI (ORCPT + 99 others); Mon, 12 Mar 2018 13:31:08 -0400 Received: from mga11.intel.com ([192.55.52.93]:23764 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932548AbeCLRbG (ORCPT ); Mon, 12 Mar 2018 13:31:06 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2018 10:31:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,462,1515484800"; d="scan'208";a="37520585" Received: from unknown (HELO localhost.localdomain) ([10.232.112.44]) by fmsmga001.fm.intel.com with ESMTP; 12 Mar 2018 10:31:05 -0700 Date: Mon, 12 Mar 2018 11:33:01 -0600 From: Keith Busch To: poza@codeaurora.org Cc: Sinan Kaya , 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: <20180312173301.GD18494@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 09:04:47PM +0530, poza@codeaurora.org wrote: > On 2018-03-12 20:28, Keith Busch wrote: > > I'm not sure I understand. The link is disabled while DPC is triggered, > > so if anything, you'd want to un-enumerate everything below the > > contained > > port (that's what it does today). > > > > 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. > besides, in absence of pciehp there is nobody to do enumeration. If you configure your kernel to not have a feature, you don't get to expect the feature works. You can still manually rescan through sysfs, /sys/bus/pci/rescan. > And, I was talking about pci_stop_and_remove_bus_device() in dpc. > if DPC calls driver's error callbacks, is it required to stop the devices ? DPC is PCIe's preferred surprise removal mechanism. If you don't want the DPC driver to handle removing devices downstream the containment, how do you want those devices get removed? Just calling driver's error callbacks leaves the kernel's view of the topology in the wrong state.