Received: by 10.223.185.116 with SMTP id b49csp864072wrg; Wed, 21 Feb 2018 08:08:21 -0800 (PST) X-Google-Smtp-Source: AH8x224qCyTMcgTMxWZ5H1rJwm+IZOpo6HRv+ROy3z7ISXCS+PhVOabGlZcmWleHUKkenycjvLvk X-Received: by 10.98.7.73 with SMTP id b70mr3756517pfd.39.1519229300973; Wed, 21 Feb 2018 08:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519229300; cv=none; d=google.com; s=arc-20160816; b=R+4POTVG5K2/NHNAvb6Gc8RY5YOYcMaYh+suU3YpjBV5VXo6uY7cO43tIP9NY7SWBh zjOKui70ODJ5mn4GqxwI5PM2JPEKWYmH6kj8YzbYKHyupBvGmvwaGvnxnTUX+7V8HZML kUI82ysdXliceuMHGj0NnJNoafepK1OIM4+Si6RQPpBmYylTjHry0SHvDz5tI83d+XD5 PTNw2BADLEBLGI/sR3pIFIy6ZAzwn19qdI1RycO+lfIzsFFRO7RLS7JxshMctDDqjDgG SUPX2d3XA9J5ITiGbxCZZbRcrZ8c0nyue63T6X2ZhUOEb0TSmB2sGlP/lKvx4YkuCyo3 +l/g== 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=9puy63KBmRlPdy9Hvj9CafkdIBpqBDngKT5FE2O6zns=; b=tcbLuThLXiA74qFFVn5x3nwloBcvgRGg9m0kmybgAiCOz3P9u9jUYubE/l31qi6R7A Ka+KwewAnSjMl3eRENBTeqMcybcrAW3Jw7I0wxswaY68uCYfp4u3gHUkg0/fXZTVFjZS SdkRzoEuGqxvyV8rDdIGiO7Lb+AGmeWSUyMBGpwH2i4g5BYMw+XiAIRQL05OSPryN0pR R3KiRckqP+LeFCi49Fw7gYuG4F7YYJmDKxYGF8KramZGfve6/A440dGM3GN4ftB/51r8 Rs4ucFFlFJhI5BKCi5uOTfz0fec3J6zQ8ouGzbuM2z4GC9puyfHmTThkXjwp4cJAazxf T1JA== 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 o62si1194901pga.158.2018.02.21.08.08.04; Wed, 21 Feb 2018 08:08:20 -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 S1753453AbeBUJyk (ORCPT + 99 others); Wed, 21 Feb 2018 04:54:40 -0500 Received: from mailout1.hostsharing.net ([83.223.95.204]:49199 "EHLO mailout1.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752656AbeBUJyj (ORCPT ); Wed, 21 Feb 2018 04:54:39 -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 mailout1.hostsharing.net (Postfix) with ESMTPS id AFEC110029D3B; Wed, 21 Feb 2018 10:54:37 +0100 (CET) Received: from localhost (p4FC5F26C.dip0.t-ipconnect.de [79.197.242.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by h08.hostsharing.net (Postfix) with ESMTPSA id 522D4603E059; Wed, 21 Feb 2018 10:54:37 +0100 (CET) Date: Wed, 21 Feb 2018 10:54:35 +0100 From: Lukas Wunner To: George Cherian Cc: Bjorn Helgaas , "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: <20180221095435.xe5lmes7mpxca3en@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) 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 02:58:13PM +0530, George Cherian wrote: > I will explain the setup used > To the Cavium ThunderX RC the following PLX device is connected. > PLX Technology, Inc. PEX 8747 48-Lane, 5-Port PCI Express Gen 3 (8.0 GT/s) > Switch > There is no device connected downstream to the PLX switch. > > AFAIU the pcie_port driver probes PLX and enters autosuspend after 100ms > since pci_bridge_d3_possible() returns true. > > And later pci_sysfs_init() ends up doing a config access of PLX which fails > with a "synchronous external abort" Then you're missing a pci_config_pm_runtime_get() in pci_sysfs_init() or further down in the call stack, rather than a quirk which just papers over the issue. Thanks, Lukas