Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3099599ybc; Thu, 21 Nov 2019 03:21:21 -0800 (PST) X-Google-Smtp-Source: APXvYqz+N8Rb03O+7fH7VEtx2tuKmOQDLaaOEkV7mf3e41o04+p6xYV5uxY89CcZAm1jUkkDsWKG X-Received: by 2002:a17:906:fac7:: with SMTP id lu7mr13379157ejb.5.1574335281257; Thu, 21 Nov 2019 03:21:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574335281; cv=none; d=google.com; s=arc-20160816; b=aQ3I+41kh9GejdLaTtjjEFNrV9Z2Wq71Z5YaB52i80TZSO4BGm3Var2AErJhBO2/IK et6z0Hlppf3LKBL2/YpO2Ek8jKHyItH+QoyAucMUWGNlgtTVlGUOLdlgmhqWABUfYFzK zsDfGMo58fwKbld3a3i5IibRJ/20YuzbiW+IrNxxh6Zxr5hZEVxtpkhhKtA3ciH9UcnE 0JRr0n5Tg+nZxVJRmKmf6haVTM2uFMkkg5Cp7TTaQkryMUIfvEQF1Cvg9pn3+YcZ8mVz IoxrPWWJ7ja7ivRFob/CBUp1B9FoG3Z+6bn7KBDkBME/7qKtLy1u8Ol9LR0TB1qLIDZU tAYw== 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=aKGAr7PvfYePMkwlPo0nMWBQdzvHmD65fa3J+UwoKAQ=; b=RIYpF3sjQgeihN1QBDnmjD0JbA2xAQv8GxvtrB2QORwqoE52W7EeJYC4hglznbx4W/ sWhk51B03DYKOf0dYeipeF6sScTBFPUiCwA/1RL7TEx77C6VFmDpDQ4CYUQq9HT6UD/0 U79DMmzwwefjo4AAS14C4jyvgXuk8YfqjuEIz6GcFoJtboAQzI4t91viKlLwqWts5d7/ WLEmhAvbhtjM+ukPVEm28ZSOQk+CCJ48nXv6zjqSVanqr8XdgAjkFGmRY1V9qFQtQIyY muH5RUtkMuux+6Np8Xk0Ns7hLFkacxiElBc0qUlJq/wQcXRJK5lnVS6X99egX4M3UnzW B5+w== 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 b22si1558943ejv.159.2019.11.21.03.20.56; Thu, 21 Nov 2019 03:21:21 -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 S1726762AbfKULRp (ORCPT + 99 others); Thu, 21 Nov 2019 06:17:45 -0500 Received: from mga06.intel.com ([134.134.136.31]:38403 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfKULRp (ORCPT ); Thu, 21 Nov 2019 06:17:45 -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 orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2019 03:17:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,224,1571727600"; d="scan'208";a="216114487" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.163]) by fmsmga001.fm.intel.com with SMTP; 21 Nov 2019 03:17:40 -0800 Received: by lahna (sSMTP sendmail emulation); Thu, 21 Nov 2019 13:17:39 +0200 Date: Thu, 21 Nov 2019 13:17:39 +0200 From: Mika Westerberg To: "Rafael J. Wysocki" Cc: Karol Herbst , Bjorn Helgaas , LKML , Lyude Paul , "Rafael J . Wysocki" , Linux PCI , Linux PM , dri-devel , nouveau , Dave Airlie , Mario Limonciello Subject: Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges Message-ID: <20191121111739.GT11621@lahna.fi.intel.com> References: <20191120120913.GE11621@lahna.fi.intel.com> <20191120151542.GH11621@lahna.fi.intel.com> <20191120155301.GL11621@lahna.fi.intel.com> <20191120162306.GM11621@lahna.fi.intel.com> <20191121101423.GQ11621@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Nov 21, 2019 at 12:03:52PM +0100, Rafael J. Wysocki wrote: > On Thu, Nov 21, 2019 at 11:14 AM Mika Westerberg > wrote: > > > > On Wed, Nov 20, 2019 at 10:36:31PM +0100, Karol Herbst wrote: > > > with the branch and patch applied: > > > https://gist.githubusercontent.com/karolherbst/03c4c8141b0fa292d781badfa186479e/raw/5c62640afbc57d6e69ea924c338bd2836e770d02/gistfile1.txt > > > > Thanks for testing. Too bad it did not help :( I suppose there is no > > change if you increase the delay to say 1s? > > Well, look at the original patch in this thread. > > What it does is to prevent the device (GPU in this particular case) > from going into a PCI low-power state before invoking AML to power it > down (the AML is still invoked after this patch AFAICS), so why would > that have anything to do with the delays? Yes, I know what it does :) I was just thinking that maybe it's still the link that does not come up when we go back to D0 I guess that's not the case here. > The only reason would be the AML running too early, but that doesn't > seem likely. IMO more likely is that the AML does something which > cannot be done to a device in a PCI low-power state. It may very well be the case.