Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3112353ybc; Thu, 21 Nov 2019 03:34:03 -0800 (PST) X-Google-Smtp-Source: APXvYqylY1UqOLGTI68W87QmlQ5JeOHgHEQKwhFtvPQMcEJo4T4FToiOFSWzoa5rleF/xxHA3Qe5 X-Received: by 2002:a17:906:4d58:: with SMTP id b24mr13115307ejv.277.1574336042924; Thu, 21 Nov 2019 03:34:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574336042; cv=none; d=google.com; s=arc-20160816; b=Y49U9oeImZo+oy6fB5wF4lfvO+cA6JYoFs9yZWEN+uJ65OYqhh5K2w1KbWmWGlgTaH NYcW/QWhDDRaP96BBiTUK8vZDoo585wDhq11AQ0/jz+zFCZrS8ByK8r62TvdJ6WF+jzP s2iQuMLi4yz8jpkOfGqbfDxuB6AEAJ1wHvIVi3TgFktmsHFtYBWTYAnkMyqiG0vmrMi+ 5xZHVAICyslOBPgapAQ2yvoDEMHMJanPT8sOOKMlvBKIGTTOxKtBitnb3TgoTMKgnobN 3vZO06ixJuRsqhUT+Eseu95EV7OkwT7gXCfZuYDKrkh8TtzGWBch7+Mkcb7z/dpYMITc 10Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=f3k4Aw80bkAO/6lAcOnkrOVE0ZhJFwvrlGzBabrShVQ=; b=RCgp9BS8Ye229gK6BGBZFeJLwJuVvkdUHw7Ipsxu1kgMnIN+5dJgBMQK/3rtDJeckT Ht8ASW46eQcskdiN9ioGq+exDN4JPFGP5AKZI8/BX3WkgBK0dlsMnrKWyirMuo+b8cZi bo/c+hICDmNdPAgsipyYabI01i2heWV/twhyVG2c5XjoANNjL05O/zGWGdOfFrkKlFka VzKXVsqEbbByCFn0tilswvvi27PXlgRjVqaLgvgcNR7CTR0aHOGv/uG6cYVc4nEHd1qn NYUciG7+3gFwgcapp/DVrVszQ3LX3l3TMuZ6R5MA6gnw2oEdplqNfA+32gDgxGvGNPFR /ZMA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id me8si1502499ejb.382.2019.11.21.03.33.38; Thu, 21 Nov 2019 03:34:02 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726620AbfKULcK (ORCPT + 99 others); Thu, 21 Nov 2019 06:32:10 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:36589 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726170AbfKULcK (ORCPT ); Thu, 21 Nov 2019 06:32:10 -0500 Received: by mail-ot1-f68.google.com with SMTP id f10so2620315oto.3; Thu, 21 Nov 2019 03:32:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f3k4Aw80bkAO/6lAcOnkrOVE0ZhJFwvrlGzBabrShVQ=; b=Kv1F6bEUhx6XQilNyRp5ccDX97+jKHY04dGPtgnXkkNmN1nLCsZet1HBp6NxiFTCog LFD0D3/jhQrn3W+nMSAx+K7SiH3b7BUp6boLA4Uils2pfjlE4o3TCsknqqVYMD80hAw7 BgDVuUgWkXW8nOUM/tAavm4mCsW1TeHPJdU2VqLKkwazZ27TFUIrsjssF3fNVThU0pJ5 z1qjBToEZMIIYuTX9F8ubmlrBHK+Bxvn4ujWxg5FuoMCbvgzUJW6nWLHA1u1F2dzaXfj lT85jmnalnuQ5yGCQPiD0paYorzZqOJvKqVsibm9e8jPhpJEuFcMbPpupdgK2n30PZq2 srpQ== X-Gm-Message-State: APjAAAXqIg6oIv7uJUPnZvBy0m/fv6zw9IXiur2wEVxHpIDmdM6TuYmt N3ph8zTqmHJE/KZz1+H9V+mLPUHvkRiGQdB9FTY= X-Received: by 2002:a9d:4c85:: with SMTP id m5mr5838389otf.118.1574335929309; Thu, 21 Nov 2019 03:32:09 -0800 (PST) MIME-Version: 1.0 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> <20191121111739.GT11621@lahna.fi.intel.com> In-Reply-To: <20191121111739.GT11621@lahna.fi.intel.com> From: "Rafael J. Wysocki" Date: Thu, 21 Nov 2019 12:31:57 +0100 Message-ID: Subject: Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges To: Mika Westerberg Cc: "Rafael J. Wysocki" , Karol Herbst , Bjorn Helgaas , LKML , Lyude Paul , "Rafael J . Wysocki" , Linux PCI , Linux PM , dri-devel , nouveau , Dave Airlie , Mario Limonciello Content-Type: text/plain; charset="UTF-8" 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:17 PM Mika Westerberg wrote: > > 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. I'm not sure why that would be related to putting the device into, say, PCI D3 before invoking AML to remove power from it. If it is not in PCI D3 at this point, the AML still runs and still removes power from it IIUC, so on the way back the situation is the same regardless: the device has no power which (again) needs to be restored by AML. That (in principle) should not depend on what happened to the device before it lost power.