Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3085078ybc; Thu, 21 Nov 2019 03:08:08 -0800 (PST) X-Google-Smtp-Source: APXvYqxFqmIo4UqpDZJBJl9858HIxUGuHCAQtIxaKQymzBUlhcCPdzhz6aLNC5HQs4THDQroqAvK X-Received: by 2002:a17:906:8606:: with SMTP id o6mr13600427ejx.202.1574334488245; Thu, 21 Nov 2019 03:08:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574334488; cv=none; d=google.com; s=arc-20160816; b=ZREJo/7+cvdxHIL/RWIQpmj22s+HvPwwV0VCoe04n/bzw+keGRgBEc1gz8bnJ1DI1H dWPaiIAEszVV9z0avH1eS/vg1r+g8r5gJ6SjUhDADhEoYy9sHvr39q5cglx1Q18Jgc6S GoMqn7YXzjzj7MFyU2lfLuxAJrWFZoS8aYt0jzfWOoJpIS20bHUgDaQm3bVUeuBKlqod 6JuAes8C1ZdpgVXU1FzHQFKDtFlfdW7fgh5IGLi9+M3rLNQFEfbwm+hnTXLI7/CjTn0w YPxFE7JKQVh6nVR3KuML970wLWBiWvuHUYSE+qIIZJwKK9WLQr+a//7kLYQcqjaC9d5Z XvoA== 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=Dh9d0dUVp1CFrTbKfXBJy2XPGIAj+Ygua+R35GCU6hA=; b=VF1ZIHTLbI/dPZUFZfmuklaoh2G8njHfbrcMRsWVXrHdYVCAGBlb7sly8yRjoPrR2q wxJctt2sm2crJdnuv5S4YWHsfWKixfXWRr6ITqM/nuR0YXzEoULzwboMF3SRgltIyMPT l9bNVPgxh4bQiwVykH14WriAqEOp0624EDiFf5XQiLUVIqLATum08kSdDAJZIaZ+2QHk 1n2QkjyL8iTvpIPbP136zV0yQI0RmZXaMRp8b3MmdvyII3W1FHZOPufdrqpUP0XdhDlK vAGKE7HQ/b+ueSQJze73/Ez0nXHg6kakylM0Snj8BtWwjNBPSzDc0UNdfhop2+2wDTC1 f8Pg== 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 pv22si1393914ejb.337.2019.11.21.03.07.42; Thu, 21 Nov 2019 03:08:08 -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 S1726529AbfKULEG (ORCPT + 99 others); Thu, 21 Nov 2019 06:04:06 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:46437 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbfKULEG (ORCPT ); Thu, 21 Nov 2019 06:04:06 -0500 Received: by mail-ot1-f65.google.com with SMTP id n23so2492336otr.13; Thu, 21 Nov 2019 03:04: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=Dh9d0dUVp1CFrTbKfXBJy2XPGIAj+Ygua+R35GCU6hA=; b=tUl5MeBMWi8lIKOooBW6my3CAqmw4755zjI1vZNFBSqF2gXqDTYFT/3HonRyKc1VYD o0thiy8JdVCAbXP13Ky/+KxI8L03rXnd2CUSR0lOq9iTw/AcMUMLeXWQ1zp/F0I74sfr OM/VVdrNObzps2ys7mZRXMa1VIJU3Nb+bCcgu+sQtwb9wg9aZzzjEoiZDEYGQHxVkDTh SlDRMFi4edHvlgDnd+cu/GefvpYekYYAEDl63KT0pbbW9e0xbsAAr6P51JjbKqpW22OZ RR99VUoj/f2Z0epLymu8XzyS3cFtnrNU9rl9i3RrxktGizq9Joat2IZW/r+ClfFzQzeH gseQ== X-Gm-Message-State: APjAAAVmpKDi/ubtNtmucVuS1flrN49gprAAdCkdg5pUP2cBygmlhi1e wngF0/wc0ppAyfpH5JzVOjdqQHIdXJuYAIuQwN8C0A== X-Received: by 2002:a9d:6b91:: with SMTP id b17mr5820414otq.189.1574334243469; Thu, 21 Nov 2019 03:04:03 -0800 (PST) MIME-Version: 1.0 References: <20191120115127.GD11621@lahna.fi.intel.com> <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> In-Reply-To: <20191121101423.GQ11621@lahna.fi.intel.com> From: "Rafael J. Wysocki" Date: Thu, 21 Nov 2019 12:03:52 +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 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? 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.