From owner-svn-src-all@freebsd.org Sun Nov 1 13:01:19 2015 Return-Path: Delivered-To: svn-src-all@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 7F532A22382; Sun, 1 Nov 2015 13:01:19 +0000 (UTC) (envelope-from jason.harmening@gmail.com) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (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 07B951B0A; Sun, 1 Nov 2015 13:01:19 +0000 (UTC) (envelope-from jason.harmening@gmail.com) Received: by lbbwb3 with SMTP id wb3so72643668lbb.1; Sun, 01 Nov 2015 05:01:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tAci5ww9SQVERef0u7jE8a0EdGjnerZnlPz0/CCZKq0=; b=IMojIJ8jkSCJS/R3WXKaAJOUwY+twt8G9MGQVQqKMnWjXeZkRUEffDT2beVFaw5DXj c5k5dSu4SXcE8jo6x/e4eewrlBmnbtFRTQzcPIU30kjzQ/Wxk0PweFWW8CwntUe1SGtd DJY1MwcIZ9MZ6wRk36dtXik2oplLGPPzyru3cYR2bfLdMptaon7K9d8i6HY2guHHH8pe AZYdDRMgFSGBWOdcVuyBV6Cjv/0NJ5EUe1mTl1s03qppXBvwe8RevoA68suOmzRoKAnV TqXdrtMNtBy8TFt3EQF7umlExx50tr7aZ+nCT1MHcKiQpY+zMyGn/Sq+6LEgnFeLqVh4 khHw== MIME-Version: 1.0 X-Received: by 10.112.16.199 with SMTP id i7mr7995426lbd.105.1446382876151; Sun, 01 Nov 2015 05:01:16 -0800 (PST) Received: by 10.112.126.104 with HTTP; Sun, 1 Nov 2015 05:01:16 -0800 (PST) In-Reply-To: <56348FF8.3010602@gmail.com> References: <201510221638.t9MGc1cc053885@repo.freebsd.org> <56348FF8.3010602@gmail.com> Date: Sun, 1 Nov 2015 07:01:16 -0600 Message-ID: Subject: Re: svn commit: r289759 - in head/sys/arm: arm include From: Jason Harmening To: Ganbold Tsagaankhuu Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2015 13:01:19 -0000 On Sat, Oct 31, 2015 at 4:55 AM, Jason Harmening wrote: > > > On 10/31/15 03:21, Ganbold Tsagaankhuu wrote: > > On Fri, Oct 23, 2015 at 12:38 AM, Jason A. Harmening > > wrote: > > > >> 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 > cache > >> maintenance. This makes it safe to sync buffers that have no VA mapping > >> associated with the busdma map, but may have other mappings, possibly on > >> different CPUs. This also makes it safe to sync unmapped bounce > buffers in > >> non-sleepable thread contexts. > >> > >> Similar to r286787 for x86, this treats userspace buffers the same as > >> 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 > > > > > > > > It seems I can't boot Odroid C1 with this change. > > > > http://pastebin.ca/3227678 > > > > r289758 works for me. > > > > Am I missing something? > > > > thanks, > > > > Ganbold > > > > > > 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 > help? > > 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 > yet. > > Can you build the kernel with 'options VERBOSE_SYSINIT' ? That will add some spew to the boot log, but it should confirm whether this is a sysinit ordering issue.