Received: by 10.223.185.116 with SMTP id b49csp1743395wrg; Thu, 22 Feb 2018 02:19:34 -0800 (PST) X-Google-Smtp-Source: AH8x225jYqthxLOdu1pOCx2ddSvuOfzKoC9aGWYkGI6QHROFwT5HeYJS8QO9FedNw1aq/e3u+whJ X-Received: by 10.98.171.12 with SMTP id p12mr6399270pff.71.1519294774614; Thu, 22 Feb 2018 02:19:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519294774; cv=none; d=google.com; s=arc-20160816; b=Inh8NdJLsdz4zWYcOTv0jU6+D2c3sjaoLBSQ4Ti+9SRv5MqSYtiIf8TepdVCrUMWS/ cI+smw4fF65U7GrHB2JAiBEJrbZS3hztckvCf8NdiQGCYR5RZbc+pROTm0Wq7Jgr1bSB esfZdcc0e4d1eWHl0KO/qrYmwtlWUpHlqQ9xIwE3/AGdL9RooRXzTVEFgI33YbUwdiLZ EUWW14M4wxWDLWpyEY8vveiaCnSCL9LXSiuIifl0HKp3z5GCWWGW60ult0q5j/lzl6wt Mj0K0utnF1vwRBgVZdFlgkbrnSW4iXVLl6FhxEybaxxx2i+zh2MUXU7J761oayXtG7Ek vmBw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=QFpCgxPmFXHOppP92mVeZYx8EpJQW4QQjEKlNTcv5bs=; b=BgbAeTMQpKC0+hGDfxI5WDcCpINrDZqGrp+p1CFpC7OB8TaK9jauEj0cxmMZWkk7r0 CfvLChIUonunWQftL3RyQOmJxize+2GhJfZUrA2OP7IFKs/Vccdag34Q6xsyvZakaf0i la1Tka7dzQVg2nxZM8NuZ2g3DRESwv4WWxqGINDz3uX2jGbR8QvN918keaH028mr8D2B ohYMOsy1z0ka/xnOGNcT79/VvdbYLtK0b8IBdhGjzIzQrp1b+dBm93knlFnqSlopA86A wsdq4/KAQfoOAKTfnS0LWXNaQniz1CBduWQxyHfr5M5lwvO/LyxRLwESGIpcE8gZ+QQf n4ew== 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 k69si372444pgd.354.2018.02.22.02.19.20; Thu, 22 Feb 2018 02:19:34 -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 S1753376AbeBVKST (ORCPT + 99 others); Thu, 22 Feb 2018 05:18:19 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:49515 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753189AbeBVKSS (ORCPT ); Thu, 22 Feb 2018 05:18:18 -0500 Received: from 79.184.254.228.ipv4.supernova.orange.pl (79.184.254.228) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id 37bae1cd6a2e9634; Thu, 22 Feb 2018 11:18:16 +0100 From: "Rafael J. Wysocki" To: Lukas Wunner , Bjorn Helgaas Cc: George Cherian , 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 Date: Thu, 22 Feb 2018 11:19:12 +0100 Message-ID: <1606177.uAVMQdvpea@aspire.rjw.lan> In-Reply-To: <20180222083543.GA14945@wunner.de> References: <1517554846-16703-1-git-send-email-george.cherian@cavium.com> <20180221232040.GA52685@bhelgaas-glaptop.roam.corp.google.com> <20180222083543.GA14945@wunner.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, February 22, 2018 9:35:43 AM CET Lukas Wunner wrote: > 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. Right. And the PCIe port driver doesn't do that in particular, so PCIe ports should be resumed by the resume of devices below them. Thanks, Rafael