Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp490832ybh; Wed, 18 Mar 2020 03:50:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtemhKZQ2yRygTQFfBCjlJgmsuh+C3g+HVLnXsJdTLNDpnl/h11oIodBEEzJ4nyTbCPOwFx X-Received: by 2002:a9d:d0f:: with SMTP id 15mr3347067oti.161.1584528612526; Wed, 18 Mar 2020 03:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584528612; cv=none; d=google.com; s=arc-20160816; b=oVtDdBtsRvU7yzFBSZf+nLhzAFaRxD7s47nsQ8pdN0sdoY3lskV5Cob4cnN/qRcPBe vDuc/DEmFvtZtXUqaVPWzo9bKG6Wk0S78MM1w+oYgoTXJYkYX9DNUoPzNIapTc753PcO i7eFYfGno8LVrNYj5B+tLHMYydyROe9Lb3JpPiG+OzTlFRnzi5HiBOiMcauFVi48m1Nm Qa+oOVDn26/b5IwSucTdHbV6jyP2EbqRftThq5wHG+Lfyq2x/RDwzjsIDYt4lFzMKrtP U+QlGPy8T7z1+tsDnWz3PXiYB7H6cgAV1R8M7i89GnUel0P4CvXJFf5Mm0J5wBstly+R t+3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=0YegzHoBKgOmPxQyUufLpPoNYVvljWng+N5o6p8QVaI=; b=LDJzmCMH8hvJjiJXRFxixyIGjhqhHNoYuYw8IO3XnzOTFRgPeaNAoxtT/Wv0rzW1w9 y+KjfssBf7Jf2h1Dod679Rc/F0GmyIoME/zXaYH1XpoaaMgiw2od5RYTydBpNm6DABcW sq2JcQWIJpJeo/8nKnIfM468G/UzHC8caLy9Fth/iK78Pq8ZhYICPtMlbda2JD/3lAZ9 hYYj+XicjNnoFyqHieUa4ya/WSr9/9K52EB6iLR7PwxrOB4pwZ2LPME/eKImzb2HhAGv Nxv07LyJSk8Fan09TJOoEo46NrNgmEUE4djQULkObvFBKLB+zljSTQC6WCWVG7bvkoTB BcpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g19si3510183otn.219.2020.03.18.03.49.59; Wed, 18 Mar 2020 03:50:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726786AbgCRKth (ORCPT + 99 others); Wed, 18 Mar 2020 06:49:37 -0400 Received: from mga02.intel.com ([134.134.136.20]:12655 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbgCRKth (ORCPT ); Wed, 18 Mar 2020 06:49:37 -0400 IronPort-SDR: llFlVfmWM0V3lROmBel8VifxDVSxgc8MG/4KffkOpzwVjhwSVz6Edz++pQedrU1O+hsIkEBJB0 e1Cm8tyFFVHg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2020 03:49:36 -0700 IronPort-SDR: 6nD/civf1X1VTM445hEQVCR8wZBfwTXx7kueZpouG9q6wgYQobfi3GdLSKGEQsyQfNthr8xMc/ JW3egpM/xqWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,566,1574150400"; d="scan'208";a="324128902" Received: from hwang33-mobl.ccr.corp.intel.com (HELO [10.254.210.239]) ([10.254.210.239]) by orsmga001.jf.intel.com with ESMTP; 18 Mar 2020 03:49:34 -0700 Subject: Re: snd_hda_intel/sst-acpi sound breakage on suspend/resume since 5.6-rc1 To: Dominik Brodowski , cezary.rojewski@intel.com, pierre-louis.bossart@linux.intel.com, liam.r.girdwood@linux.intel.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, curtis@malainey.com References: <20200318063022.GA116342@light.dominikbrodowski.net> From: Keyon Jie Message-ID: <41d0b2b5-6014-6fab-b6a2-7a7dbc4fe020@linux.intel.com> Date: Wed, 18 Mar 2020 18:49:56 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 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 3/18/20 2:30 PM, 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: > > ... > snd_hda_intel 0000:00:03.0: enabling device (0000 -> 0002) > usbcore: registered new interface driver snd-usb-audio > snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops) > input: HDA Intel HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/sound/card0/input13 > input: HDA Intel HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/sound/card0/input14 > input: HDA Intel HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/sound/card0/input15 > input: HDA Intel HDMI HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.0/sound/card0/input16 > input: HDA Intel HDMI HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:03.0/sound/card0/input17 > Console: switching to colour frame buffer device 240x67 > !!! sst-acpi INT3438:00: WARN: Device release is not defined so it is not safe to unbind this driver while in use > i915 0000:00:02.0: fb0: i915drmfb frame buffer device > sst-acpi INT3438:00: DesignWare DMA Controller, 8 channels > psmouse serio1: synaptics: Unable to query device: -5 > 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) > haswell-pcm-audio haswell-pcm-audio: FW loaded, mailbox readback FW info: type 01, - version: 00.00, build 77, source commit id: 876ac6906f31a43b6772b23c7c983ce9dcb18a19 > rt286 i2c-INT343A:00: ASoC: sink widget DMIC1 overwritten > rt286 i2c-INT343A:00: ASoC: source widget DMIC1 overwritten > broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> System Pin mapping ok > broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Offload0 Pin mapping ok > broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Offload1 Pin mapping ok > broadwell-audio broadwell-audio: snd-soc-dummy-dai <-> Loopback Pin mapping ok > broadwell-audio broadwell-audio: rt286-aif1 <-> snd-soc-dummy-dai mapping ok > input: broadwell-rt286 Headset as /devices/pci0000:00/INT3438:00/broadwell-audio/sound/card1/input18 > ... > ALSA device list: > #0: HDA Intel HDMI at 0xf7218000 irq 48 > #1: DellInc.-XPS139343--0TM99H > ... > !!! haswell-pcm-audio haswell-pcm-audio: warning: stream is NULL, no stream to reset, ignore it. > !!! haswell-pcm-audio haswell-pcm-audio: warning: stream is NULL, no stream to free, ignore it. > > (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... > > Thanks for taking a look at this issue! > > Dominik > > > [*] https://gitlab.freedesktop.org/drm/intel/issues/1151 > Hi Dominik, Thanks for reporting, yes, this is Keyon(Yang Jie) here, we do have several other Broadwell comercial platforms in the market, adding Curtis from Google in case they may hit similar issue once upgrading to the latest kernel. From your description above, it looks the ucm and pulseaudio is involved, can you help do a quick try if using aplay directly will hit the same issue? Thanks, ~Keyon