[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180414112529.GB4245@wunner.de>
Date: Sat, 14 Apr 2018 13:25:29 +0200
From: Lukas Wunner <lukas@...ner.de>
To: Kai-Heng Feng <kai.heng.feng@...onical.com>
Cc: Takashi Iwai <tiwai@...e.de>, mario.limonciello@...l.com,
pali.rohar@...il.com, andy@...radead.org, dvhart@...radead.org,
mjg59@...f.ucam.org, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org, platform-driver-x86@...r.kernel.org
Subject: Re: [PATCH v3 3/3] ALSA: hda: Disabled unused audio controller for
Dell platforms with Switchable Graphics
On Thu, Apr 12, 2018 at 10:12:49PM +0800, Kai-Heng Feng wrote:
> at 6:50 PM, Takashi Iwai <tiwai@...e.de> wrote:
> > On Thu, 12 Apr 2018 12:42:39 +0200, Kai-Heng Feng wrote:
> > > When SG is enabled, the unused AMD audio controller still exposes its
> > > sysfs, so userspace still opens the control file and stream. If
> > > userspace tries to output sound through the stream, it hangs when
> > > runtime suspend kicks in:
> > > [ 12.796265] snd_hda_intel 0000:01:00.1: Disabling via vga_switcheroo
> > > [ 12.796367] snd_hda_intel 0000:01:00.1: Cannot lock devices!
> > >
> > > Since the discrete audio controller isn't useful when SG enabled, we
> > > should just disable the device.
> > >
> > > Signed-off-by: Kai-Heng Feng <kai.heng.feng@...onical.com>
> >
> > I thought we manage this better now with runtime PM by Lukas's recent
> > patchset?
>
> Yes, that's true. I'll update commit log for next iteration.
>
> Nevertheless, the unusable control file and stream still get exposed via
> sysfs.
> We should disable them when SG is enabled.
Right, the hang on runtime suspend as mentioned in the commit message
should be gone in 4.17.
The purpose of this patch is thus to prevent the user from seeing or
opening the HDA controller on the discrete GPU. If SG is enabled,
external DP/HDMI displays are muxed to the Intel GPU, hence the HDA
controller on the discrete GPU cannot communicate with the attached
displays.
Thanks,
Lukas
Powered by blists - more mailing lists