Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2006215ybc; Wed, 20 Nov 2019 07:30:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxWgH063irLJ1iLGsZdbo7hzui8tZ8croyWwYtJv+xNapbZMfi/z+rd29GEQEARHfmx2gki X-Received: by 2002:adf:ea92:: with SMTP id s18mr3914597wrm.327.1574263838242; Wed, 20 Nov 2019 07:30:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574263838; cv=none; d=google.com; s=arc-20160816; b=yy74Saj7trtdJNoGofsNHAEzLNHVkjaL8Rn+AYS6snjPMahQN7rNJwZ0zDXfH9OpHO Onqm2cotVsH8gEcTmLOl2KE1I6TSW52EYvN/s5HAj0Zh0IDTlYVFyyfU8nZrtjHN29BP 5l52X/W6ubTqrqWnqm7CK31ZTS/fRw60dsCappiGUCMe18i8mRTonKh/yT41Z8PILtRr 3MCf5LFjXWvd0vTHlOywtJNHQAN8+bKuCv2YFHSwkXXq/nWL1u+WjZOQpS445BwLw6AZ U1MdJHGSiwyET15keTNB7SbTU5ayGIHalXcW/fUwu8H7j/PLtT0FDk6gfvE+5Du0+uag Mmgw== 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=esEo2BOJu3uyThpaIy1S5JuOd1hwwX4sFEOY2HfR0sY=; b=sIfpAXyxYrixsjPr9nEyWHIq00QHG7Ron9kmloziUlta2spGTeifSr86isuHmEXZAa De9oP+sryIUCBkGbOC3OSF5hl/9Jdc01YIAwjijseiwgULc3jM+fYRxFLbQlCG+KjRJa 10Pdsj0BZcHlJaBzWx46gIinq6OZ5b7uBZd5i0ruQmu5khNnTIFtYqJ7dd/H8XQWZYWZ Mx2+BioySuLhGe7zDYTxcybqiIXSdny91XN4pQiUuB8JwgPMYmonUGd5LVeZvQyBqMB6 OtOubRMjHNqDF7yqBvO+5dnJZLQ4/S6DHxLTY7fzboGc/U+1oOy0+UnLpm7bs1S2Ii1S I+Qg== 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 v24si19497740edm.399.2019.11.20.07.30.14; Wed, 20 Nov 2019 07:30:38 -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 S1729302AbfKTMPE (ORCPT + 99 others); Wed, 20 Nov 2019 07:15:04 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:43537 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728476AbfKTMPE (ORCPT ); Wed, 20 Nov 2019 07:15:04 -0500 Received: by mail-oi1-f194.google.com with SMTP id l20so22253045oie.10; Wed, 20 Nov 2019 04:15:03 -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=esEo2BOJu3uyThpaIy1S5JuOd1hwwX4sFEOY2HfR0sY=; b=BNz1llbE9omfbgmbPx7tSN42wVtd2RA8WeNPt2O/mCkIlocvjU1agInHeZTSdr8md0 G5iAo3JdjtYd3aSgKffbTaLaljWCMNzHXQ+LZaXEtQyTDX6ehRHQTlsgHXt/Gco94uHs KjtPGJ9am0HvWcgMy18WTWp+km8NdPFV6Clska6KPsmv2kLjbaHAYZCIbdiTPq1j6NeG jv3+017q7i0PEa6gUjJKmuDcLnLn5TcuLWY9qpYafgQjHz+on1R9V8oawJyEoiKS+Pwk E+v/f6iHHge046FsYRZmzeF2bMyEZ7jXBEo3NLoVXa2gRYJO8irdYt0EOVMennd86+hj hsbw== X-Gm-Message-State: APjAAAWlSMF5/62BrCucYo/10fYQOqmeJv5/4+BG30D0lEYR5V37+90B pInW2CqLkwbuUVoPTkDQSO9l4QDQresXIJV9YKk= X-Received: by 2002:aca:530c:: with SMTP id h12mr2615449oib.110.1574252103376; Wed, 20 Nov 2019 04:15:03 -0800 (PST) MIME-Version: 1.0 References: <20191017121901.13699-1-kherbst@redhat.com> <20191119214955.GA223696@google.com> <20191120101816.GX11621@lahna.fi.intel.com> <20191120112212.GA11621@lahna.fi.intel.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 20 Nov 2019 13:14:51 +0100 Message-ID: Subject: Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges To: Karol Herbst Cc: "Rafael J. Wysocki" , Mika Westerberg , 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 1:10 PM Karol Herbst wrote: > > On Wed, Nov 20, 2019 at 1:06 PM Rafael J. Wysocki wrote: > > > > On Wed, Nov 20, 2019 at 12:51 PM Karol Herbst wrote: > > > > > > On Wed, Nov 20, 2019 at 12:48 PM Rafael J. Wysocki wrote: > > > > > > > > On Wed, Nov 20, 2019 at 12:22 PM Mika Westerberg > > > > wrote: > > > > > > > > > > On Wed, Nov 20, 2019 at 11:52:22AM +0100, Rafael J. Wysocki wrote: > > > > > > On Wed, Nov 20, 2019 at 11:18 AM Mika Westerberg > > > > > > wrote: > > > > > > > > > > > [cut] > > > > > > > > > > > > > > Oh, so does it look like we are trying to work around AML that tried > > > > > > to work around some problematic behavior in Linux at one point? > > > > > > > > > > Yes, it looks like so if I read the ASL right. > > > > > > > > OK, so that would call for a DMI-based quirk as the real cause for the > > > > issue seems to be the AML in question, which means a firmware problem. > > > > > > > > > > And I disagree as this is a linux specific workaround and windows goes > > > that path and succeeds. This firmware based workaround was added, > > > because it broke on Linux. > > > > Apparently so at the time it was added, but would it still break after > > the kernel changes made since then? > > > > Moreover, has it not become harmful now? IOW, wouldn't it work after > > removing the "Linux workaround" from the AML? > > > > The only way to verify that I can see would be to run the system with > > custom ACPI tables without the "Linux workaround" in the AML in > > question. > > > > the workaround is not enabled by default, because it has to be > explicitly enabled by the user. I'm not sure what you are talking about. I'm taking specifically about the ((OSYS == 0x07DF) && (_REV == 0x05)) check mentioned by Mika which doesn't seem to depend on user input in any way.