From owner-freebsd-current@freebsd.org Mon Jun 24 06:49:29 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D538615C48D3; Mon, 24 Jun 2019 06:49:28 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vtr.rulingia.com (vtr.rulingia.com [IPv6:2001:19f0:5801:ebe:5400:1ff:fe53:30fd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vtr.rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C823F88C56; Mon, 24 Jun 2019 06:49:27 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp59-167-167-3.static.internode.on.net [59.167.167.3]) by vtr.rulingia.com (8.15.2/8.15.2) with ESMTPS id x5O6nHBG089316 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Jun 2019 16:49:23 +1000 (AEST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id x5O6nCMq088866 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 24 Jun 2019 16:49:12 +1000 (AEST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id x5O6nCN6088865; Mon, 24 Jun 2019 16:49:12 +1000 (AEST) (envelope-from peter) Date: Mon, 24 Jun 2019 16:49:12 +1000 From: Peter Jeremy To: freebsd-current@freebsd.org, freebsd-arm@freebsd.org Subject: Re: "panic: Duplicate alloc" in dwmmc_attach on Rock64 Message-ID: <20190624064912.GB87860@server.rulingia.com> References: <20190621105939.GA23668@server.rulingia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3uo+9/B/ebqu+fSQ" Content-Disposition: inline In-Reply-To: <20190621105939.GA23668@server.rulingia.com> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.12.0 (2019-05-25) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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, 24 Jun 2019 06:49:29 -0000 --3uo+9/B/ebqu+fSQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-Jun-21 20:59:39 +1000, Peter Jeremy wro= te: >Since r349169, my Rock64 has consistently panic'd whilst attaching >rockchip_dwmmc1. A kernel built at r349135 works OK. The relevant >output looks like: >rockchip_dwmmc0: mem 0xff500000-0xff503fff irq 40 on ofwbus0 >rockchip_dwmmc0: Hardware version ID is 270a >mmc0: on rockchip_dwmmc0 >rockchip_dwmmc1: mem 0xff520000-0xff523fff irq 42 on ofwbus0 >rockchip_dwmmc1: Hardware version ID is 270a >panic: Duplicate alloc of 0xfffffd000089cf50 from zone 0xfffffd0000817540(= 16) slab 0xfffffd000089cf90(0) I did some more digging and narrowed this down to r349151 (which has nothing that would be an obvious cause). And the problem went away somewhere between r349269 and r349288. Since there's nothing obvious there either, I presume this is something more subtle like a race condition that has been provoked by the code changes. --=20 Peter Jeremy --3uo+9/B/ebqu+fSQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAl0Qcl5fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzT+Bg/8CFlGdF3U75SmmSrQ4hNUkocsEkCM08tdDRnQO4zvvVXIqNL2MhhMpJ4c tk30+vyle5M4+tPW+zx4KOgAkjGHsoqAiv9F9Ke7kScJ5kJHaSBpNcb3Kw6Il3D7 kFGp35oPLu23lb9LHlX0m39ipEAX0R4Y5mKO8CJpS+r50QubOyvf06yLh+q3MJl1 jUAc4zH0MgQ9o7PCVsvaBEVj6MwpDc3R8ie6ltsayotESxMwdoAVnb9D09jAGOU+ wxQQsw66wbyFRU7q8fpVA7chihweQUAtaDzYjZtsJBkEBlCKp47ad3OnQuSSJI10 yBpRA9+lTyYtakk8yOPkuIqtRa9et1Smtlm0pcytV7pYjQ0drzGF4vXqvmGsSE2s de7a2hvcuts3zkB7mKTZvEZQ0bLdyPZxdxUJOhZIR3VP+IPyWzwEID3YEZJo5iDw YIdcOhmbAuzq3v+BZmbK/fUDzWukA4aTM5cWHKT+HjbC193tu2tJ/Ae8DY/YUvaM Mo33iqAo6TK1k4uP/Jqq/cDw6hnNG863wXWMH9cl68QfcDEpPc0LgGq8Ghcxhzoq rYeAFE71PhYSORd3JZkzs8CL/+Irf3QzUnVx7ceUQXs33xIyW6giLkFDzyWMGWR/ KYgDD6bepMHfdTF57MiKfg/+IyuIYGnnJPI/5kZdr9cHhJymXvM= =uJRz -----END PGP SIGNATURE----- --3uo+9/B/ebqu+fSQ--