From owner-freebsd-current@FreeBSD.ORG Mon Jun 23 02:46:42 2014 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 63062D62; Mon, 23 Jun 2014 02:46:42 +0000 (UTC) Received: from mail-qa0-x229.google.com (mail-qa0-x229.google.com [IPv6:2607:f8b0:400d:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 108BD21F0; Mon, 23 Jun 2014 02:46:41 +0000 (UTC) Received: by mail-qa0-f41.google.com with SMTP id cm18so5178534qab.0 for ; Sun, 22 Jun 2014 19:46:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type; bh=U9F10BPPbMG+cZDlazoc2ettzc7kBYu7yCnTG1mru4E=; b=Rv6VTD2S5k7btuhQRVMVZgEUbfei/+9QPuk+8YHIsG+Yn7vhuS+nrswdnSAsO2Uw6b +tznI8gRLw0dAT6TkVbFyPhYuvIT7MOMYKifqBzKQzdHtahvD8fIAK0wwPgrWckofrUp TRXoSPpCefdGmihsxpSZJ3nrqcrNgxCHpSTCa+4jVt/4DtcFoxSs2xqIa0I/xbV/VA2H cL2Gyt59G3bCeU8ybRsVs6qcBpir2HXV9cou9wraFMnDEbelIHGo7hiC6hVB/0RrFJhZ nqov0Z6CnbzGHfekyeYBspzi0fICkQVNS2ffKdE43AR5efBd5rXKCEmdFFxXGsxihHwV D5Lw== X-Received: by 10.140.16.164 with SMTP id 33mr13789563qgb.11.1403491601190; Sun, 22 Jun 2014 19:46:41 -0700 (PDT) Received: from kan ([2601:6:67c0:0:226:18ff:fe00:232e]) by mx.google.com with ESMTPSA id o88sm10586146qge.19.2014.06.22.19.46.40 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 22 Jun 2014 19:46:40 -0700 (PDT) Date: Sun, 22 Jun 2014 22:46:32 -0400 From: Alexander Kabaev To: Andrey Chernov Subject: Re: Latest -current panic in uaudio_detach() / bus_dmamem_free() Message-ID: <20140622224632.31b4ce3b@kan> In-Reply-To: <53A78B24.6050805@freebsd.org> References: <53A78B24.6050805@freebsd.org> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/M.c8Z2_nCFkcdaOcqEFRahL"; protocol="application/pgp-signature" Cc: current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2014 02:46:42 -0000 --Sig_/M.c8Z2_nCFkcdaOcqEFRahL Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 23 Jun 2014 06:04:20 +0400 Andrey Chernov wrote: > Always happens at shutdown after all buffers are synced, see > screenshot: http://i.imgur.com/8WXTMPj.png >=20 > --=20 > http://ache.vniz.net/ Hi Andrey, there's not to much to go on from the screenshoot alone and one would expect more details on the crash from people with your experience :) Please provide us with the information on the actual audio hardware you are using, preferably in form of a dmesg output. This revision is your culpit: http://svnweb.freebsd.org/changeset/base/267581 and I have strong suspicion that restoring the NULL check on dmatag in the chunk below will cure your crash. -- Modified: head/sys/dev/sound/pcm/buffer.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- head/sys/dev/sound/pcm/buffer.c Tue Jun 17 14:47:49 2014 (r267580) +++ head/sys/dev/sound/pcm/buffer.c Tue Jun 17 16:07:57 2014 (r267581) @@ -139,10 +139,9 @@ sndbuf_free(struct snd_dbuf *b)=20 if (b->buf) { if (b->flags & SNDBUF_F_MANAGED) { - if (b->dmamap) + if (b->buf_addr) bus_dmamap_unload(b->dmatag, b->dmamap); - if (b->dmatag) - bus_dmamem_free(b->dmatag, b->buf, b->dmamap); + bus_dmamem_free(b->dmatag, b->buf, b->dmamap); } else free(b->buf, M_DEVBUF); } -- Alexander Kabaev --Sig_/M.c8Z2_nCFkcdaOcqEFRahL Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iD8DBQFTp5UPQ6z1jMm+XZYRAobzAKCpvN5clFK3UbbzkvJpr98Sd7LnVgCffsNn KeEeXlCLt6U76sPbsn3rGFI= =tBeA -----END PGP SIGNATURE----- --Sig_/M.c8Z2_nCFkcdaOcqEFRahL--