From owner-freebsd-arm@FreeBSD.ORG Wed Aug 7 18:53:32 2013 Return-Path: Delivered-To: freebsd-arm@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 ESMTP id 4C150A8D for ; Wed, 7 Aug 2013 18:53:32 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: from mail-pb0-f45.google.com (mail-pb0-f45.google.com [209.85.160.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1DF8D208C for ; Wed, 7 Aug 2013 18:53:31 +0000 (UTC) Received: by mail-pb0-f45.google.com with SMTP id mc17so2233208pbc.32 for ; Wed, 07 Aug 2013 11:53:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; bh=d6H0HrBXmyuku7WvORZyvFpZIGRNmZcoiJ31b0eCTC0=; b=I8kzO4AjpQ4qIxRa0cl+DD2GIYXgnqK/xl6BIGDiJ+1UGO+NHxuE/JGcSHgoLEAtRQ fYrAdBEGOl7q89Hs1RrjmAzy80BgwazrTya+MswDNr/QrzzlS07Ts3yIX8WYZmEPFsYr RU1HoceyZ2p+UZdPz0vNkEGxsDl8RcZo33wLadhU7FNdVe2J3EiNt0LBjL2vDAMtAFW/ OjFOb8h551Is6oPSavQf6t7QIIqsYpBfBdnKYkVRFA2gpCtCfmVLQ2ryXEdPqjFCJXdj RwM9GgRca6cjO0G7dvaXmZFvU7yEz40Eix918JRJAXM7pcbPhGtWG/nZ7Rn84YepQIqg 0ndg== X-Gm-Message-State: ALoCoQk8RVaXdFnTdGHGTxVFBoqZn4MpxPhMMe7xoc8kmkDahy1uOaVxTc0BicUdUQTK9+6aMXyo X-Received: by 10.68.251.234 with SMTP id zn10mr1951218pbc.188.1375901611358; Wed, 07 Aug 2013 11:53:31 -0700 (PDT) Received: from rrcs-66-91-135-210.west.biz.rr.com (rrcs-66-91-135-210.west.biz.rr.com. [66.91.135.210]) by mx.google.com with ESMTPSA id qh10sm9659385pbb.33.2013.08.07.11.53.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 07 Aug 2013 11:53:30 -0700 (PDT) Date: Wed, 7 Aug 2013 08:55:36 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: Zbyszek Bodek Subject: Re: svn commit: r254025 - in head/sys: amd64/amd64 arm/arm arm/at91 arm/mv/armadaxp arm/s3c2xx0 arm/xscale/i80321 arm/xscale/i8134x arm/xscale/ixp425 cddl/compat/opensolaris/kern cddl/compat/opensolari... In-Reply-To: <52022950.9060200@semihalf.com> Message-ID: References: <201308070621.r776LLOs055455@svn.freebsd.org> <52022950.9060200@semihalf.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Jeff Roberson , "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 18:53:32 -0000 On Wed, 7 Aug 2013, Zbyszek Bodek wrote: > On 07.08.2013 08:21, Jeff Roberson wrote: >> Author: jeff >> Date: Wed Aug 7 06:21:20 2013 >> New Revision: 254025 >> URL: http://svnweb.freebsd.org/changeset/base/254025 >> >> Log: >> Replace kernel virtual address space allocation with vmem. This provides >> transparent layering and better fragmentation. >> >> - Normalize functions that allocate memory to use kmem_* >> - Those that allocate address space are named kva_* >> - Those that operate on maps are named kmap_* >> - Implement recursive allocation handling for kmem_arena in vmem. >> >> Reviewed by: alc >> Tested by: pho >> Sponsored by: EMC / Isilon Storage Division >> > > Hello Jeff, > > I'm having some trouble on my ARM platform staring from this commit. > Kernel panics on assertion very early. Please check out log below (as > you can see bt doesn't look helpful but assertion message is visible. I > can send you which functions are in bt if it is necessary). It would be very helpful to know which function is passing the unaligned value. I will resolve this later today if you can get me that information. Thanks, Jeff > > Best regards > Zbyszek Bodek > ------------------------------------------------------------------------- > ## Starting application at 0x00F00000 ... > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2013 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 10.0-CURRENT #155 7ddb89a-dirty: Wed Aug 7 12:12:39 CEST 2013 > > zbb@:/home/zbb/projects/armsp/obj_gcc/arm.arm/home/zbb/projects/armsp/freebsd-arm-superpages/sys/ARMADAXP > arm > gcc version 4.2.1 20070831 patched [FreeBSD] > WARNING: DIAGNOSTIC option enabled, expect reduced performance. > panic: Assertion (size & vm->vm_quantum_mask) == 0 failed at > /home/zbb/projects/armsp/freebsd-arm-superpages/sys/kern/subr_vmem.c:341 > KDB: stack backtrace: > (null)() at 0xc11f6874 > pc = 0xc11f6874 lr = 0xc0f2dc00 (0xc0f2dc00) > sp = 0xc1361c98 fp = 0xc1340288 > (null)() at 0xc0f2dc00 > pc = 0xc0f2dc00 lr = 0xc108dd14 (0xc108dd14) > sp = 0xc1361db0 fp = 0xc1340288 > r4 = 0xc133d654 > (null)() at 0xc108dd14 > pc = 0xc108dd14 lr = 0xc105a6f0 (0xc105a6f0) > sp = 0xc1361db8 fp = 0xc1340288 > r4 = 0xc132f940 > (null)() at 0xc105a6f0 > pc = 0xc105a6f0 lr = 0xc105a7dc (0xc105a7dc) > sp = 0xc1361dd0 fp = 0xc1340288 > r4 = 0xc124c6fc r5 = 0x13333333 > r6 = 0xc1340240 r7 = 0xc147d150 > r8 = 0x00000010 > (null)() at 0xc105a7dc > pc = 0xc105a7dc lr = 0xc10a2ef8 (0xc10a2ef8) > sp = 0xc1361e08 fp = 0xc1340288 > r0 = 0xc124c6fc r1 = 0xc12662b8 > r2 = 0xc1266230 r3 = 0x00000155 > r4 = 0x00013333 > (null)() at 0xc10a2ef8 > pc = 0xc10a2ef8 lr = 0xc10a37e4 (0xc10a37e4) > sp = 0xc1361e20 fp = 0xc1340288 > r4 = 0xc147d150 r5 = 0xc147d16c > r6 = 0xc1340240 r7 = 0x13333333 > r8 = 0xc57b1000 > (null)() at 0xc10a37e4 > pc = 0xc10a37e4 lr = 0xc10a39d8 (0xc10a39d8) > sp = 0xc1361e38 fp = 0xc1340288 > r4 = 0xc1340240 r5 = 0x00000000 > r6 = 0xc57b1000 r7 = 0x13333333 > r8 = 0x00000010 > (null)() at 0xc10a39d8 > pc = 0xc10a39d8 lr = 0xc10a4f8c (0xc10a4f8c) > sp = 0xc1361e50 fp = 0xc1340288 > r4 = 0xc13402a4 r5 = 0x00000000 > r6 = 0x00010000 r7 = 0xc1340240 > (null)() at 0xc10a4f8c > pc = 0xc10a4f8c lr = 0xc1044398 (0xc1044398) > sp = 0xc1361e98 fp = 0x00000000 > r4 = 0x13333333 r5 = 0xc1340240 > r6 = 0xc1307574 r7 = 0x00f0004c > r8 = 0x7f9ea674 r9 = 0x00000001 > r10 = 0x7ff1449c > (null)() at 0xc1044398 > pc = 0xc1044398 lr = 0xc1044408 (0xc1044408) > sp = 0xc1361eb8 fp = 0x00000000 > r4 = 0xc1291584 r5 = 0x00f00058 > r6 = 0x00f00000 > (null)() at 0xc1044408 > pc = 0xc1044408 lr = 0xc1010800 (0xc1010800) > sp = 0xc1361ee8 fp = 0x00000000 > r4 = 0xc1291584 r5 = 0x00f00058 > r6 = 0x00f00000 r7 = 0x00f0004c > r8 = 0x7f9ea674 r9 = 0x00000001 > r10 = 0x7ff1449c > (null)() at 0xc1010800 > pc = 0xc1010800 lr = 0xc0f00124 (0xc0f00124) > sp = 0xc1361ef8 fp = 0x00000000 > r4 = 0x00f00164 r5 = 0x00f00058 > (null)() at 0xc0f00124 > pc = 0xc0f00124 lr = 0xc0f00124 (0xc0f00124) > sp = 0xc1361ef8 fp = 0x00000000 > Unable to unwind further > KDB: enter: panic > [ thread pid 0 tid 0 ] > Stopped at 0xc108dba8: ldrb r15, [r15, r15, ror r15]! > db> >