Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5814445ybl; Tue, 27 Aug 2019 10:01:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiU9tcj52afnNqAAAkWC/o5BUILCTl76A7Wb99TcSzYfN92yqfphP/ocbF168iNinjOTa0 X-Received: by 2002:a65:5289:: with SMTP id y9mr1058000pgp.445.1566925263922; Tue, 27 Aug 2019 10:01:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566925263; cv=none; d=google.com; s=arc-20160816; b=oFin+qLHvzq3PNCpfnoRUAZVSYUrbEvPcSzQExUuZJxxM/0ibnxhVC9E1Hv/4KuMWW o3pSW6OZ0Uk5ri9ET/qp4wmedbOT8OlcWm2vaGMqfBZdIFpT1SlTR+jODbDCWqGAmN6u mMMcmCJYNEVGl44j+3vEOw2hj7t2DCFV4j2MjaQZueWU4VUyVwJoJZFGO/onojdX21kM 8VMMEFCRlZ5D06EyctX6rxT7srp/fAx/GGPEIctJ/5diJiH2Yn3yeHHMIk7rZ7fJzZvc zGez+u6DX0vtTO/gwvI2XbIu0cpmeh5M1F1X3EtmAg6/c23mzKbNX720CxeUCG5mtUU4 hNag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=ZmU+i265kgZh9bO9prSg01z0i65nfx2GaSB2O7bSk90=; b=u+hnQpuxXHVnzy9tA1wb0gn68ZmYM/H1PwhnnprrCCZz65kMETqcl6/PYwsmmJekGw UXqrWMj6ISRvWRLts0awoIMapN/txrOFVQb3ZQdyF2mBcvXkekglAKRGxf55Btq0Xeo/ 9EhwiW5Qyjc3r+IOzOrEJ/DzlU6BUKOhUtrddiMQGx74WMZ5NtlBI9nwm8uWi5zzQGS0 CqUBiPgDNRQNVKz08YaYu0ufgQaBB0s4qXSEIm30Lfy7R0fq65eZSv0hYYAqmFDjXTnr NXAwH5udb1a5sgO6I29aZpjw4zj5Wvf6PC9uNMVS9zXzM5D4QKheLNS1L/al85VOvsxz jTPg== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11si13061817pls.148.2019.08.27.10.00.48; Tue, 27 Aug 2019 10:01:03 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730347AbfH0Q6i (ORCPT + 99 others); Tue, 27 Aug 2019 12:58:38 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:43413 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbfH0Q6i (ORCPT ); Tue, 27 Aug 2019 12:58:38 -0400 Received: from mail-pf1-f197.google.com ([209.85.210.197]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1i2enk-0000v6-AA for linux-kernel@vger.kernel.org; Tue, 27 Aug 2019 16:58:36 +0000 Received: by mail-pf1-f197.google.com with SMTP id y66so15060227pfb.21 for ; Tue, 27 Aug 2019 09:58:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ZmU+i265kgZh9bO9prSg01z0i65nfx2GaSB2O7bSk90=; b=MZrCcNFNMVTETg3Zktw4YadYPYkqzRwcmZwWU3aA+mVcUPTrYg5Zoo18nZ7KRt/EjU XXZrGmCgq7+hjNvg6DgRxXfJymyE1fB8dklmAvOSY3xr2WK3V8djagPGIlk8UfTmKT/+ 42mg6vhnM1i+/A/E3I8R5SGhqducpJUEayCPmafS2AtumgcYPK+jmofxJtrazeJ+QB9f nnDoQjFNieVJoavCWS/TIWFawI22Hn/qAe5nZQZTgTvFnqOap0Myz9mVjrZpXTNzxnzX JFHAfYUUFRUkwDJAAoAm0zt5u/o26f3JoGtjxNdS0C+9Br+++9a443yD71nBZZYZ6inv f2UA== X-Gm-Message-State: APjAAAUoZ6rAYA01E3ZxS8dvZtgwnYuvxUc8zYi98a+F/cg/DVwWNZbw zcSz4QRE6Kfx8inp8RHQK5QG7/ftzh60M8BJQPo7d1yHVXD7t13QkldiFormAZTHJUSOXsrIb+E W7qyZ85R5mWNt9qpkkqoAODLMPoHEMVeLg8HlZg+PhA== X-Received: by 2002:a63:1:: with SMTP id 1mr21851561pga.162.1566925115038; Tue, 27 Aug 2019 09:58:35 -0700 (PDT) X-Received: by 2002:a63:1:: with SMTP id 1mr21851540pga.162.1566925114765; Tue, 27 Aug 2019 09:58:34 -0700 (PDT) Received: from 2001-b011-380f-3c42-843f-e5eb-ba09-2e70.dynamic-ip6.hinet.net (2001-b011-380f-3c42-843f-e5eb-ba09-2e70.dynamic-ip6.hinet.net. [2001:b011:380f:3c42:843f:e5eb:ba09:2e70]) by smtp.gmail.com with ESMTPSA id q22sm17660250pgh.49.2019.08.27.09.58.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Aug 2019 09:58:34 -0700 (PDT) Content-Type: text/plain; charset=us-ascii; delsp=yes; format=flowed Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH 1/2] PCI: Add a helper to check Power Resource Requirements _PR3 existence From: Kai-Heng Feng In-Reply-To: Date: Wed, 28 Aug 2019 00:58:28 +0800 Cc: bhelgaas@google.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <0379E973-651A-442C-AF74-51702388F55D@canonical.com> References: <20190827134756.10807-1-kai.heng.feng@canonical.com> To: Takashi Iwai X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org at 23:25, Takashi Iwai wrote: > On Tue, 27 Aug 2019 15:47:55 +0200, > Kai-Heng Feng wrote: >> A driver may want to know the existence of _PR3, to choose different >> runtime suspend behavior. A user will be add in next patch. >> >> This is mostly the same as nouveau_pr3_present(). > > Then it'd be nice to clean up the nouveau part, too? nouveau_pr3_present() may call pci_d3cold_disable(), and my intention is to only check the presence of _PR3 (i.e. a dGPU) without touching anything. Kai-Heng > > > thanks, > > Takashi