Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2402420ybc; Wed, 20 Nov 2019 13:41:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxZqVporkth1lSg3MZpgYG5h++yuqEFOF8XW1ZEJxiJJYLMdvzbQzhGPfm2/nh+fychAfHA X-Received: by 2002:a17:906:70e:: with SMTP id y14mr8176850ejb.70.1574286103851; Wed, 20 Nov 2019 13:41:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574286103; cv=none; d=google.com; s=arc-20160816; b=y1nPYCrdh4wpH5NPT2SylzVAxxJNMPup6FXI+i2xYwgTk6VSnsnDVrE9n+F3qZXleV Q1qHhBKNqbN1Gh+QxhoLc0EPjYRKZsLtETFu5+ZxbGCuRAS8N2tTzOXlVF9BEk1Hw2MR VaTRwgfEpAya6MW2aufkVi6Ay7Q4dmwprkL2nL0NFDO45LlVzXvsUwqXJl+v5NoaZNtJ pJx6GTAaS1jtu6lZD+6xBrW0V9D5qzSHV/IqJtVRps20wvcckBqT38P6SpnQS5HBvguo qOEcqF6Mtko8XakJzcuAGZ6SHpTAiFlwuGFnUgfvT0JGDhn3aYYMo3a/dh6AcbfRdTO9 Iv6g== 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=wCVkX5zJWXohjxns4syxefXspebuJN052ShGvcXSY0Q=; b=wvsuOOymB0au90XaGXQAKEPNpIsgO/cuf+aDT/umR9q8qTYUU8VvQhJvNWL4aXBfha t3/0F7AeywAy05n/GihsAzHl8+1yZ4mZk+OBF8YzQI/mAoQnOnyomnWBN+og1udid7s9 5gQ5TgPxDL5Wo0fpD9VJlvcy8BOnQ0j5FmSS6qe6rPkKPCcPTLAUsXr2FMNc2GbHlAMi vyHoJ3VHtm9tu7HVcDZuLi/4JS9AeN05ODxARbQbdXFS8H6rUvMJkoUo5sOJHffXHeDr qJ+yNmL0VTxx9GLscv2cqwlPWGesIgPUzB3EyQegPXx2CunOiqf9XtSaMsF/GSKtRtyl AD9w== 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 s21si300513eju.82.2019.11.20.13.41.19; Wed, 20 Nov 2019 13:41:43 -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 S1726729AbfKTVhS (ORCPT + 99 others); Wed, 20 Nov 2019 16:37:18 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:33393 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbfKTVhR (ORCPT ); Wed, 20 Nov 2019 16:37:17 -0500 Received: by mail-ot1-f66.google.com with SMTP id u13so1024423ote.0; Wed, 20 Nov 2019 13:37:17 -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=wCVkX5zJWXohjxns4syxefXspebuJN052ShGvcXSY0Q=; b=dyOdHjs5B6oOP5ZyPPB2BDet1F0ONaYW1mGbfWZQaO/H7jrC5Pulz9d1PD2TLYS+yb X/Sbsli1fGhX60D2w7CwUdZKWXkSj4sU0cfh3bh95tdvZ/DGgw6HrHen/vudsojOA8ZM BCaS3KPtabWU+UDHGJAV7CP1guTHEf7/IOMucVKGPTAdUNayS6JxZ38mHDzKwy5YABEU GddaF76PraCVuAWXXA2XJqig6XEqR54TYwsP16eoG3n78eF9b2/fazUPqelrBUIN/56a sOTdl3rpyL5dYXCzhbw3KSWVvs+Gzgm3v2UfX2NTbp9pAc54Iq1pV8ugDhz18Lpwe26d ou3w== X-Gm-Message-State: APjAAAXkJU6n0aAwCdlSmo42+LvHU+19QzsABxRd2jJlfaQoJVYlx6Os lSaDKxpiMEuU5I4i7AtyrDuYA3Wzc7aAMPg0kMc= X-Received: by 2002:a05:6830:103:: with SMTP id i3mr3888714otp.266.1574285836460; Wed, 20 Nov 2019 13:37:16 -0800 (PST) MIME-Version: 1.0 References: <20191120101816.GX11621@lahna.fi.intel.com> <20191120112212.GA11621@lahna.fi.intel.com> <20191120115127.GD11621@lahna.fi.intel.com> <20191120120913.GE11621@lahna.fi.intel.com> <20191120151542.GH11621@lahna.fi.intel.com> <20191120155301.GL11621@lahna.fi.intel.com> In-Reply-To: <20191120155301.GL11621@lahna.fi.intel.com> From: "Rafael J. Wysocki" Date: Wed, 20 Nov 2019 22:37:05 +0100 Message-ID: Subject: Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges To: Mika Westerberg Cc: Karol Herbst , "Rafael J. Wysocki" , 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 Wed, Nov 20, 2019 at 4:53 PM Mika Westerberg wrote: > > On Wed, Nov 20, 2019 at 04:37:14PM +0100, Karol Herbst wrote: > > On Wed, Nov 20, 2019 at 4:15 PM Mika Westerberg > > wrote: > > > > > > On Wed, Nov 20, 2019 at 01:11:52PM +0100, Karol Herbst wrote: > > > > On Wed, Nov 20, 2019 at 1:09 PM Mika Westerberg > > > > wrote: > > > > > > > > > > On Wed, Nov 20, 2019 at 12:58:00PM +0100, Karol Herbst wrote: > > > > > > overall, what I really want to know is, _why_ does it work on windows? > > > > > > > > > > So do I ;-) > > > > > > > > > > > Or what are we doing differently on Linux so that it doesn't work? If > > > > > > anybody has any idea on how we could dig into this and figure it out > > > > > > on this level, this would probably allow us to get closer to the root > > > > > > cause? no? > > > > > > > > > > Have you tried to use the acpi_rev_override parameter in your system and > > > > > does it have any effect? > > > > > > > > > > Also did you try to trace the ACPI _ON/_OFF() methods? I think that > > > > > should hopefully reveal something. > > > > > > > > > > > > > I think I did in the past and it seemed to have worked, there is just > > > > one big issue with this: it's a Dell specific workaround afaik, and > > > > this issue plagues not just Dell, but we've seen it on HP and Lenovo > > > > laptops as well, and I've heard about users having the same issues on > > > > Asus and MSI laptops as well. > > > > > > Maybe it is not a workaround at all but instead it simply determines > > > whether the system supports RTD3 or something like that (IIRC Windows 8 > > > started supporting it). Maybe Dell added check for Linux because at that > > > time Linux did not support it. > > > > > > > the point is, it's not checking it by default, so by default you still > > run into the windows 8 codepath. > > Well you can add the quirk to acpi_rev_dmi_table[] so it goes to that > path by default. There are a bunch of similar entries for Dell machines. OK, so the "Linux path" works and the other doesn't. I thought that this was the other way around, sorry for the confusion. > Of course this does not help the non-Dell users so we would still need > to figure out the root cause. Right. Whatever it is, though, AML appears to be involved in it and AFAICS there's no evidence that it affects any root ports that are not populated with NVidia GPUs. Now, one thing is still not clear to me from the discussion so far: is the _PR3 method you mentioned defined under the GPU device object or under the port device object?