Received: by 10.192.165.148 with SMTP id m20csp334365imm; Wed, 2 May 2018 00:45:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq68KRTkwy60SrYe8cGf1gQN2LZbyqNmhPsUKfirIoGxvvGrGEqFmPRp+0A/FzlZstYsdXB X-Received: by 2002:a65:4c06:: with SMTP id u6-v6mr14958188pgq.388.1525247131231; Wed, 02 May 2018 00:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525247131; cv=none; d=google.com; s=arc-20160816; b=zRnOOFCIwnXAtUKvjmQP3Uo9LRO2C9TU7mrpubstN6HamROKMUQo5Hp1+9Re1Inw2I RVOlz6A9upazCgKeQiILMe14oN1FM5b3Nqvyf+7mtsdhdn9OmBG/6KEKNKowb7hmuGna izVZO1cwrxjVGDSHzuRYbUgT6N9QxdAw0HUyVmJ557RqrMeirAq6qnb59Dbivz/Ceqxr U4AkelwjuLdgPMmVUFLKHz0a+q8m27t1FBrZSx/nFO5LQ4LEvBfmqaAXROXfNBOFtFor KsU0H1fOmTz9v7LQTmTGZcqgZnekerO98Bz0IA33k5Vie1XrCrUylfinrjlBrxLapM4f yLCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=i2FbdQiqZmEkxN3z4I54HoDxDnr70/FT7hoKRPVonHs=; b=tXnO/H7zae70HR3P8sBcXgTIIySexwTMoLbc6GDC3i/FNJEuinMUUz3994cM1n+CTI JPvGBYzl+pzEZxwKO4eNKGoY3OdtiJtX4ZbrLsTJK4hIntvKJn4QwBipKfZKB/KhWuMW /y0mFmY1lSyyFaH713MerPLSKyTQUHWuvzlyC9Z5Wc1n/FVZlHd6eiDbAtPB2D41Wc27 8NOJJiYhWt9aq8rtvbQ1Z3nnFkEZ1KjI+yX0r+rzS5dfr7kaHQAayz9n6xeNKnMLteGd dHH8fSdkp106mqZcV6v495ibBIKKzmNlsGypPKDGZySIIjr20QEn+STmp1f9p3A63nIv 7hvQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si11783721pfk.350.2018.05.02.00.45.17; Wed, 02 May 2018 00:45:31 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751115AbeEBHpA (ORCPT + 99 others); Wed, 2 May 2018 03:45:00 -0400 Received: from bmailout3.hostsharing.net ([176.9.242.62]:36325 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750883AbeEBHo5 (ORCPT ); Wed, 2 May 2018 03:44:57 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id AC9D2100C05A3; Wed, 2 May 2018 09:44:55 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 4A70426382; Wed, 2 May 2018 09:44:55 +0200 (CEST) Date: Wed, 2 May 2018 09:44:55 +0200 From: Lukas Wunner To: Kai Heng Feng Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , Takashi Iwai , mjg59@srcf.ucam.org, dvhart@infradead.org, andy@infradead.org, Mario Limonciello , alsa-devel@alsa-project.org, Linux Kernel Mailing List , platform-driver-x86@vger.kernel.org Subject: Re: [alsa-devel] [PATCH v4 3/3] ALSA: hda: Disabled unused audio controller for Dell platforms with Switchable Graphics Message-ID: <20180502074455.GA17650@wunner.de> References: <20180420094432.13133-1-kai.heng.feng@canonical.com> <20180420094432.13133-3-kai.heng.feng@canonical.com> <20180423080844.yh6ndicpu6mwy336@pali> <20180424211347.GA18258@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 26, 2018 at 03:52:08PM +0800, Kai Heng Feng wrote: > > On Apr 25, 2018, at 5:13 AM, Lukas Wunner wrote: > > On Mon, Apr 23, 2018 at 04:18:35PM +0800, Kai Heng Feng wrote: > > > That's because the audio device got runtime suspended by the graphics. > > > > > > In this case, if we really want to use the the discrete audio, > > > then we also need to wake up the graphics. > > > The discrete audio is totally useless when SG is enabled, > > > so my approach is just to disable it. > > > > I don't quite follow, that should be fixed by commit 07f4f97d7b4b > > ("vga_switcheroo: Use device link for HDA controller") which landed > > in v4.17-rc1. > > Looks like I hit a new bug: the discrete GFX and its audio controller > never enters to D3. > The GFX can enter to D3 with my prosed patch. Can you find out why? Does the HDA controller have a codec as child device that doesn't runtime suspend, perhaps because it failed to initialize correctly? If a codec device fails to runtime suspend, the HDA controller (as parent) and by extension the GPU (via the device link) are also kept runtime active. Do you see anything in dmesg when the AMD HDA controller probes? If you look in /sys/bus/pci/devices/0000:01:00.1/power/, does the HDA controller have active kids and what is its usage count? > > My understanding was that with SG enabled, the external DP/HDMI ports > > are muxed to the Intel GPU, so audio can only be streamed to external > > displays by the Intel HDA, not by the HDA integrated into the discrete > > AMD/Nvidia GPU. Audio streamed to the latter would essentially end up > > in a blackhole. And preventing the user from seeing such useless audio > > devices was the sole purpose of this commit. Am I missing something? > > Yes this is the intention. Could you add this information to the commit message then? Thanks, Lukas