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=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 24354C433ED for ; Tue, 20 Apr 2021 14:21:05 +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 B65C7613C4 for ; Tue, 20 Apr 2021 14:21:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B65C7613C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=users.sourceforge.net 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 59902167A; Tue, 20 Apr 2021 16:20:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 59902167A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1618928461; bh=gc9pPwTR+taPtha3SUREdlIFBDfp+vgalB2s9uB5zf0=; h=Date:From:To:In-Reply-To:References:Subject:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Reply-To:From; b=vFD3u0y0Bt0GWmtyT1yq3m+etWc9Yrn41Nt3Ts0N4kX4DHmqKBgu/knFh6qvpBGVW cSA4qlao4gdN3VhEr3RPpgIOo8nWBP3rRbHgkdHr4EC31JZA1XeeiaBksfBSRFEG07 dAdUh+VXqfjPmw7+cmEfjNSOdap9E2j5mv+md7QY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id B29CEF80168; Tue, 20 Apr 2021 16:20:10 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 77BC9F80253; Tue, 20 Apr 2021 16:20:09 +0200 (CEST) Received: from sonic312-25.consmr.mail.ir2.yahoo.com (sonic312-25.consmr.mail.ir2.yahoo.com [77.238.178.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id BE7D6F8014D for ; Tue, 20 Apr 2021 16:20:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BE7D6F8014D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b="nYscb5OZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1618928400; bh=8UoDolzH9lPQA9GcOdnNAtc/07UTeQSlwSuNb0m3y1A=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=nYscb5OZhB8jut5My5D4LzaQDytsedWRDBs3+xCNP/6ronNwU8iBsuGtv/1MPh7vd+OS/wpDKrdPJDl40Ek4DXpAgnrV0qZMW80GGtEvrAyVWJjlVEOlVhtxDMD8xnOKe9ATf+YwdoasiNH9kJF15mCzZDdfOFBYBFDuRIdpNIZ1vfxLtHXieJy3YCULRTzIWNca0am5rTOaDZyosVaVcHTgjflKH4xDY7fTFqnF/3kDfl8QM+h/aOcUYUfaoxlzSfxp/FFGDCe8rOqaOCMR1oSO/fDOlyZYywYAnySnCc4rmXibpamRq20fISpM+CN3TVm/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asSeWxLCD8dgvTsF3c12DLmVmaB4Mg9.T8_gu5r.kLrJ 8t7smVyKfTw-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ir2.yahoo.com with HTTP; Tue, 20 Apr 2021 14:20:00 +0000 Date: Tue, 20 Apr 2021 14:19:58 +0000 (UTC) From: Hin-Tak Leung To: Kuninori Morimoto , Peter Ujfalusi Message-ID: <212419469.6653726.1618928398310@mail.yahoo.com> In-Reply-To: <87h7k152du.wl-kuninori.morimoto.gx@renesas.com> References: <148484793.4894421.1618654607945.ref@mail.yahoo.com> <148484793.4894421.1618654607945@mail.yahoo.com> <877dkz5hz1.wl-kuninori.morimoto.gx@renesas.com> <1772063602.5910217.1618841824599@mail.yahoo.com> <87h7k152du.wl-kuninori.morimoto.gx@renesas.com> Subject: Re: ASoc / PCM recording-related regression between v5.4 and v5.5 MIME-Version: 1.0 X-Mailer: WebService/1.1.18121 YMailNodin Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: alsa-devel@alsa-project.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: , Reply-To: htl10@users.sourceforge.net Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Kuninori Morimoto: Apologies - I have finished bisecting, and flip the problematic commit back and forth twice to confirm. It is not one of yours! Sorry about that. Hi Peter: I found the commit of a rather unusual regression between kernel v5.4 and v5.5, for an out-of-tree driver on the raspberrypi. Everything looks identical between v5.4 and 5.5, within accountable differences, even with debugging in sound/ +p and the driver side. 5.4 records fine, 5.5 stucks on recording. The commit is one of yours: commit 4378f1fbe924054a09ff0d4e39e1a581b9245252 Author: Peter Ujfalusi Date: Fri Sep 27 10:16:46 2019 +0300 ASoC: soc-pcm: Use different sequence for start/stop trigger On stream stop currently we stop the DMA first followed by the CPU DAI. This can cause underflow (playback) or overflow (capture) on the DAI side as the DMA is no longer feeding data while the DAI is still active. It can be observed easily if the DAI side does not have FIFO (or it is disabled) to survive the time while the DMA is stopped, but still can happen on relatively slow CPUs when relatively high sampling rate is used: the FIFO is drained between the time the DMA is stopped and the DAI is stopped. The problem was initially at https://github.com/respeaker/seeed-voicecard/issues/290 then over to https://github.com/raspberrypi/linux/issues/4279 and finally here. The "seeed-8mic-voicecard-overlay.dts" is the dts corresponds to the problematic device ; The one with similar hardware but okay is "seeed-4mic-voicecard-overlay.dts" . The Raspberry Pi distribution raspbian jumped directly from 5.4.x to 5.10.x at the beginning of February. Considering the change has been in since the v5.5 merge window, I guess I'd like some help to correct / workaround on the out-of-tree driver side? And probably some new dev_err() message in the kernel for problematic driver helping to diagnose similar problems in the future would be nice. And everybody: apologies about the mistakes in the initial posting. Regards Hin-Tak