From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 457B1C3DA7A for ; Mon, 2 Jan 2023 12:43:52 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 81D7A9737; Mon, 2 Jan 2023 13:43:00 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 81D7A9737 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1672663430; bh=7iYQ5kN4T8/NNMSwKjCv4+apFzoOOusIYWOJxRB5jJg=; h=Date:From:To:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=uaMxIdzDrClLKg5WI9gGMTXw+xZVTXwdgNrSdL4YmLbbqcsfGKnbEHYlNgQisoRD4 Ld3kHdFXU7NoKaLCVAGrRLt+H5SceOZt0gMutn+Zk/vrCLgEfug6D7CIyCZAhecpV8 iVBprxP3uIlgImgrbTZxyNEC7IfIB21IAdtJxa8Y= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0E18DF8023A; Mon, 2 Jan 2023 13:43:00 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 440C7F8023B; Mon, 2 Jan 2023 13:42:58 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id BD757F800C0 for ; Mon, 2 Jan 2023 13:42:50 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BD757F800C0 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=Z1yYj+u7; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=zjGIYVhE Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 4524820EE5; Mon, 2 Jan 2023 12:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1672663370; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1sg7BmNN8+RDm1eojWN+wOBEZpkzt9WjUrPrxXXU8Oo=; b=Z1yYj+u7YbKVfLCniHq0g9pR1Utx3LIE2GOuUdANXf65nOnGb4Rp/dFZ2GHHU/b1+7pkRa xzG7Vpw+Td3omGiMB8eoW4wcbjHlbUUj42QDQaS8ZdRcyGUWglFNYKOZjU1zhclMX6GUqx Ge58qGAP+J3Hc/3l5aCgZ7c0+On+siA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1672663370; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1sg7BmNN8+RDm1eojWN+wOBEZpkzt9WjUrPrxXXU8Oo=; b=zjGIYVhEPt+kSK4f6vsoobHVlYjiVW06dOZ5AehbDtWDjK/2X4vIXpbbU5zXsVxsF8YUW+ l1f0BBTSi+L+2yBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 16C0213427; Mon, 2 Jan 2023 12:42:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lVXpBErRsmP2FwAAMHmgww (envelope-from ); Mon, 02 Jan 2023 12:42:50 +0000 Date: Mon, 02 Jan 2023 13:42:49 +0100 Message-ID: <87wn65umye.wl-tiwai@suse.de> From: Takashi Iwai To: Salvatore Bonaccorso Subject: Re: [regression, 5.10.y] =?ISO-8859-1?Q?Bug=A0216861?= - sound disappearance on Acer Swift 3 SF314-59-78UR after update to 5.10.157 In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alsa-devel , "regressions@lists.linux.dev" , Mark Brown , Takashi Iwai , LKML , Richard Fitzgerald , Thorsten Leemhuis , =?ISO-8859-1?Q?P=C1LFFY_D=E1niel?= , Sergey Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Mon, 02 Jan 2023 11:43:36 +0100, Salvatore Bonaccorso wrote: > > Hi, > > [Adding as well Richard Fitzgerald and PÁLFFY Dániel to recipients] > > On Fri, Dec 30, 2022 at 09:08:57AM +0100, Thorsten Leemhuis wrote: > > Hi, this is your Linux kernel regression tracker speaking. > > > > I noticed a regression report in bugzilla.kernel.org. As many (most?) > > kernel developer don't keep an eye on it, I decided to forward it by > > mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216861 : > > > > > Sergey 2022-12-29 10:07:51 UTC > > > > > > Created attachment 303497 [details] > > > pulseaudio.log > > > > > > Sudden sound disappearance was reported for some laptops, e.g. > > > > > > Acer Swift 3 SF314-59-78UR 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz > > > > > > # lspci > > > 0000:00:1f.3 Multimedia audio controller: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller (rev 20) > > > Subsystem: Acer Incorporated [ALI] Device 148c > > > Flags: bus master, fast devsel, latency 32, IRQ 197, IOMMU group 12 > > > Memory at 601f270000 (64-bit, non-prefetchable) [size=16K] > > > Memory at 601f000000 (64-bit, non-prefetchable) [size=1M] > > > Capabilities: [50] Power Management version 3 > > > Capabilities: [80] Vendor Specific Information: Len=14 > > > Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ > > > Kernel driver in use: sof-audio-pci > > > > > > I am attaching the pulseaudio and dmesg logs > > > > > > This bug started reproducing after updating the kernel from 5.10.156 to 5.10.157 > > > > > > Bisection revealed the commit being reverted: > > > > > > c34db0d6b88b1da95e7ab3353e674f4f574cccee is the first bad commit > > > commit c34db0d6b88b1da95e7ab3353e674f4f574cccee > > > Author: Richard Fitzgerald > > > Date: Fri Nov 4 13:22:13 2022 +0000 > > > > > > ASoC: soc-pcm: Don't zero TDM masks in __soc_pcm_open() > > > > > > [ Upstream commit 39bd801d6908900e9ab0cdc2655150f95ddd4f1a ] > > > > > > The DAI tx_mask and rx_mask are set by snd_soc_dai_set_tdm_slot() > > > and used by later code that depends on the TDM settings. So > > > __soc_pcm_open() should not be obliterating those mask values. > > > > > > [...] > > > Original bug report: https://bugzilla.altlinux.org/44690 > > > > See the ticket for more details. > > > > BTW, let me use this mail to also add the report to the list of tracked > > regressions to ensure it's doesn't fall through the cracks: > > > > #regzbot introduced: c34db0d6b88b1d > > https://bugzilla.kernel.org/show_bug.cgi?id=216861 > > #regzbot title: sound: asoc: sudden sound disappearance > > #regzbot ignore-activity > > FWIW, we had as well reports in Debian after having updated the kernel > from 5.10.149 based one to 5.10.158 based one in the last point > releases, they are at least: > > https://bugs.debian.org/1027483 > https://bugs.debian.org/1027430 I got another report while the commit was backported to 5.14-based openSUSE Leap kernel, and I ended up with dropping it. So, IMO, it's safer to drop this patch from the older stable trees. As far as I see, 5.15.y and 5.10.y got this. Unless anyone gives a better fix, I'm going to submit a revert patch for those trees. thanks, Takashi From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0DD22F2E for ; Mon, 2 Jan 2023 12:42:51 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 4524820EE5; Mon, 2 Jan 2023 12:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1672663370; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1sg7BmNN8+RDm1eojWN+wOBEZpkzt9WjUrPrxXXU8Oo=; b=Z1yYj+u7YbKVfLCniHq0g9pR1Utx3LIE2GOuUdANXf65nOnGb4Rp/dFZ2GHHU/b1+7pkRa xzG7Vpw+Td3omGiMB8eoW4wcbjHlbUUj42QDQaS8ZdRcyGUWglFNYKOZjU1zhclMX6GUqx Ge58qGAP+J3Hc/3l5aCgZ7c0+On+siA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1672663370; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1sg7BmNN8+RDm1eojWN+wOBEZpkzt9WjUrPrxXXU8Oo=; b=zjGIYVhEPt+kSK4f6vsoobHVlYjiVW06dOZ5AehbDtWDjK/2X4vIXpbbU5zXsVxsF8YUW+ l1f0BBTSi+L+2yBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 16C0213427; Mon, 2 Jan 2023 12:42:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lVXpBErRsmP2FwAAMHmgww (envelope-from ); Mon, 02 Jan 2023 12:42:50 +0000 Date: Mon, 02 Jan 2023 13:42:49 +0100 Message-ID: <87wn65umye.wl-tiwai@suse.de> From: Takashi Iwai To: Salvatore Bonaccorso Cc: Thorsten Leemhuis , Alsa-devel , "regressions@lists.linux.dev" , LKML , Takashi Iwai , Richard Fitzgerald , Mark Brown , =?ISO-8859-1?Q?P=C1LFFY_D=E1niel?= , Sergey Subject: Re: [regression, 5.10.y] =?ISO-8859-1?Q?Bug=A0216861?= - sound disappearance on Acer Swift 3 SF314-59-78UR after update to 5.10.157 In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: regressions@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit On Mon, 02 Jan 2023 11:43:36 +0100, Salvatore Bonaccorso wrote: > > Hi, > > [Adding as well Richard Fitzgerald and PÁLFFY Dániel to recipients] > > On Fri, Dec 30, 2022 at 09:08:57AM +0100, Thorsten Leemhuis wrote: > > Hi, this is your Linux kernel regression tracker speaking. > > > > I noticed a regression report in bugzilla.kernel.org. As many (most?) > > kernel developer don't keep an eye on it, I decided to forward it by > > mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216861 : > > > > > Sergey 2022-12-29 10:07:51 UTC > > > > > > Created attachment 303497 [details] > > > pulseaudio.log > > > > > > Sudden sound disappearance was reported for some laptops, e.g. > > > > > > Acer Swift 3 SF314-59-78UR 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz > > > > > > # lspci > > > 0000:00:1f.3 Multimedia audio controller: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller (rev 20) > > > Subsystem: Acer Incorporated [ALI] Device 148c > > > Flags: bus master, fast devsel, latency 32, IRQ 197, IOMMU group 12 > > > Memory at 601f270000 (64-bit, non-prefetchable) [size=16K] > > > Memory at 601f000000 (64-bit, non-prefetchable) [size=1M] > > > Capabilities: [50] Power Management version 3 > > > Capabilities: [80] Vendor Specific Information: Len=14 > > > Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ > > > Kernel driver in use: sof-audio-pci > > > > > > I am attaching the pulseaudio and dmesg logs > > > > > > This bug started reproducing after updating the kernel from 5.10.156 to 5.10.157 > > > > > > Bisection revealed the commit being reverted: > > > > > > c34db0d6b88b1da95e7ab3353e674f4f574cccee is the first bad commit > > > commit c34db0d6b88b1da95e7ab3353e674f4f574cccee > > > Author: Richard Fitzgerald > > > Date: Fri Nov 4 13:22:13 2022 +0000 > > > > > > ASoC: soc-pcm: Don't zero TDM masks in __soc_pcm_open() > > > > > > [ Upstream commit 39bd801d6908900e9ab0cdc2655150f95ddd4f1a ] > > > > > > The DAI tx_mask and rx_mask are set by snd_soc_dai_set_tdm_slot() > > > and used by later code that depends on the TDM settings. So > > > __soc_pcm_open() should not be obliterating those mask values. > > > > > > [...] > > > Original bug report: https://bugzilla.altlinux.org/44690 > > > > See the ticket for more details. > > > > BTW, let me use this mail to also add the report to the list of tracked > > regressions to ensure it's doesn't fall through the cracks: > > > > #regzbot introduced: c34db0d6b88b1d > > https://bugzilla.kernel.org/show_bug.cgi?id=216861 > > #regzbot title: sound: asoc: sudden sound disappearance > > #regzbot ignore-activity > > FWIW, we had as well reports in Debian after having updated the kernel > from 5.10.149 based one to 5.10.158 based one in the last point > releases, they are at least: > > https://bugs.debian.org/1027483 > https://bugs.debian.org/1027430 I got another report while the commit was backported to 5.14-based openSUSE Leap kernel, and I ended up with dropping it. So, IMO, it's safer to drop this patch from the older stable trees. As far as I see, 5.15.y and 5.10.y got this. Unless anyone gives a better fix, I'm going to submit a revert patch for those trees. thanks, Takashi