Received: by 10.192.165.156 with SMTP id m28csp717340imm; Mon, 16 Apr 2018 07:38:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Dcpp8/z2mP0pVeket9aaho2taShM7+Mo9mpeQ6zdq4++4jRnbKf3E+em06AZwlHNP5cHz X-Received: by 10.99.56.8 with SMTP id f8mr13289470pga.374.1523889481664; Mon, 16 Apr 2018 07:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523889481; cv=none; d=google.com; s=arc-20160816; b=k2YY7buDlODe2fqaF/ifkHfTPnjGkN8NwdnEvCfrL+lMVTgM/khMUcyWSRp6aS2M49 bhPvEFawM1Y3adpMpieis43yBVJjS6k+ohYCtiZ3NqLAzNLHJIOoca0UhN8SQLQNbTdo Yt1rMnourS9YViuPS20xDBvUOFD7O1JIAFeRp6WTJM8Ww0B/jMyYu1We9nAAVGeK5HsT yczXfAfPznErc97T9u8L1YFswC3Dq1bQkBML1Id7ttM0GjXg4jT+zYmLU7KrXHyyieXt 4kSEcr++5YXeYm/dkoBsQMEQ71QXVPAxLqVe1Kf5XGhUT1XYqVeaxzhTJMGC1/vPzDrv tNyg== 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:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=dxDP2BzgPHof10QGtW/RcbSQZgsmbGO1bb08sW1rhtI=; b=YtxcHC/+AqxVHcU8PMyL1aTDV+Soe7WWIw/8CxDJJuXLWnz3LAnapti7+qhgbhfTIJ CD7NKjVOhDHA4/bqIumh08ac7v+TZRcUnJaV1JKvJ4vtSNGODAv/f3DZABtN1x8zJgBP idW5kvcPoqSZu27lN8B21XvQHwo/Fc2GURWROMW+8M4kCHt6a+0ojeVyc4YjGZNsl2FJ EFDY2W+zFSKReYUSfi+RPM7aWpAetSEZMdk2b1lc9MRsMpxP7jMoI9u6+T4v/3H2ioAr METTqF9ygeTZSHCpHEIRSILa/sehRWRRBVVjGktVHtXtTVz6e6R6HGX5hoxnrGh9J/gU /RUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=dFllkS3Q; dkim=pass header.i=@codeaurora.org header.s=default header.b=WEZTJSBD; 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 a1si10203216pfn.314.2018.04.16.07.37.47; Mon, 16 Apr 2018 07:38:01 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=dFllkS3Q; dkim=pass header.i=@codeaurora.org header.s=default header.b=WEZTJSBD; 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 S1752876AbeDPOaK (ORCPT + 99 others); Mon, 16 Apr 2018 10:30:10 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44286 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751857AbeDPOaH (ORCPT ); Mon, 16 Apr 2018 10:30:07 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EBBEF60F92; Mon, 16 Apr 2018 14:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523889006; bh=XhsaENhuMVkR/Pw5NhIm0OwIu+8DGe1cW98BFB+8bsQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=dFllkS3QOgY0aTlW8EpnggmCYpYJCBmAieqn8dF9oGeyCEhrmgP9I7nX5U9lKuF6P jrk910Hmj+hcasmhUy00bWzx2f8j21PJ4FKcawe1GpBJIrcpSUxdinJPhJY8mRWSEC Sdj0DmhP9RJAiYVAdCqa5rLMOo6X78oCDZ08y2g4= 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 [10.235.228.150] (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A017B601E6; Mon, 16 Apr 2018 14:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523889005; bh=XhsaENhuMVkR/Pw5NhIm0OwIu+8DGe1cW98BFB+8bsQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=WEZTJSBDZse176ikvniOM8Qo8Ymt148IghQUC61Ss4p1oK9NWB+Yq2gUNWATBl7lm 3C2UzM2IP6h4hQ59pxVstRyG9RQGYE2lFwGh7xMOcA3rZQvScK28yIAOk8N4UEzHC9 l3xJ5O7PDMM9GRPytwvMWUkJx5WBrhqo/q4MBmRE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A017B601E6 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org Subject: Re: [PATCH v13 0/6] Address error and recovery for AER and DPC To: Bjorn Helgaas , poza@codeaurora.org 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 , Timur Tabi References: <1523284914-2037-1-git-send-email-poza@codeaurora.org> <20180416031600.GB80087@bhelgaas-glaptop.roam.corp.google.com> <5b4e667f-bead-a007-78dd-e42d3194f232@codeaurora.org> <9301606a70a213c180d9e6764b002cf9@codeaurora.org> <20180416132753.GA28657@bhelgaas-glaptop.roam.corp.google.com> From: Sinan Kaya Message-ID: <91420f0f-31c1-0d82-63cc-627fb4920b6d@codeaurora.org> Date: Mon, 16 Apr 2018 10:30:03 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180416132753.GA28657@bhelgaas-glaptop.roam.corp.google.com> 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 4/16/2018 9:27 AM, Bjorn Helgaas wrote: >>> We realized that DPC and hotplug is heavily integrated today. We >>> have use cases for systems without hotplug support but still >>> support DPC. That's the problem we are trying to solve with this >>> patchset. > Apparently there's a problem with systems that have DPC but not > hotplug. It will be extremely helpful if you can articulate what that > problem is and include it in the appropriate changelog. > At a higher level, the DPC driver performs the stop operation regardless of hotplug. However, DPC driver relies on hotplug driver observing link up to re-enumerate. Of course, when the system didn't support hotplug; there was nobody to restore functionality. Our initial attempt was to also do a re-enumeration in the DPC driver regardless of hotplug driver in the system or not. If hotplug driver is present, it would observe two enumerations. It still worked as long as these were protected by a mutex. Then, we got your input that you want DPC and AER to behave the same. We started converging towards the AER path. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.