Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp590270ybx; Wed, 6 Nov 2019 05:32:46 -0800 (PST) X-Google-Smtp-Source: APXvYqz+YVMgqAG31GAcI9sUe3s58lQuW+3IabvgIXEnQQ2VGmTwWRLhfEgm1ph1ooVwa0I0VsGR X-Received: by 2002:a17:906:1d41:: with SMTP id o1mr2845950ejh.333.1573047166700; Wed, 06 Nov 2019 05:32:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573047166; cv=none; d=google.com; s=arc-20160816; b=u2wR2xnPjZNRrTmqvyBkneOam6y/2ZgI/4aSBT/qNOmuL8JUL62SpFDH5nF4QI4EwP YrQ2X2WhtiIGCKX9SXfQtUA8EA+BgOH0RjS3WQt1vnsyfmRd8jIB8qdYW2J62sOHpD0p 52EcPu8nim7zV+YZf8Xgptp3C7SuWqZM/7G+fVzEzVtwiKdo8Cdep4oWq/7KZCxK9VmN WDkfkTsEkWMrBM1sSLBXA5YVajWcDzpsQc9fujRJ8p+HLGBmP7Wbjm+mj4VT1SJHEyjN x66J5uCTCze0gD6Lx+ljH3Rbubg+9+076bXkF+ajz+X/LFaNQk0TSfXR3lZX54Dv1sxD fUVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VdC8fMjq4t9VRORRB4OSfytyXFWfQ+hr5S378aY3Mz4=; b=U3yJTj4k6uqmqIjoJljLaIJK33dkotbwRovFOmvFD338+qptCXCywvxSyruJiads+d 4V1sICgSSDnWlyKTeJR3lYPd8ABHo5vFvqkLnJSEgr39ETMegGGNIcoPmviy+4qZ2qTT hoG5i4Qplof0veiYkWdEkgGDksyqWVTPqPuY96GyuRoD89cr47g+usGJU/d3eZur5b3e jgV/gOTWtDl61njOTHT5Wdqx0mE2p8pLtto8DoUCgoZEl4FqVWUjiY1sZwnmEvWFWBTv Y68tnv855oQxlcJmmo+lkSK/60Ks5m4anPkIBS58CEMy9uNKVD5yEnhP5LQTzBMBQv55 9Urg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h90si13456113edd.178.2019.11.06.05.32.23; Wed, 06 Nov 2019 05:32:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730851AbfKFNbp (ORCPT + 99 others); Wed, 6 Nov 2019 08:31:45 -0500 Received: from mga02.intel.com ([134.134.136.20]:21090 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726673AbfKFNbo (ORCPT ); Wed, 6 Nov 2019 08:31:44 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2019 05:31:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,274,1569308400"; d="scan'208";a="212774039" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.163]) by fmsmga001.fm.intel.com with SMTP; 06 Nov 2019 05:31:38 -0800 Received: by lahna (sSMTP sendmail emulation); Wed, 06 Nov 2019 15:31:37 +0200 Date: Wed, 6 Nov 2019 15:31:37 +0200 From: Mika Westerberg To: Bjorn Helgaas Cc: "Rafael J. Wysocki" , Len Brown , Lukas Wunner , Keith Busch , Alex Williamson , Alexandru Gagniuc , Kai-Heng Feng , Paul Menzel , Nicholas Johnson , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] PCI: Add missing link delays required by the PCIe spec Message-ID: <20191106133137.GN2552@lahna.fi.intel.com> References: <20191105125818.GW2552@lahna.fi.intel.com> <20191105200105.GA239884@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191105200105.GA239884@google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 05, 2019 at 02:01:05PM -0600, Bjorn Helgaas wrote: > > I feel that the following is the right place to perform the delay but if > > you think we can ignore the above, I will just do what you say and do it > > in pci_pm_default_resume_early() (and pci_restore_standard_config() for > > runtime path). > > > > [The below diff does not have check for pci_dev->skip_bus_pm because I > > was planning to move it inside pci_bridge_wait_for_secondary_bus() itself.] > > What do you gain by moving it? IIUC we want them to be the same > condition, and if one is in pci_pm_resume_noirq() and another is > inside pci_bridge_wait_for_secondary_bus(), it's hard to see that > they're connected. I'd rather have pci_pm_resume_noirq() check it > once, save the result, and test that result before calling > pci_pm_default_resume_early() and pci_bridge_wait_for_secondary_bus(). Fair enough :)