From patchwork Wed Oct 23 14:25:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai-Heng Feng X-Patchwork-Id: 1182199 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46yt2S4qkPz9sPf; Thu, 24 Oct 2019 01:25:36 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1iNHZs-00009T-Vr; Wed, 23 Oct 2019 14:25:32 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iNHZr-00009N-T8 for kernel-team@lists.ubuntu.com; Wed, 23 Oct 2019 14:25:31 +0000 Received: from 61-220-137-37.hinet-ip.hinet.net ([61.220.137.37] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iNHZr-0006Un-71 for kernel-team@lists.ubuntu.com; Wed, 23 Oct 2019 14:25:31 +0000 From: Kai-Heng Feng To: kernel-team@lists.ubuntu.com Subject: [SRU] [D/E/Unstable] [PATCH 0/3] Allow Nvidia HDA to be runtime suspended to save power Date: Wed, 23 Oct 2019 22:25:24 +0800 Message-Id: <20191023142528.29234-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1840835 [Impact] Some Nvidia graphics card has audio function in addition to video function. When the video function is not bound to any driver, the audio function can't be runtime suspended, hence preventing the power resources from being turned off. [Fix] Allow Nvidia audio function to be runtime suspended. [Test] The user reported the fix works. [Regression Potential] Low. It only allows the audio function of discrete Nvidia GPU to be runtime suspended. Regular audio or audio function with a discrete GPU already bound to a driver are unaffected. Kai-Heng Feng (2): PCI: Add a helper to check Power Resource Requirements _PR3 existence ALSA: hda: Allow HDA to be runtime suspended when dGPU is not bound to a driver Takashi Iwai (1): PCI: Fix missing inline for pci_pr3_present() drivers/pci/pci.c | 18 ++++++++++++++++++ include/linux/pci.h | 2 ++ sound/pci/hda/hda_intel.c | 8 +++++++- 3 files changed, 27 insertions(+), 1 deletion(-) Acked-by: Seth Forshee Acked-by: Stefan Bader