Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3834852pxb; Mon, 1 Feb 2021 06:04:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXTSEWeLhIXhJdxeD74JA6hjKhSoYFgvEVi5RZWtOjZsrNDrX/QpYRujzVbgXdoXJVQuu6 X-Received: by 2002:a2e:5ca:: with SMTP id 193mr10355142ljf.236.1612188268868; Mon, 01 Feb 2021 06:04:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612188268; cv=none; d=google.com; s=arc-20160816; b=Dilohg9vCQSQ+J3r+QPqyS1JixHaK3aClg5TVICfeM+8DYXx8+WrWAcBXCYS92VCjE KJc9YKWra7vf14q7a+EOw0W+mquu4sF7R+k0bcaVa9xnTDqzbqyRg0IzoP2A/6eL7Uii vbfJ9fkQiD1+UXNh0kWy9wbR4NkoD59kAhIXrdDLBVGSzhX43w/usWxiUdItm7qJ74WM U2pFI8jmEcmwFRvWV/3NuJgbSaJDSAhjiaKk0Id7KqaBOPd46rsM+5PoDMO9ckfwWLMG 7+/2ZMw5YOk4z8pO4Mpg5gHOnA1Gtw6bLVDMSlwEztFYDAcpyqYrCbExH+F5GZYrLjxG Ai7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=LXmNda8rIzqHWjVV8O1/US9WzhMiddP+KCPS75wqqRM=; b=cVUMzzTF+FwqoTACtN8Vp04LTexmy3roxc/sOW5TOU4LSLlsKTLdXZ1Lwq9+AGWMaN qOruAe1wY+jgzrTngbJP6XJQrJMyTi5KlhWSrP5nda8YLbjhT+ypO2ysuJVQEKQHeU33 h/T0JHtaQRjUywPTOf6IFGYXJNxzEgvD+PPWSa5a8Wc9lFBHVM2pKacloOqnGlzbmeuo ZUFLJFtaU7Soh1E42IBNMFzjDuBqi1MJc7g9tRDiIzib9eHaAX3Ty/J0icklqSRYxNFU +/nGBq/FnHpqfHOZCLmt+qNMaGzr+8cEOsP/XE/085MhWgjayBg0OIG5HrHwh/Lc0UDc a06g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=mZZWY+M7; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=m59QPJk9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u22si10340067ejc.544.2021.02.01.06.03.48; Mon, 01 Feb 2021 06:04:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=mZZWY+M7; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=m59QPJk9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232434AbhBAN7E (ORCPT + 99 others); Mon, 1 Feb 2021 08:59:04 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:56529 "EHLO wout3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232042AbhBAN7C (ORCPT ); Mon, 1 Feb 2021 08:59:02 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 28F8972F; Mon, 1 Feb 2021 08:57:55 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 01 Feb 2021 08:57:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=LXmNda8rIzqHWjVV8O1/US9WzhM iddP+KCPS75wqqRM=; b=mZZWY+M7ry2daYTemu8RwX+RQBCD8PEtp43R6TZcjw4 4/TuMFAQdRzBcIocXLNdqL/XTSdCw5y6TZKPu/6MaiZ+2NGj5c/LW4csgFwkGH/5 TV9jSRsvlOmpR3qhj2ka+Ts464XaNlHs8rRkgWuQ++xHQcLPeHrvH62gPJz5+D4Z ZcxeXC/nysYQFdQTS0XuaEuI0S+uc8mJgO9+xg1mBT+B+Kxzmb4HjG9VDwlp2s9e dci9bSkmBfCqEYXGBnc9eie711CZkzMQjsCdvtvWNIdgTlRKVxHO7lG/DyXie/y2 UHntKpjcVK0AGtlBu0GA23JM443TNxijrbVAcVgxgFQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=LXmNda 8rIzqHWjVV8O1/US9WzhMiddP+KCPS75wqqRM=; b=m59QPJk9a1Wks6OTK3BTYV dXhoUj4nUMKNEzrTDhIjW0aVBrOiZC9wVnDpE76Tn3me+o5BFV+UynkdTKAPRFln tgtI0rYo0Hvpxq73YMSLLv9q8fg/Ayy66CYKRa4kpx7ADhEqhtKDklqVC3ysqbTN fhhe1Gw57ymGUcwDIhrVODFcwfFbqINCZqZJWL/hBIGrJwu35J23B8/uSRIgeA4g j1voE+Tpwdh3s5we6P859XoGeUjnuKS4NlgL+E2NeL2eWJayWhxiqLsmMfiolZ+6 sZqbgIYweIRo+xJBD3fi5+cwv0dbNC555LYiEmbWGmHO7iq5hcHUVC+k6lOa/Qiw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeekgdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghgucfm jfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnheplefhfeeuvd eltdefgeetjeehtedvhfekleefveelhefhhfeigedtueevgfeiffdunecuffhomhgrihhn pehkvghrnhgvlhdrohhrghdprhgvughhrghtrdgtohhmnecukfhppeekfedrkeeirdejge drieegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep ghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA id 5B618240062; Mon, 1 Feb 2021 08:57:53 -0500 (EST) Date: Mon, 1 Feb 2021 14:57:43 +0100 From: Greg KH To: Erich Ritz Cc: Takashi Iwai , Michael Catanzaro , "N, Harshapriya" , "alsa-devel@alsa-project.org" , Jaroslav Kysela , Takashi Iwai , "linux-kernel@vger.kernel.org" , "kai.vehmanen@intel.com" , "stable@vger.kernel.org" Subject: Re: [REGRESSION] "ALSA: HDA: Early Forbid of runtime PM" broke my laptop's internal audio Message-ID: References: <9ACPNQ.AF32G3OJNPHA3@redhat.com> <8CEPNQ.GAG87LR8RI871@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 01, 2021 at 04:24:51AM +0000, Erich Ritz wrote: > On Friday, January 29, 2021 9:17 AM, Takashi Iwai wrote: > > > On Fri, 29 Jan 2021 17:12:08 +0100, > > Michael Catanzaro wrote: > > > > > On Fri, Jan 29, 2021 at 9:30 am, Michael Catanzaro > > > mcatanzaro@redhat.com wrote: > > > > > > > OK, I found "ALSA: hda/via: Apply the workaround generically for > > > > Clevo machines" which was just merged yesterday. So I will test > > > > again to find out. > > > > > > Hi Takashi, hi Harsha, > > > I can confirm that the problem is fixed by this commit: > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4961167bf7482944ca09a6f71263b9e47f949851 > > > > Thanks, good to hear. > > > > Then I think we can drop the entry from power_save_denylist in > > hda_intel.c. Could you try that it still works with the patch below? > > > > thanks, > > > > Takashi > > > > --- a/sound/pci/hda/hda_intel.c > > +++ b/sound/pci/hda/hda_intel.c > > @@ -2217,8 +2217,6 @@ static const struct snd_pci_quirk power_save_denylist[] = { > > /* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 / > > SND_PCI_QUIRK(0x1043, 0x8733, "Asus Prime X370-Pro", 0), > > / https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ > > > > - SND_PCI_QUIRK(0x1558, 0x6504, "Clevo W65_67SB", 0), > > - /* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 / > > SND_PCI_QUIRK(0x1028, 0x0497, "Dell Precision T3600", 0), > > / https://bugzilla.redhat.com/show_bug.cgi?id=1525104 / > > / Note the P55A-UD3 and Z87-D3HP share the subsys id for the HDA dev */ > > For me applying patch 4961167bf7482944ca09a6f71263b9e47f949851 on top of 5.10.12 fixes audio, but the above quoted patch applied to 5.10.12 does NOT fix audio. What I mean by fixes: > Audio works normally on 5.4.94, and on 5.10.12 with patch 4961167 applied. > I hear no audio from the laptop speakers on 5.10.12 and 5.10.12 with the above quoted patch applied. Opening pavucontrol shows a graphical response in the meter, but no audio is heard from the speakers. I did not test plugging in headphones and did not test audio over HDMI. > > I have a System76 Gazelle Pro 7 (gazp7). > > # lspci -s "00:1b" -vv > 00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04) > Subsystem: CLEVO/KAPOK Computer 7 Series/C210 Series Chipset Family High Definition Audio Controller > Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ > Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Latency: 0, Cache Line Size: 64 bytes > Interrupt: pin A routed to IRQ 36 > Region 0: Memory at f7e10000 (64-bit, non-prefetchable) [size=16K] > Capabilities: [50] Power Management version 2 > Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+) > Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- > Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ > Address: 00000000fee003b8 Data: 0000 > Capabilities: [70] Express (v1) Root Complex Integrated Endpoint, MSI 00 > DevCap: MaxPayload 128 bytes, PhantFunc 0 > ExtTag- RBE- > DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported- > RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop- > MaxPayload 128 bytes, MaxReadReq 128 bytes > DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend- > Capabilities: [100 v1] Virtual Channel > Caps: LPEVC=0 RefClk=100ns PATEntryBits=1 > Arb: Fixed- WRR32- WRR64- WRR128- > Ctrl: ArbSelect=Fixed > Status: InProgress- > VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans- > Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256- > Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=01 > Status: NegoPending- InProgress- > VC1: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans- > Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256- > Ctrl: Enable+ ID=1 ArbSelect=Fixed TC/VC=22 > Status: NegoPending- InProgress- > Capabilities: [130 v1] Root Complex Link > Desc: PortNumber=0f ComponentID=00 EltType=Config > Link0: Desc: TargetPort=00 TargetComponent=00 AssocRCRB- LinkType=MemMapped LinkValid+ > Addr: 00000000fed1c000 > Kernel driver in use: snd_hda_intel > Kernel modules: snd_hda_intel > > And on kernel 5.4.94: > # dmesg | grep hda > [ 21.307684] snd_hda_intel 0000:00:1b.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915]) > [ 21.493303] snd_hda_codec_via hdaudioC0D0: autoconfig for VT1802: line_outs=1 (0x24/0x0/0x0/0x0/0x0) type:speaker > [ 21.493306] snd_hda_codec_via hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) > [ 21.493309] snd_hda_codec_via hdaudioC0D0: hp_outs=1 (0x25/0x0/0x0/0x0/0x0) > [ 21.493310] snd_hda_codec_via hdaudioC0D0: mono: mono_out=0x0 > [ 21.493312] snd_hda_codec_via hdaudioC0D0: inputs: > [ 21.493315] snd_hda_codec_via hdaudioC0D0: Mic=0x2b > [ 21.493317] snd_hda_codec_via hdaudioC0D0: Internal Mic=0x29 > > > Apologies if this is noise. I haven't been able to find if 4961167bf7482944ca09a6f71263b9e47f949851 is queued up for the next stable release of 5.10. It will be in the next 5.10.y release. thanks, greg k-h