Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp566087ybg; Wed, 10 Jun 2020 07:59:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhcAtqSBBa77qRkubg37cUKe950EgYjIPsWF58iHboRZYj2QcoZUlt5ECaRHUY8A+Qlrql X-Received: by 2002:a17:906:5e06:: with SMTP id n6mr3579102eju.504.1591801189313; Wed, 10 Jun 2020 07:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591801189; cv=none; d=google.com; s=arc-20160816; b=WtXVRojl6SSoGJwTHHROl6N0qkLnKwHaKekEXAmS3n/O2pdKCQDPrauhaVn1wjSc8h 604cju7xhMHb6tE+w3OE9o3JwpXmC4oji8OH150GfOlr/IOzlTS2QZwwyMMnCslX76l7 K16BK0yKeWH4beuO+KD1O539IdA/SAYD0yLgH9HzKy6R1/7SRKB7swcGQXJQ8QdRfMq1 AeGjakjj49u7B6M0LvA/VkfXgW2ALa0LEwQfpLocZpc27Kr3NEEVKGtW3RK/yejFDOYQ MKr3Y97hdnkKoMPri4gUnkaLDxzicjisPnguCLSHTACKg69yKSu+CBcAIj4tteY3fsha 1XVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=CI9kHb4mGO81CX3EUW2FC2xqFHCm7lSUcyfTb29c7BU=; b=O8/YBnu0EQ1hbAEoJTz6oN8R7Rt9r/bqLtfKl686ASGjlFXMy4UcbRnwJsGOc4ObpJ /fTmquloqz7l7MtqkWTn0nm7ZtJ/E4UoYYHAVH3iLfrsNUS/KMIGg3kxjIw0j+Qljaue 6hoYOvBjhj/pHk9OE7WR12gZEEjePPpikgDIikDezlEh6ikH5V8ovCg0/CwP/H5oHt15 qQ3DZvPlZi7zMbXgPAECGSEFmCKIC14H3PyumDbthj0ZhJQdAcMsrHBMq9QP7iXxFMoT WVAzhkQ270LsU4iqMAfWuJOLiQd95Z55S3Xd7q6/72hBYakumQcol6tslQI5t5y/pdwY umJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si118064ejs.720.2020.06.10.07.59.26; Wed, 10 Jun 2020 07:59:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727976AbgFJJwV (ORCPT + 99 others); Wed, 10 Jun 2020 05:52:21 -0400 Received: from mga01.intel.com ([192.55.52.88]:32460 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbgFJJwV (ORCPT ); Wed, 10 Jun 2020 05:52:21 -0400 IronPort-SDR: cduVAJmSd528RDmgIk+Mld6BseDiHugEed6+7LwJJmXVKZ2ISNf7Sz1KzUlKw3aIqJMAmfXDEK Y8yid7HmNRZw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2020 02:52:20 -0700 IronPort-SDR: ZzvQkhgHvZvcqUrsFkdxNV042deSsHvS0fa9T3uHHvJaSIVqlnf2duh5G5SMtRJVqC7f+Ipxy2 DRs7ZtW3wSyA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,495,1583222400"; d="scan'208";a="380013092" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.163]) by fmsmga001.fm.intel.com with SMTP; 10 Jun 2020 02:52:18 -0700 Received: by lahna (sSMTP sendmail emulation); Wed, 10 Jun 2020 12:52:17 +0300 Date: Wed, 10 Jun 2020 12:52:17 +0300 From: Mika Westerberg To: Paul Menzel Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, LKML , Mario Limonciello , it+linux-pci@molgen.mpg.de, amd-gfx@lists.freedesktop.org Subject: Re: close() on some Intel CNP-LP PCI devices takes up to 2.7 s Message-ID: <20200610095217.GE247495@lahna.fi.intel.com> References: <20200609154416.GU247495@lahna.fi.intel.com> <3854150d-f193-d34e-557e-41090e4f39b5@molgen.mpg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3854150d-f193-d34e-557e-41090e4f39b5@molgen.mpg.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 10, 2020 at 08:18:07AM +0200, Paul Menzel wrote: > Thank you for replying so quickly. Hopefully, I’ll be able to test the > commit tomorrow. > > One question though. The commit talks about resuming from suspend. I > understand that training happens there. > > In my case the system is already running. So I wonder, why link(?) training > would still happening. It also includes runtime PM so when the PCIe topology goes into D3cold the links are "down" so once you run tool such as lspci the links need to be re-trained to be able to access the devices connected to them.