From owner-svn-src-head@freebsd.org Sat Oct 31 09:50:32 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3DB8A223CD; Sat, 31 Oct 2015 09:50:32 +0000 (UTC) (envelope-from jason.harmening@gmail.com) Received: from mail-oi0-x232.google.com (mail-oi0-x232.google.com [IPv6:2607:f8b0:4003:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8374C1D20; Sat, 31 Oct 2015 09:50:32 +0000 (UTC) (envelope-from jason.harmening@gmail.com) Received: by oiad129 with SMTP id d129so72306392oia.0; Sat, 31 Oct 2015 02:50:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type; bh=oHzSnsDIcArLtVDEfLg+FpQ3KZTMnKFnIijU7+Udf/8=; b=ogIqKGjBgypwcQabV/D8f+J1gv6jLyW1et8XT4T5+WfPf99/4R1rMu+g9uDPJzAhoC 3xweqj3POj6KJxMRV+JroUCH5n2eQp2ZbNXy9JA1an8Lszk35mAfqWNSV+D4+vCiYd8S gmH4+j5rASezXlvxpUXFZktg8hr6VkJLSjHhquem4/seFDXe88onMHcGRROOxRiPGkSv FaoTZqbvh5OM3IULv8T2Jhn432z7Z/vBy0HdmC14VnZhh7MkSrUs89pRDrLAmp9g1L6S TYRsTr6omploRwt0qYhz3RkumcRC50JfQ/E9FQSUVKOM9khifJCFxU64ifsCkJEGI/x5 B2GQ== X-Received: by 10.202.217.7 with SMTP id q7mr8330575oig.29.1446285031846; Sat, 31 Oct 2015 02:50:31 -0700 (PDT) Received: from corona.austin.rr.com (cpe-72-177-6-10.austin.res.rr.com. [72.177.6.10]) by smtp.googlemail.com with ESMTPSA id a4sm4638885obx.9.2015.10.31.02.50.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Oct 2015 02:50:30 -0700 (PDT) Subject: Re: svn commit: r289759 - in head/sys/arm: arm include To: Ganbold Tsagaankhuu , "Jason A. Harmening" References: <201510221638.t9MGc1cc053885@repo.freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org From: Jason Harmening X-Enigmail-Draft-Status: N1110 Message-ID: <56348FF8.3010602@gmail.com> Date: Sat, 31 Oct 2015 04:55:04 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4nUDo2LCQnhKi1QM4Cf5mN1cWsfkcxHK3" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Oct 2015 09:50:33 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4nUDo2LCQnhKi1QM4Cf5mN1cWsfkcxHK3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/31/15 03:21, Ganbold Tsagaankhuu wrote: > On Fri, Oct 23, 2015 at 12:38 AM, Jason A. Harmening > wrote: >=20 >> Author: jah >> Date: Thu Oct 22 16:38:01 2015 >> New Revision: 289759 >> URL: https://svnweb.freebsd.org/changeset/base/289759 >> >> Log: >> Use pmap_quick* functions in armv6 busdma, for bounce buffers and ca= che >> maintenance. This makes it safe to sync buffers that have no VA mappi= ng >> associated with the busdma map, but may have other mappings, possibly = on >> different CPUs. This also makes it safe to sync unmapped bounce buffe= rs in >> non-sleepable thread contexts. >> >> Similar to r286787 for x86, this treats userspace buffers the same a= s >> unmapped buffers and no longer borrows the UVA for sync operations. >> >> Submitted by: Svatopluk Kraus (earlier >> revision) >> Tested by: Svatopluk Kraus >> Differential Revision: https://reviews.freebsd.org/D3869 >=20 >=20 >=20 > It seems I can't boot Odroid C1 with this change. >=20 > http://pastebin.ca/3227678 >=20 > r289758 works for me. >=20 > Am I missing something? >=20 > thanks, >=20 > Ganbold >=20 > Hmmm, the fault address of 0x20 and the fact that this is happening during mi_startup() make me wonder if the per-cpu pageframes used by pmap_quick* haven't been initialized yet. I wonder if changing the order of qpages_init in sys/arm/arm/pmap-v6[-new].c to something other than SI_ORDER_ANY would he= lp? It seems like we'd want SI_ORDER_FOURTH or SI_ORDER_MIDDLE, since mp_start() is SI_ORDER_THIRD. It would be nice to know what's calling bus_dmamap_sync() in this case. I can't figure that out, but maybe that's because I haven't had coffee y= et. Unfortunately I'm going to have limited time to help debug this over the next week, as I'm moving across the country starting (hopefully) today. --Jason --4nUDo2LCQnhKi1QM4Cf5mN1cWsfkcxHK3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJWNI/4XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRENkY3MTQyREU0MTU4MTgyRkZDNUU2ODVC QjlGOEJGOTkyODQxRDFCAAoJELufi/mShB0bg1IH/jQQrZm6C/egXU5rqQNw80aX ZFmJ8fqcWRifyoycEzRu2Rc+4V0vOFQxrwztA9JHbao43jZfkQRcbpvgHVc7sv9U eqjkzfi8j6cn5jUBCqOrh1+sSbjOUjxmUvm/DYAjkNgzh1j0eYcLHIoJ5483nVpv J1TnqmG2uQik2OhYDVD7W12mubQEqFbb+5gPLWSeoi8aMLPUEEBhVKR7ftsCr9F3 L+NY6O+zkI1KDCkMw4y5rCJRZm+y5ERcrh+rBJFtoKpZqoWxGtbzyAc/IUlqBRvN xcmKBhNHumuNGCIqq61ug8GQpt+pc+kDMqiGV1sQNK2gbpVtXYS6R26ocA1o5kE= =hFMs -----END PGP SIGNATURE----- --4nUDo2LCQnhKi1QM4Cf5mN1cWsfkcxHK3--