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.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 21433C433E1 for ; Sun, 14 Jun 2020 12:08:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 01F5620775 for ; Sun, 14 Jun 2020 12:08:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=yahoo.ca header.i=@yahoo.ca header.b="JH8MJsCa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727039AbgFNMH5 (ORCPT ); Sun, 14 Jun 2020 08:07:57 -0400 Received: from sonic303-24.consmr.mail.gq1.yahoo.com ([98.137.64.205]:34234 "EHLO sonic303-24.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbgFNMH4 (ORCPT ); Sun, 14 Jun 2020 08:07:56 -0400 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+UXMQqh9X1KSe6WlQzVP6snHFxWlAGD1C0pz6L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GxVFa1X6YYZMFKrlx9qoE1oCjWwqLOIqHTZme9WQsWrVERz.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 Cc: alsa-devel@alsa-project.org, bp@alien8.de, hch@infradead.org, Christoph Hellwig , hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@redhat.com, Pavel Machek , perex@perex.cz, rientjes@google.com, tglx@linutronix.de, tiwai@suse.com, x86@kernel.org 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.