Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp229378pxf; Thu, 11 Mar 2021 02:26:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuM+LAGyMYjQyL7ZGYLWa7URjRyBXYTKa/r2vNpLQz0b7UHWP8zJlXQK4zsx44uyeTVjew X-Received: by 2002:aa7:c857:: with SMTP id g23mr7918034edt.86.1615458402094; Thu, 11 Mar 2021 02:26:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615458402; cv=none; d=google.com; s=arc-20160816; b=q8jmt0YbY2aMa+h++XkE7N8AHPHOlK6FhPIV/Zm3zEomuYae1bd7KvR/1qOeQ4QPVE Vyu3yyB9EczDRUi6Jxk+wl/ATmIz5hbj87POFCNtuYaRZOK8Pj/wUMGT5x1shfY8HySw jBiyvQM9TXZh89EheXLLstSSPh0G1aUQ/Kf9dwndnq9qJQ2dUfWd7jzeyTujUXhMQuPX H7wmFyVHPUfpEgP6s6stQyBy1GABQB3wmECdZFWeRogTBJFVKjgHqKeBkbIb1rDYRJW6 rb6em94zuJKyoWFU9uioxqAerVEuPS5bb6ONxpLzKT6S3t/3nHEk2YoVDXTnORgUMRWI LHeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=L5IgBNO2fmFDEe9Mj6mTow4/9RaSsRkfUSeV3Z9ysHc=; b=Hiveg3BqwTM/6EN0Fu6oj01CjtyZUPeWfZkJE6AKTerJkPYQG1GUGnMMzqV4Yl05WS NZXxslrYDnMuon93wh85qu2goCtIchG0g1W19OP84MweBIvNxcC7EthvV4/TllwguxTy 2V9AXhJCRjBxXbpL5SHKUofKnaSu8aCKaGVgNT2xpla1eQYuDYer7nRtuGTnDkWeutEf ltagLpCtpA4uBzEZMNFfxhzQJdC8lZCj2uNXNtS8LkrIopDHHJLM8ctiO4A87JStRLgK u5J1JaXA8f+0/PCad8sXj5NyQr4BfiuPwNaaf74w5/oHd+y57e75yjMgdLHMZUEu3gLo ACKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@perex.cz header.s=default header.b=ETWC3PUz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=perex.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c13si1521414eje.45.2021.03.11.02.26.20; Thu, 11 Mar 2021 02:26:42 -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=@perex.cz header.s=default header.b=ETWC3PUz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=perex.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232358AbhCKKZG (ORCPT + 99 others); Thu, 11 Mar 2021 05:25:06 -0500 Received: from mail1.perex.cz ([77.48.224.245]:44692 "EHLO mail1.perex.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232321AbhCKKYl (ORCPT ); Thu, 11 Mar 2021 05:24:41 -0500 Received: from mail1.perex.cz (localhost [127.0.0.1]) by smtp1.perex.cz (Perex's E-mail Delivery System) with ESMTP id D03CFA003F; Thu, 11 Mar 2021 11:24:31 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.perex.cz D03CFA003F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perex.cz; s=default; t=1615458271; bh=L5IgBNO2fmFDEe9Mj6mTow4/9RaSsRkfUSeV3Z9ysHc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ETWC3PUztLMZwBlgzpRw3vVIi3geRiYoqpDzVxfvBBwoa69kw8fGsPBrtutrMUnBd ey0ZMOgU8W3uepE6VJ6mcoR6oi0hcJudFxnL4bexm/f733KSokzXsEno5u6K+SLjvt PJoxFmX6oZHBZoWqtTkEHekoETwNtwKxg23d+JsE= Received: from p1gen2.localdomain (unknown [192.168.100.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: perex) by mail1.perex.cz (Perex's E-mail Delivery System) with ESMTPSA; Thu, 11 Mar 2021 11:24:22 +0100 (CET) Subject: Re: No sound cards detected on Kabylake laptops after upgrade to kernel 5.8 To: Chris Chiu , Cezary Rojewski Cc: alsa-devel@alsa-project.org, Linux Kernel , yang.jie@linux.intel.com, pierre-louis.bossart@linux.intel.com, Takashi Iwai , liam.r.girdwood@linux.intel.com, broonie@kernel.org References: From: Jaroslav Kysela Message-ID: Date: Thu, 11 Mar 2021 11:24:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dne 11. 03. 21 v 6:50 Chris Chiu napsal(a): > On Tue, Mar 9, 2021 at 11:29 PM Cezary Rojewski > wrote: >> >> On 2021-03-09 1:19 PM, Chris Chiu wrote: >>> Hi Guys, >>> We have received reports that on some Kabylake laptops (Acer Swift >>> SF314-54/55 and Lenovo Yoga C930...etc), all sound cards no longer be >>> detected after upgrade to kernel later than 5.8. These laptops have >>> one thing in common, all of them have Realtek audio codec and connect >>> the internal microphone to DMIC of the Intel SST controller either >>> [8086:9d71] or [8086:9dc8]. Please refer to >>> https://bugzilla.kernel.org/show_bug.cgi?id=201251#c246 and >>> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1915117. >>> >>> From the dmesg from kernel 5.8, the sound related parts only show >>> as follows but the expected snd_hda_codec_realtek and the snd_soc_skl >>> are not even loaded then. >>> [ 13.357495] snd_hda_intel 0000:00:1f.3: DSP detected with PCI >>> class/subclass/prog-if info 0x040100 >>> [ 13.357500] snd_hda_intel 0000:00:1f.3: Digital mics found on >>> Skylake+ platform, using SST driver >>> >>> Building the kernel with the CONFIG_SND_SOC_INTEL_KBL removed can >>> load the snd_hda_codec_realtek successfully and the pulseaudio and >>> alsa-utils can detect the sound cards again. The result of bisecting >>> between kernel 5.4 and 5.8 also get similar result, reverting the >>> commit "ALSA: hda: Allow SST driver on SKL and KBL platforms with >>> DMIC" can fix the issue. I tried to generate the required firmware for >>> snd_soc_skl but it did not help. Please refer to what I did in >>> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1915117/comments/14 >>> and https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1915117/comments/18. >>> >>> Since the skl_hda_dsp_generic-tplg.bin and dfw_sst.bin are not in >>> the linux-firmware. The Intel SST support for Skylake family is not >>> yet complete. Can we simply revert the "ALSA: hda: Allow SST driver on >>> SKL and KBL platforms with DMIC" in the current stage and wait for SOF >>> support for Skylake family? Or please suggest a better solution for >>> this. Thanks >>> >>> Chris >>> >> >> Hello Chris, >> >> Guide: "Linux: HDA+DMIC with skylake driver" [1] should help >> understanding history behind the problem as well as fixing it. >> >> Upstream skylake driver - snd_soc_skl - is intended to support HDA DSP + >> DMIC configuration via means of snd_soc_skl_hda_dsp machine board >> driver. You _may_ switch to legacy HDAudio driver - snd_hda_intel - >> losing DMIC support in the process. To remove any confusion - for >> Skylake and Kabylake platforms, snd_soc_skl is your option. >> >> Now, due to above, I doubt any skylake-related topology has ever been >> upstreamed to linux-firmware as a) most boards are I2S-based, these are >> used by our clients which we support via separate channel b) hda >> dsp+dmic support on linux for missing until early 2020. >> >> Topologies for most common skylake driver configurations: >> - skl/kbl with i2s rt286 >> - apl/glk with i2s rt298 >> - with hda dsp >> can be found in alsa-topology-conf [2]. >> >> Standard, official tool called 'alsatplg' is capable of compiling these >> into binary form which, after being transferred to /lib/firmware/ may be >> consumed by the driver during runtime. >> I have no problem with providing precompiled binaries to linux-firmware, >> if that's what community wants. >> >> Regards, >> Czarek >> >> > > I think the guild [1] is too complicated for normal users to fix the problem. > Given it's not only the internal microphone being affected, it's no sound > devices being created at all so no audio functions can work after kernel 5.8. > > Is there any potential problem to built-in the " with hda dsp" precompiled > binary in linux-firmware? How do you distribute the SOF firmware? I'm going to include those binary topology files to the SOF firmware package for Fedora. Perhaps, you may follow this. Jaroslav > > Chris > >> [1]: https://gist.github.com/crojewsk/4e6382bfb0dbfaaf60513174211f29cb >> [2]: https://github.com/alsa-project/alsa-topology-conf/tree/master/topology -- Jaroslav Kysela Linux Sound Maintainer; ALSA Project; Red Hat, Inc.