From owner-svn-src-head@FreeBSD.ORG Fri Aug 9 08:27:55 2013 Return-Path: Delivered-To: svn-src-head@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 745C915B for ; Fri, 9 Aug 2013 08:27:55 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com [209.85.216.46]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3211B2704 for ; Fri, 9 Aug 2013 08:27:54 +0000 (UTC) Received: by mail-qa0-f46.google.com with SMTP id bq6so766585qab.19 for ; Fri, 09 Aug 2013 01:27:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=C6MoXcfRbGKRa9zRs3SCXgNVVUiRKjQfIJ9Z97BN8ks=; b=mEEDxJ3GZimhv0hhXnNfJw/DbRp1aAgw4HvX9g7XTRckECFsAwclUD28NSDeQNZrQm MtxlY4kffQxJsRH9KvDYqR3w+6IMht/uEaOShHJnOHWPm3/0QXZtsg6L4KFz1LYsmdgt ndfA/vnnNhUZ4Pji/na4M8Kw6RMZW7tOFwjKaSdb7ydUc/Zlhk3TU3nHZF3y9Ky72/Kl 8ZjCDt49+d0XGwl38PGCsMXQI/a+cXyPk/1v5d+VHGDTgr/FBCsPnj7uaIXqtWcmyv9g Rkq5UGbIpYoP7ivYnr20YRW+KkMlhnNOkbrOqvUQVEZLK9EAtgD8fIEIJhMiuZcqUwbv hfTA== X-Gm-Message-State: ALoCoQknf4COEjES1HVCcpb46tZqzIeV9q7/0E7dPNuyBMHFE1d7aO6ne2vRHn8jMk4kZlJmZnzR MIME-Version: 1.0 X-Received: by 10.49.119.161 with SMTP id kv1mr4616468qeb.25.1376036868481; Fri, 09 Aug 2013 01:27:48 -0700 (PDT) Received: by 10.49.82.34 with HTTP; Fri, 9 Aug 2013 01:27:48 -0700 (PDT) In-Reply-To: <52036EE6.5090505@semihalf.com> References: <201308070621.r776LLOs055455@svn.freebsd.org> <52022950.9060200@semihalf.com> <52036EE6.5090505@semihalf.com> Date: Fri, 9 Aug 2013 10:27:48 +0200 Message-ID: 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... From: Zbigniew Bodek To: Jeff Roberson Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Jeff Roberson , "freebsd-arm@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 09 Aug 2013 08:27:55 -0000 2013/8/8 Zbyszek Bodek > On 07.08.2013 20:55, Jeff Roberson wrote: > > 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 > > > > Hello Jeff, > > I'm attaching the BT with functions names included. > Please give me a notice when you need something more. > > Hello again. It seems that despite the attachment is visible in my sent messages it was not included to the message on the mailing lists. Hence I'm pasting it to this e-mail. Sorry for the possible inconvenience. Best regards Zbyszek Bodek ----------------------------------------------------------------------------------------------- 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 cpuid = 0 KDB: stack backtrace: db_trace_self() at 0xc11fb224 pc = 0xc11fb224 lr = 0xc0f2dd34 (0xc0f2dd34) sp = 0xc1372c90 fp = 0xc1347fc8 db_trace_self_wrapper() at 0xc0f2dd34 pc = 0xc0f2dd34 lr = 0xc1090d84 (0xc1090d84) sp = 0xc1372da8 fp = 0xc1347fc8 r4 = 0xc13452d8 kdb_backtrace() at 0xc1090d84 pc = 0xc1090d84 lr = 0xc105b300 (0xc105b300) sp = 0xc1372db0 fp = 0xc1347fc8 r4 = 0x00000001 vpanic() at 0xc105b300 pc = 0xc105b300 lr = 0xc105b3f4 (0xc105b3f4) sp = 0xc1372dd0 fp = 0xc1347fc8 r4 = 0xc1252570 r5 = 0x13333333 r6 = 0xc1347f80 r7 = 0xc1494150 r8 = 0x00000010 r10 = 0xc1348140 kassert_panic() at 0xc105b3f4 pc = 0xc105b3f4 lr = 0xc10a6b24 (0xc10a6b24) sp = 0xc1372e08 fp = 0xc1347fc8 r0 = 0xc1252570 r1 = 0xc126c6d4 r2 = 0xc126c64c r3 = 0x00000155 r4 = 0x00013333 bt_insfree() at 0xc10a6b24 pc = 0xc10a6b24 lr = 0xc10a7410 (0xc10a7410) sp = 0xc1372e20 fp = 0xc1347fc8 r4 = 0xc1494150 r5 = 0xc149416c r6 = 0xc1347f80 r7 = 0x13333333 r8 = 0xc57c8000 vmem_add1() at 0xc10a7410 pc = 0xc10a7410 lr = 0xc10a7604 (0xc10a7604) sp = 0xc1372e38 fp = 0xc1347fc8 r4 = 0xc1347f80 r5 = 0x00000000 r6 = 0xc57c8000 r7 = 0x13333333 r8 = 0x00000010 vmem_add() at 0xc10a7604 pc = 0xc10a7604 lr = 0xc10a8bb8 (0xc10a8bb8) sp = 0xc1372e50 fp = 0xc1347fc8 r4 = 0xc1347fe4 r5 = 0x00000000 r6 = 0x00010000 r7 = 0xc1347f80 vmem_init() at 0xc10a8bb8 pc = 0xc10a8bb8 lr = 0xc104487c (0xc104487c) sp = 0xc1372e98 fp = 0x00000000 r4 = 0x13333333 r5 = 0xc1347f80 r6 = 0xc130e588 r7 = 0x00f0004c r8 = 0x7f9ea674 r9 = 0x00000001 r10 = 0x7ff1449c kmeminit() at 0xc104487c pc = 0xc104487c lr = 0xc10448ec (0xc10448ec) sp = 0xc1372eb8 fp = 0x00000000 r4 = 0xc1297b90 r5 = 0x00f00058 r6 = 0x00f00000 mallocinit() at 0xc10448ec pc = 0xc10448ec lr = 0xc1010b20 (0xc1010b20) sp = 0xc1372ee8 fp = 0x00000000 r4 = 0xc1297b90 r5 = 0x00f00058 r6 = 0x00f00000 r7 = 0x00f0004c r8 = 0x7f9ea674 r9 = 0x00000001 r10 = 0x7ff1449c mi_startup() at 0xc1010b20 pc = 0xc1010b20 lr = 0xc0f00128 (0xc0f00128) sp = 0xc1372ef8 fp = 0x00000000 r4 = 0x00f00184 r5 = 0x00f00058 virt_done() at 0xc0f00128 pc = 0xc0f00128 lr = 0xc0f00128 (0xc0f00128) sp = 0xc1372ef8 fp = 0x00000000 Unable to unwind further KDB: enter: panic [ thread pid 0 tid 0 ] Stopped at 0xc1090c18: ldrb r15, [r15, r15, ror r15]! db>