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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F08ACC10DCE for ; Wed, 18 Mar 2020 09:41:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C2D2820674 for ; Wed, 18 Mar 2020 09:41:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727553AbgCRJlr (ORCPT ); Wed, 18 Mar 2020 05:41:47 -0400 Received: from mga09.intel.com ([134.134.136.24]:32288 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726994AbgCRJlr (ORCPT ); Wed, 18 Mar 2020 05:41:47 -0400 IronPort-SDR: mUEOjIbPACRYj1nzmCBLTuxLmJibW9swawMSSt7jE05SUMMReCnJWlXX95nfK5ZfEVR1J5S2B1 oJlA3cuowBfQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2020 02:41:46 -0700 IronPort-SDR: ORroYAM1KHIe5G6nl1CYBrtbrzPa8jYhFyIQ6qqrD+QGHGs+Q8O/LQlNvfrX8z0P0CccpA88s0 Om4sJrb4I/Sw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,566,1574150400"; d="scan'208";a="248117273" Received: from crojewsk-mobl1.ger.corp.intel.com (HELO [10.249.155.222]) ([10.249.155.222]) by orsmga006.jf.intel.com with ESMTP; 18 Mar 2020 02:41:43 -0700 Subject: Re: snd_hda_intel/sst-acpi sound breakage on suspend/resume since 5.6-rc1 To: Dominik Brodowski , tiwai@suse.com Cc: pierre-louis.bossart@linux.intel.com, liam.r.girdwood@linux.intel.com, yang.jie@linux.intel.com, broonie@kernel.org, perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20200318063022.GA116342@light.dominikbrodowski.net> From: Cezary Rojewski Message-ID: <66c719b3-a66e-6a9f-fab8-721ba48d7ad8@intel.com> Date: Wed, 18 Mar 2020 10:41:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200318063022.GA116342@light.dominikbrodowski.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-03-18 07:30, Dominik Brodowski wrote: > Hi! > > While 5.5.x works fine, mainline as of ac309e7744be (v5.6-rc6+) causes me > some sound-related trouble: after boot, the sound works fine -- but once I > suspend and resume my broadwell-based XPS13, I need to switch to headphone > and back to speaker to hear something. But what I hear isn't music but > garbled output. > > A few dmesg snippets from v5.6-rc6-9-gac309e7744be which might be of > interest. I've highlighted the lines differing from v.5.5.x which might be > of special interest: > Thank you for the report, Dominik. You definitely got our attention. I've checked the market: Dell XPS 13 9343, yes? Once you confirm model id, I'll order a piece immediately to our site. In regard to logs, thanks for highlighting important lines. Build is of 'rc' so bugs can still be in plenty - any reason for switching to cutting-edge kernel on production stuff? Our CI didn't detect any anomalies yet as it is running on 5.5. I'll direct your ticket on todays meeting. On the first look, issue seems to be connected with recent changes to /drivers/dma/dmaengine.c. DesignWare DMA controller drv - which HSW/BDW makes use of - might not have been updated accordingly. Will dig further on that. One more, just to make it clear for the rest of the viewers: > haswell-pcm-audio haswell-pcm-audio: Direct firmware load for intel/IntcPP01.bin failed with error -2 > haswell-pcm-audio haswell-pcm-audio: fw image intel/IntcPP01.bin not available(-2) Back in the ancient days of DSP (HSW/BDW are actually the very first audio DSP hws for Intel) topology was part of FW - SW could not configure it and probably that's why library IntcPP01 is attempted to be loaded on every boot, even if it's not part of configuration for given hw. Maybe we could make it quieter though.. > > (these last two messages already are printed a couple of time after boot, and then > again during a suspend/resume cycle. On v.5.5.y, there are similar messages > "no context buffer need to restore!"). Everything is built-in, no modules > are loaded. > > Unfortunately, I cannot bisect this issue easily -- i915 was broken for > quite some time on this system[*], prohibiting boot... Hmm, sounds like that issue is quite old. DSP for Haswell and Broadwell is available for I2S devices only, so this relates directly to legacy HDA driver. Compared to Skylake+, HDAudio controller for older platforms is found within GPU. My advice is to notify the DRM guys about this issue. Takashi, are you aware of problems with HDMI on HSW/ BDW or should I just loop Jani and other DRM peps here? Czarek 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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A8D4C10DCE for ; Wed, 18 Mar 2020 09:42:48 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 14D9820674 for ; Wed, 18 Mar 2020 09:42:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="WZtAUwoo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 14D9820674 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 626921743; Wed, 18 Mar 2020 10:41:56 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 626921743 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1584524566; bh=KA6kxYjRiaC7bOQKke1gGoL6RGTSHP3JuvmCUiV5Ec0=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=WZtAUwoo2rfWSA7YqZSt+C6txnv+l2TPKADyHsgN0FXADwc28sCICiLCny8AmQq1w fSGzfwiJU7dtT9rIQWR1C4ULI+9NxBWqlhcnpVjShcO1CN1BLquA9Edp59pKDBIGTg QPP311oLXomDxg+VtuHpnWChS3MpQ8rtl4YJImTE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id CFCCBF800B7; Wed, 18 Mar 2020 10:41:55 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7D6E4F80139; Wed, 18 Mar 2020 10:41:52 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 12580F800B7 for ; Wed, 18 Mar 2020 10:41:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 12580F800B7 IronPort-SDR: hsc+gA7eQGDeOcptvFFN1XRF1Y36dlEZYoYn8WV8DgLjRbXvzSi5B/QNbHt1HW5oD26C4wUE98 CrlPAq9OfqtQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2020 02:41:46 -0700 IronPort-SDR: ORroYAM1KHIe5G6nl1CYBrtbrzPa8jYhFyIQ6qqrD+QGHGs+Q8O/LQlNvfrX8z0P0CccpA88s0 Om4sJrb4I/Sw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,566,1574150400"; d="scan'208";a="248117273" Received: from crojewsk-mobl1.ger.corp.intel.com (HELO [10.249.155.222]) ([10.249.155.222]) by orsmga006.jf.intel.com with ESMTP; 18 Mar 2020 02:41:43 -0700 Subject: Re: snd_hda_intel/sst-acpi sound breakage on suspend/resume since 5.6-rc1 To: Dominik Brodowski , tiwai@suse.com References: <20200318063022.GA116342@light.dominikbrodowski.net> From: Cezary Rojewski Message-ID: <66c719b3-a66e-6a9f-fab8-721ba48d7ad8@intel.com> Date: Wed, 18 Mar 2020 10:41:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200318063022.GA116342@light.dominikbrodowski.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, yang.jie@linux.intel.com, pierre-louis.bossart@linux.intel.com, liam.r.girdwood@linux.intel.com, broonie@kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 2020-03-18 07:30, Dominik Brodowski wrote: > Hi! > > While 5.5.x works fine, mainline as of ac309e7744be (v5.6-rc6+) causes me > some sound-related trouble: after boot, the sound works fine -- but once I > suspend and resume my broadwell-based XPS13, I need to switch to headphone > and back to speaker to hear something. But what I hear isn't music but > garbled output. > > A few dmesg snippets from v5.6-rc6-9-gac309e7744be which might be of > interest. I've highlighted the lines differing from v.5.5.x which might be > of special interest: > Thank you for the report, Dominik. You definitely got our attention. I've checked the market: Dell XPS 13 9343, yes? Once you confirm model id, I'll order a piece immediately to our site. In regard to logs, thanks for highlighting important lines. Build is of 'rc' so bugs can still be in plenty - any reason for switching to cutting-edge kernel on production stuff? Our CI didn't detect any anomalies yet as it is running on 5.5. I'll direct your ticket on todays meeting. On the first look, issue seems to be connected with recent changes to /drivers/dma/dmaengine.c. DesignWare DMA controller drv - which HSW/BDW makes use of - might not have been updated accordingly. Will dig further on that. One more, just to make it clear for the rest of the viewers: > haswell-pcm-audio haswell-pcm-audio: Direct firmware load for intel/IntcPP01.bin failed with error -2 > haswell-pcm-audio haswell-pcm-audio: fw image intel/IntcPP01.bin not available(-2) Back in the ancient days of DSP (HSW/BDW are actually the very first audio DSP hws for Intel) topology was part of FW - SW could not configure it and probably that's why library IntcPP01 is attempted to be loaded on every boot, even if it's not part of configuration for given hw. Maybe we could make it quieter though.. > > (these last two messages already are printed a couple of time after boot, and then > again during a suspend/resume cycle. On v.5.5.y, there are similar messages > "no context buffer need to restore!"). Everything is built-in, no modules > are loaded. > > Unfortunately, I cannot bisect this issue easily -- i915 was broken for > quite some time on this system[*], prohibiting boot... Hmm, sounds like that issue is quite old. DSP for Haswell and Broadwell is available for I2S devices only, so this relates directly to legacy HDA driver. Compared to Skylake+, HDAudio controller for older platforms is found within GPU. My advice is to notify the DRM guys about this issue. Takashi, are you aware of problems with HDMI on HSW/ BDW or should I just loop Jani and other DRM peps here? Czarek