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=-5.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 3D5A2C433DF for ; Sun, 14 Jun 2020 12:08:59 +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 AF64820747 for ; Sun, 14 Jun 2020 12:08:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="XpmaD2vq"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=yahoo.ca header.i=@yahoo.ca header.b="JH8MJsCa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF64820747 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=yahoo.ca 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 3457115E2; Sun, 14 Jun 2020 14:08:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3457115E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1592136537; bh=9a78ciIc1F4VlNnwewEZ6hkcrXkDMHhytuuakyeDxhw=; h=Date:From:Subject:To:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=XpmaD2vqgRgeuHEGemt8hZ3FfJn63pCyb40UsRDWbZxHe8fcCEZc1NYsoi1QvHSR1 RIktQ9Mo97TN/ZKEK9NFuSheIDWBm6ibFKTrF4LAIw4b972wfoBjU4sEXH0htkmb5W c9RUoz1E+mnbnSrl55DY0RpQtp0J5PtZxGU7wdZc= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id BA33DF80217; Sun, 14 Jun 2020 14:08:06 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 23899F8022B; Sun, 14 Jun 2020 14:08:05 +0200 (CEST) Received: from sonic303-24.consmr.mail.gq1.yahoo.com (sonic303-24.consmr.mail.gq1.yahoo.com [98.137.64.205]) (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 3C4D0F800CD for ; Sun, 14 Jun 2020 14:07:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3C4D0F800CD Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=yahoo.ca header.i=@yahoo.ca header.b="JH8MJsCa" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1592136475; bh=P/Ws/g97d9TXQGyC9BzZilU2SE7WZw+Oyu/FXGiZP3g=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From:Subject; b=JH8MJsCaikiorrI67wg5C5sxeVG1lMZzAe83cZPDhu9Oi4DysWS5cjU61R1ggnb+TIOzQ+UXMQqh9X1KSe6WlQzVP6snHFxWlAGD1C0pz6LeZ+DDkxk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YZMFKrlx9qoE1oCjWwqLOIqHTZme9WQsWrVERz.ir3IQYv0w.w2n4kL KU8vZz2YnGA_tS.3ONgCFLXEeO3BIGiHl4_KnTu._rERzmUJYlk8m6Ncv52DMfVyDZq7xFBfY2Cl .HCvN0tCRk9ElQzdGQifsUx9ykQxozfEw9xew4QW8gUQD0_Kd.btRNVHp18YY..dJ3yTO4TAWDoJ Q8SrfRs70K6LzxN49lG3_RdL5Ot7bll37N8VoInkQ3f1FjduLrnT2XMcqvtAljVQ7A3yXP7uBVUK MBJTok3_lRR.us5ZHoF8meAtLPjKT57Hs1X4s36xklTC32GlQocc9HA.tILDGDWkXgyIWrZxD8cJ APxSNM2yX_hO2CAbGSAf3Z9l_nVQfuv8iXX0.txVKksvAJj6ht3XWcUFLmTyzp.osJlRpCVxwtQO Ls9oF1iBuD_WAKjXBbw4MYcBOJMrFyRs93YPmNEycl_XLm9GT9b7.HBKADxAkrgtDC7qWeDhuZ9d kVr6SeFYkRTdiFje_DQJDcrySXl7V3SHJXVCKbFtZO3uo..jPzGpN_m79.BxOh9.ggVtzrGSnqPW krFffDhdnk9bSr6c_0Q-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Sun, 14 Jun 2020 12:07:55 +0000 Received: by smtp420.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 327748a6db7ae5cbc8970bcaad686494; Sun, 14 Jun 2020 12:07:52 +0000 (UTC) Date: Sun, 14 Jun 2020 08:07:48 -0400 From: "Alex Xu (Hello71)" Subject: Re: next-0519 on thinkpad x60: sound related? window manager crash To: Takashi Iwai References: <20200520111136.GA3802@amd> <1591545088.74ii116nf2.none@localhost> <20200608061950.GA17476@lst.de> <1591624340.z01ejtod28.none@localhost> <20200609114733.GA1621@lst.de> <1592065395.r5zwoblr15.none@localhost> In-Reply-To: MIME-Version: 1.0 Message-Id: <1592135950.lcpn6p9fh0.none@localhost> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.16119 hermes_yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.6) Cc: alsa-devel@alsa-project.org, x86@kernel.org, rientjes@google.com, tiwai@suse.com, linux-kernel@vger.kernel.org, hch@infradead.org, mingo@redhat.com, bp@alien8.de, Pavel Machek , hpa@zytor.com, tglx@linutronix.de, Christoph Hellwig 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" Excerpts from Takashi Iwai's message of June 14, 2020 5:54 am: > On Sat, 13 Jun 2020 18:25:22 +0200, > Alex Xu (Hello71) wrote: >>=20 >> Excerpts from Takashi Iwai's message of June 11, 2020 1:11 pm: >> > Thanks, so something still missing in the mmap handling, I guess. >> >=20 >> > I've worked on two different branches for potential fixes of your >> > problems. Could you test topic/dma-fix and topic/dma-fix2 branches? >> > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git >> > Just pull one of them onto Linus' git HEAD. >> >=20 >> > I guess we'll go with David's new patch, but still it's interesting >> > whether my changes do anything good actually. >> >=20 >> >=20 >> > Takashi >> >=20 >>=20 >> On torvalds 623f6dc593, topic/dma-fix causes sound to be output as=20 >> alternating half-second bursts of noise and a few seconds of silence.=20 >> topic/dma-fix2 appears to work properly. >=20 > OK, thanks for the feedback! Just to make sure, you're using > PulseAudio, right? > If so, it was still something wrong about mmap, and the secondary > method (the fallback to the continuous page) looks like a safer > approach in the end. >=20 > I suppose that David's fix will be merged sooner or later. Meanwhile > I'll work on the change in the sound driver side to make things a bit > more robust. They don't conflict and both good applicable. >=20 >=20 > thanks, >=20 > Takashi >=20 Ah, no, I think that wasn't clear. I use ALSA directly with mostly=20 default configuration, except an asym sets separate default playback and=20 record devices. asound.conf: defaults.pcm.card 1 defaults.ctl.card 1 pcm.!default { type asym playback.pcm { type plug slave.pcm "dmix" } capture.pcm { type plug slave.pcm { type dsnoop ipc_key 6793 slave.pcm "hw:U0x46d0x81d" } } } I think I wasn't able to set defaults.pcm.dmix.card and=20 defaults.pcm.dsnoop.card for some reason, not sure why. I can try that,=20 but I don't think it will affect this mmap issue. Thanks, Alex.