Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp760582ybg; Wed, 23 Oct 2019 05:35:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzMkNXuGnyW4RkL5EZhdQeMKyU3UJw1PqDO9q+9ktKuQKDNpZ5ibrwrtaUT+MvGY3Q4ewZ X-Received: by 2002:aa7:ca0b:: with SMTP id y11mr14682722eds.51.1571834124064; Wed, 23 Oct 2019 05:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571834124; cv=none; d=google.com; s=arc-20160816; b=zIsGMaxUsvnT5uI4jR6XluKIwMwMPs7X09SVcHQtw/PyFG+RYVYkFpcnuOP915hUXZ N7weEXJrg8E+MCqiL9prjcOYCCtUDN0hSUup9ntCRGEqJUhb+hcSrPzwbI78T7DAvnp0 0MDaTykPJHt2L/y9766C/pI4qBLztOsBlqgTBf09nFcdMuVO6Ymge9I1+xUxgoxWp3+y quHowxsZK+UC+DVjZKRisBs3ZnCx04pa8MhXzzeiCO5DXhg+KFMkYu6LVL0L8PS8tTFZ QHXuBo45fiL61EHUotRB+MLz132kXlqCHrsx/bmTj732yYYoNLpR9tDI0vG6XtuZjFj5 t2hw== 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=5kNPY7blwu4JP3jSNbRUzpdlw4Eyxwdfrjytp1PpBjk=; b=jRUoHVEPJeBcRobLXAjq8/yR9QSNt2jwmeHvMKpvJ5Jx6mqCsAJSw1Te1Lxezam4kd 4eascddTOxuuZaPIXOqbiZrrH1q9O+C6ugaPGaU6ZYywU8kbN5capzrbI79gJROYFeEC F/FaqJ4Wxz44l8Hs5O2fht3cgTIRY1KgQ6ItbDIN1JPqEKrdr6HAUxbZRItbMyaXXiug zm8OvN80bbT5pLMMrL6HTZUODQe5pRmNPBNGsFa8T58/JmPjU1dx0YxM0539bRSaEexq ZuvH/nr1jY+gfWc7AkHXgFhrqI+lbawu5l2h85FmHI0UITK4llfF258Bj7UQE5MpKsX2 s2DQ== 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 h56si2078769edh.363.2019.10.23.05.34.59; Wed, 23 Oct 2019 05:35:24 -0700 (PDT) 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 S2390619AbfJWJAr (ORCPT + 99 others); Wed, 23 Oct 2019 05:00:47 -0400 Received: from mga04.intel.com ([192.55.52.120]:43799 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387829AbfJWJAr (ORCPT ); Wed, 23 Oct 2019 05:00:47 -0400 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 fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2019 02:00:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,220,1569308400"; d="scan'208";a="209878290" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga001.fm.intel.com with SMTP; 23 Oct 2019 02:00:43 -0700 Received: by lahna (sSMTP sendmail emulation); Wed, 23 Oct 2019 12:00:42 +0300 Date: Wed, 23 Oct 2019 12:00:42 +0300 From: Mika Westerberg To: Karol Herbst Cc: Bjorn Helgaas , "Rafael J . Wysocki" , LKML , Lyude Paul , Linux PCI , Linux PM , dri-devel , nouveau , Linux ACPI Mailing List Subject: Re: [PATCH v3] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges Message-ID: <20191023090042.GQ2819@lahna.fi.intel.com> References: <20191021133328.GI2819@lahna.fi.intel.com> <20191021140852.GM2819@lahna.fi.intel.com> <20191021154606.GT2819@lahna.fi.intel.com> <20191022124453.GK2819@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 Tue, Oct 22, 2019 at 02:51:53PM +0200, Karol Herbst wrote: > On Tue, Oct 22, 2019 at 2:45 PM Mika Westerberg > wrote: > > > > On Tue, Oct 22, 2019 at 11:16:14AM +0200, Karol Herbst wrote: > > > I think there is something I totally forgot about: > > > > > > When there was never a driver bound to the GPU, and if runtime power > > > management gets enabled on that device, runtime suspend/resume works > > > as expected (I am not 100% sure on if that always works, but I will > > > recheck that). > > > > AFAIK, if there is no driver bound to the PCI device it is left to D0 > > regardless of the runtime PM state which could explain why it works in > > that case (it is never put into D3hot). > > > > I looked at the acpidump you sent and there is one thing that may > > explain the differences between Windows and Linux. Not sure if you were > > aware of this already, though. The power resource PGOF() method has > > this: > > > > If (((OSYS <= 0x07D9) || ((OSYS == 0x07DF) && (_REV == 0x05)))) { > > ... > > } > > > > I think this is the fallback to some older method of runtime > suspending the device, and I think it will end up touching different > registers on the bridge controller which do not show the broken > behaviour. I think it actually tries to identify older Windows and then Linux (the _REV == 0x05 check comes from that). So at least some point Dell people have experiment this on Linux.