Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp941941ybt; Sun, 14 Jun 2020 05:13:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeeH20c+t1wTXDZoKSc0fDF4+UMGv1DE4z5Hb53mIWKGA8KqpEClZsQ4fO4+1CV1qX6mgW X-Received: by 2002:a17:906:39b:: with SMTP id b27mr20883193eja.421.1592136793688; Sun, 14 Jun 2020 05:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592136793; cv=none; d=google.com; s=arc-20160816; b=HontO8F0cgbIt7VrB7H5v0bauJz31xdp8/MOJ8uvo3qa5TbcXEt2Mruu/PJeJGIWPp +MAGDHiouI9g/+Ea84zJRZjYrVAz1UqYy9iE2zbsxv7cyWbPxag867KARLT8td5PMx2/ Dtrx3TP8zW6fuGBI8V+D1PR7lcxzYVT9RxQEi1+nA0R9e6S9DpbLL2GJsnCJK2NNYfvJ k4cblyMQpAICYTi70WBJxdny6zHK5MCs9QuqMxFoPEm3lxDt9pDzapAqsGTD02oGrP9i h7xo+oK8u2sJJrV5GQcDWnzOjUtS8/KMf7Jnv3pQihiedPK41j2yQFxz94phmOaeui03 2ufA== 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:message-id :mime-version:in-reply-to:references:cc:to:subject:from:date :dkim-signature; bh=P/Ws/g97d9TXQGyC9BzZilU2SE7WZw+Oyu/FXGiZP3g=; b=Oym5PVzdUJ6isXcDmNnUuLElR5/qsEYdkL52dxkTlPSfhJF1Gix3PCSSVHHvlHNJwr +Pw3iybru1Aff8+a7yDXpcOcl76OYvbWdxPTf+eWm9LUIGnx/vyQ/qJc846xh13XPwdf y6y16ycDOuucx47OmtBOWu2xxRQu8QDxBk+mXmBEgAMTVEwW+lqOdXq5Imp0ynNnK3df /Mn5tO/N8QgGp8ckeMBzgUO0qP0UXwaGgWJ4ZCn5d/e//MafrEr22i8CnEVvgj0DPiQ9 3jyvJmqGAHgJSQ8UHDO+c/dnHAexWYor0QBR9UgP5FL0bkSoJjrG7YF4gD2mNuAqv4WW uevA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=JH8MJsCa; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr12si9311224ejc.352.2020.06.14.05.12.40; Sun, 14 Jun 2020 05:13:13 -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; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=JH8MJsCa; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726954AbgFNMH5 (ORCPT + 99 others); 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=JH8MJsCaikiorrI67wg5C5sxeVG1lMZzAe83cZPDhu9Oi4DysWS5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iNTxafhHpp0JRvNzns5lqRgT4vkwFRncybcjy51law34pyCwlW23W LsGayPQ43uflGxVFa1X6YYZMFKrlx9qoE1oCjWwqLOIqHTZme9WQsWrVERz.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) Content-Length: 2094 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.