Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1535140ybg; Thu, 11 Jun 2020 12:20:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyj2iu5K9D3FbPDhE7wCfwVWs2Rjl7RnGV/9RGCiZ1ssp+T4BzLGjAbC9B70uuHtSnhFVOd X-Received: by 2002:aa7:c71a:: with SMTP id i26mr8258435edq.149.1591903203692; Thu, 11 Jun 2020 12:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591903203; cv=none; d=google.com; s=arc-20160816; b=LbBrf1d9i0XNltmj9e+n484VhoPmSG3jn/nIagL6Orb5WJgNNYBSWb724mEK0fSYyv ywFiLEu3ne1mYHuwvKU6nee96MCE7rfDGWvj93yTp35y/fUoyuTNELHBWcZiLZpr2c5R ky/4iYdLk/5Oi9TQ84bxydISRQaS5L+fRezUYH8lHXTOirxPj+mS8cx/FRWwcKCQZq9r FeEvXmn5Tu/H6GcNXJ0KGtVHQtBvOUzhKjEu2mFi1OiK7EqrSDmeYNr+lYUuEPOzBVg0 yHjC1ApkB5HB77g9LNPIkTQFCVCGcAVOlt/73jZlk46OtsMpvMWSIsMTyWiUkdSIkmQ1 Xg0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=Vf8tzjFW+kOLmNUoBjAvBrhRKvdaJmzG8eLVhnEvRUI=; b=sOQkG6Z119rT12sveL7wXqL1VTpyZvoUS2YzG6qR/DjysQP2fRqIqSnYSq4/LyCEXm 08MpuF27J/ysTeG910Pb4FzmPgCCE/mjkghsqTNdFyxX+QJCowGUqYs2b8kTUUeq9TKp Zs783bT/hD5peQit7u5mSzisDAJbk7ve267bSGnMTwMpw2aMRWtYRntM8luWuJmSTPZ5 jFhtldg9ujcJCu0NUEVgZSefGMtog3jhX5hCMobi3D8cs50PLasjdsc0aS5B0Sbf1V7M XyhceLQHqO7DETdoAEnjH5VWFJolKh8cUdCywrMTB0gkmQnxPxErELAwET4prqOFwQz3 JKiw== ARC-Authentication-Results: i=1; mx.google.com; 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 a9si2577267ejk.553.2020.06.11.12.19.41; Thu, 11 Jun 2020 12:20:03 -0700 (PDT) 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; 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 S1726785AbgFKR73 (ORCPT + 99 others); Thu, 11 Jun 2020 13:59:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:51602 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726321AbgFKR72 (ORCPT ); Thu, 11 Jun 2020 13:59:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 439C3AD8C; Thu, 11 Jun 2020 17:59:30 +0000 (UTC) Date: Thu, 11 Jun 2020 19:59:26 +0200 Message-ID: From: Takashi Iwai To: "Lu, Brent" Cc: Ranjani Sridharan , "alsa-devel@alsa-project.org" , Pierre-Louis Bossart DRIVERS , "authored:2/16=12%,added_lines:21/248=8%,removed_lines:5/84=6%,),Liam Girdwood DRIVERS )" , "commit_signer:6/16=38%,authored:6/16=38%,added_lines:123/248=50% ,removed_lines:36/84=43%,Kai Vehmanen DRIVERS )" , "Daniel Baluta DRIVERS )" , Mark Brown , Jaroslav Kysela , Takashi Iwai , "Rojewski, Cezary" , Zhu Yingjiang , Keyon Jie , Bard Liao , "sound-open-firmware@alsa-project.orgDRIVERS" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ASoC: SOF: Intel: hda: unsolicited RIRB response In-Reply-To: References: <1591883073-17190-1-git-send-email-brent.lu@intel.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 Jun 2020 19:09:08 +0200, Lu, Brent wrote: > > > Hi Brent, > > > > Thanks for the patch. Is this fix for a specific issue you're seeing? > > If so, could you please give us some details about it? > > > > Thanks, > > Ranjani > > Hi Ranjani, > > It's reported to happen on GLK Chromebook 'Fleex' that sometimes it > cannot output the audio stream to external display. The kernel is > Chrome v4.14 branch. Following is the reproduce step provided by > ODM but I could reproduce it simply running aplay or cras_test_client > so I think it's not about the cable plug/unplug handling. > > What steps will reproduce the problem? > 1. Play YouTube video on Chromebook and connect it to external monitor with Type C to DP dongle > 2. Press monitor power button to turn off the monitor > 3. Press monitor power button again to turn on the monitor > 4. Continue to play YouTube video and check audio playback > 5. No sound comes out from built-in speaker of external monitor when turn on external monitor > > I added debug messages to print the RIRBWP register and realize that > response could come between the read of RIRBWP in the > snd_hdac_bus_update_rirb() function and the interrupt clear in the > hda_dsp_stream_interrupt() function. The response is not handled but > the interrupt is already cleared. It will cause timeout unless more > responses coming to RIRB. Now I noticed that the legacy driver already addressed it recently via commit 6d011d5057ff ALSA: hda: Clear RIRB status before reading WP We should have checked SOF at the same time, too... thanks, Takashi