Received: by 10.223.185.116 with SMTP id b49csp1661539wrg; Thu, 22 Feb 2018 00:38:01 -0800 (PST) X-Google-Smtp-Source: AH8x226Ek9EmIld0Tar3SsGdTBVQCIc/pgzKYhKExuR9esQEGGazrKmZMzps+pcwxiOpnc9dcD+X X-Received: by 10.101.99.205 with SMTP id n13mr5089867pgv.345.1519288681218; Thu, 22 Feb 2018 00:38:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519288681; cv=none; d=google.com; s=arc-20160816; b=bqLNFQZ468yLqhJM7vQs7ofhTjqZK9NVQChktJIE9OTLDQ6HFkc5wEo1alGXHejoyC fWocyDL6oRPkHles4HDsEni6Mn1wdt6NmvmdaGN8INIorWl8kh8YiMMfOSOemXFQEvzV wUmGOzy210s/YuFOeo/vjWwSubjZk9uR//oeTpkWhf2fdy9vRBBtsMIGmjLTqYk4CN0r hbESoYDQEELgC7BdKgtz17N1kQQnWOymmjNd1gUf/fcQp8+FOjOae/qTuV4L4lR+NClg OmV8KGZb4/6eQUM8tXZSOQjMZJIxdTlsShwh3E/ZFh6W2Wtyb0wIK8W5tel8EwyfBSSM ZOUg== 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=vhAA0WbtWNfgk8kgcM0tfDGciFBwLPA12f9c3v+32NI=; b=imsKdwyVuUlNURKkkoQTBR9irfcO9xgSDP5/F/zL1RhDXkkHqgZgzyMFoH/Z1tFhj1 xjv/irQAlAKsaNixdkK1X/q8vOEPaGY/j3WOnNtnRJqOOLMcxePg3d5W44qtEc1z9CfR wI3xiRXT73UW7ygSxedOmDKZp9N2FYNN18P2DBHLu+1si9QCFGx70bi7xcHy9WXpg4hc bzeAR+PbJYiXE/PZrote20waXP9X8uzpVtdW+jjVo6Zepnj1A5rGlyAXHjLDrezbXneT CQRj/HS+Tx6NpU4rYt5Y+VIh/xYQGo2uiMeWc6hLJgrTj2EkJLGlKnRPseL//j0v2xs6 YeoA== 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 z8-v6si7079307plh.559.2018.02.22.00.37.46; Thu, 22 Feb 2018 00:38:01 -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; 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 S1752790AbeBVIfr (ORCPT + 99 others); Thu, 22 Feb 2018 03:35:47 -0500 Received: from bmailout2.hostsharing.net ([83.223.90.240]:42449 "EHLO bmailout2.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752742AbeBVIfp (ORCPT ); Thu, 22 Feb 2018 03:35:45 -0500 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id 8BD712800C7F8; Thu, 22 Feb 2018 09:35:43 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 3EBA93E57D; Thu, 22 Feb 2018 09:35:43 +0100 (CET) Date: Thu, 22 Feb 2018 09:35:43 +0100 From: Lukas Wunner To: Bjorn Helgaas Cc: George Cherian , "Rafael J. Wysocki" , Mika Westerberg , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, Jayachandran.Nair@cavium.com, Robert.Richter@cavium.com, Lorenzo Pieralisi , Huang Ying Subject: Re: [PATCH] PCI: Add quirk for Cavium Thunder-X2 PCIe erratum #173 Message-ID: <20180222083543.GA14945@wunner.de> References: <1517554846-16703-1-git-send-email-george.cherian@cavium.com> <2323301.ORZpb3hFRe@aspire.rjw.lan> <20180216203434.GC11014@bhelgaas-glaptop.roam.corp.google.com> <2858019.9TUCWsDpTB@aspire.rjw.lan> <20180220015433.GA9656@wunner.de> <20180220190037.GB32228@bhelgaas-glaptop.roam.corp.google.com> <20180221095435.xe5lmes7mpxca3en@wunner.de> <20180221232040.GA52685@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180221232040.GA52685@bhelgaas-glaptop.roam.corp.google.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 05:20:40PM -0600, Bjorn Helgaas wrote: > On Wed, Feb 21, 2018 at 04:25:08PM +0530, George Cherian wrote: > > I have found another configuration where this fails. > > Following is the configuration > > 1) Connected a PCIe Intel i40 card under the root port. > > 2) unbind the i40 driver and bind with vfio-pci driver. > > 3) Run lspci in a loop. "lspci -s xx:xx.xx -vvv" > > > > I get the same synchronous external abort. > > In this case the vfio-pci driver probe it moves the device (i40) to > > D3hot provided disable_idle_d3 is not set. lspci tries to do > > the config_access which fails with synchronous external abort when > > the root port transitions to D3hot. > > It *looks* like rpm_resume() should resume parent devices, i.e., the > root port, but I don't know that code at all. It does that unless the ignore_children flag is set, which only few drivers do. Sounds to me like another missing pci_config_pm_runtime_get() somewhere but it's hard to tell without a stacktrace. Thanks, Lukas