Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1050683ybt; Sun, 14 Jun 2020 08:43:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNCdZPgfPlAd2BmdwGha4APdZcw/Bmp/T572gSnVtNaLNFPeHcRpyvWXBlnDbCIfIbByKC X-Received: by 2002:a17:906:d0d7:: with SMTP id bq23mr22580858ejb.259.1592149410389; Sun, 14 Jun 2020 08:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592149410; cv=none; d=google.com; s=arc-20160816; b=jwgq2e3mIldulsjRzhlSfYGtYEB9cFE3GroBSvlFwvEEsIachi/6CFzRuw2xoFiP2f Ij4IYhCKg4weXOWd2yv4mIl2fbWSgDE+GPVG65yoHPMftEx9jcAA26YPe3vVPGaBAl64 02xJBJykX+V3s3MqDzYFymfbFpgYxudVK17gRmccjQnhf+aeCoDeXeOiAyOO3InYBWhw GDJwHC/YXfsmTTc6Tko3P/O4JEWgPzZ4gmqx3JyyG9JnO/AbFxEtW3Rz2Rvb4W6HErjK DOOhMsB56IlTpbne9/u41HvEvJaflbBLvHKekHZIvemNyEsXgHZL/Ad50Umsh8HlHQCG XiDQ== 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=46Ir7Hego/FoURMXBnxsUi7LKmNhJeZmvLcAP6n9yq0=; b=Io5lFI47fL6Pj0W3eWM0jN+N9KQ5OJtiCP05tjy0eEfKVmZAmFm1EPaHMzUHTohqej GMbT/obULm+VHyEngM1cG4iYeVJAOueiWfZ5bSsLEDUZWTZj1cRhFq1jYbdAGwFksK4s IafO3mzluPFmcwSjEWbYVvoWZfEIaiCfZVIvPDfCJ/1rHD9DbgAlkivik6NHrphNd6P9 Ls0k9WJ+UNTmE6QO4B4BEMXFtF7SKBPbmd6DhyqP9Gh3M9U99fmmJpDJ1VZVj+fSozWm J5FHveAtakhsxvw7bg9xK5muaXZNR+LB6CBHdUbGl3FdxqymE21ApYo7AFgYoIcNkr4F EljQ== 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 g6si7421642edf.480.2020.06.14.08.43.08; Sun, 14 Jun 2020 08:43:30 -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 S1726922AbgFNPkZ (ORCPT + 99 others); Sun, 14 Jun 2020 11:40:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:49558 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbgFNPkZ (ORCPT ); Sun, 14 Jun 2020 11:40:25 -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 4E443ABCF; Sun, 14 Jun 2020 15:40:26 +0000 (UTC) Date: Sun, 14 Jun 2020 17:40:21 +0200 Message-ID: From: Takashi Iwai To: "Alex Xu (Hello71)" 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 Subject: Re: next-0519 on thinkpad x60: sound related? window manager crash In-Reply-To: <1592135950.lcpn6p9fh0.none@localhost> References: <20200520111136.GA3802@amd> <1591545088.74ii116nf2.none@localhost> <20200608061950.GA17476@lst.de> <1591624340.z01ejtod28.none@localhost> <20200609114733.GA1621@lst.de> <1592065395.r5zwoblr15.none@localhost> <1592135950.lcpn6p9fh0.none@localhost> 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 Sun, 14 Jun 2020 14:07:48 +0200, Alex Xu (Hello71) wrote: > > 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: > >> > >> Excerpts from Takashi Iwai's message of June 11, 2020 1:11 pm: > >> > Thanks, so something still missing in the mmap handling, I guess. > >> > > >> > 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. > >> > > >> > I guess we'll go with David's new patch, but still it's interesting > >> > whether my changes do anything good actually. > >> > > >> > > >> > Takashi > >> > > >> > >> On torvalds 623f6dc593, topic/dma-fix causes sound to be output as > >> alternating half-second bursts of noise and a few seconds of silence. > >> topic/dma-fix2 appears to work properly. > > > > 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. > > > > 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. > > > > > > thanks, > > > > Takashi > > > > Ah, no, I think that wasn't clear. I use ALSA directly with mostly > default configuration, except an asym sets separate default playback and > 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 > defaults.pcm.dsnoop.card for some reason, not sure why. I can try that, > but I don't think it will affect this mmap issue. The dmix is an implementation exclusively with mmap, so yes, it's still about the mmap. This also shows the same problem. thanks, Takashi