From owner-svn-src-all@FreeBSD.ORG Wed Aug 7 11:02:52 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F3BF7BFC for ; Wed, 7 Aug 2013 11:02:51 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 85B272165 for ; Wed, 7 Aug 2013 11:02:51 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id m15so1388351wgh.29 for ; Wed, 07 Aug 2013 04:02:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:message-id:date:from:organization:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=A1xGmZAkEKSUC3EPf454Qb5Lw3xHvPbDkEY578oxC44=; b=PqKaI8uI1yyzmDkeMU9KL9aD+yQA7beDR6WeOlFzjAItyR/lQYDk+pBwhdBoAd/DtI 2sOrljae1txFdKJTPaVgvMs6LRzLqe1QKhtBkPAR+dZhhcBmjvAS4uUCqBLScNPYcQdw 9eDx17MjQ2lEBYWwkyx+ImnHBose5qaf3b319lpzQDqDejmNACkkVcLIRuufEObXopvm JYsmdoccNyal1oM0+nk55hCAXwBZQ3LLOlbzgmmwTzufXpskxNY8qgIlHyP+z08tVCj9 rLhtE7SHQfCGyEzE4C2zBOJLBB+0L2wc8jK64PPo6dGVTztgjBLsZrJa7Aa7vlHpQ00a Zhsw== X-Gm-Message-State: ALoCoQmCI3Hpg32K2i+fisMjhjAdYEHf1eq1swP5PXEB3mcnukKTxoM6Tl4unMUXSXmxTcyoXpe9 X-Received: by 10.181.13.145 with SMTP id ey17mr1838812wid.43.1375873363709; Wed, 07 Aug 2013 04:02:43 -0700 (PDT) Received: from [10.0.2.117] (cardhu.semihalf.com. [213.17.239.108]) by mx.google.com with ESMTPSA id r6sm8313118wiw.0.2013.08.07.04.02.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 Aug 2013 04:02:42 -0700 (PDT) Message-ID: <52022950.9060200@semihalf.com> Date: Wed, 07 Aug 2013 13:02:40 +0200 From: Zbyszek Bodek Organization: Semihalf User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Jeff Roberson 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... References: <201308070621.r776LLOs055455@svn.freebsd.org> In-Reply-To: <201308070621.r776LLOs055455@svn.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, "freebsd-arm@freebsd.org" , svn-src-all@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 07 Aug 2013 11:02:52 -0000 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). 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>