From owner-freebsd-arm@FreeBSD.ORG Sat Apr 19 00:34:56 2014 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 ESMTPS id BAEF383C for ; Sat, 19 Apr 2014 00:34:56 +0000 (UTC) Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [IPv6:2a00:1450:400c:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 59E2512BA for ; Sat, 19 Apr 2014 00:34:56 +0000 (UTC) Received: by mail-we0-f177.google.com with SMTP id u57so1974841wes.8 for ; Fri, 18 Apr 2014 17:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=38tT+tTdJRA9uy2C39qvDJeU8oixOD2Mb4f05E+o95c=; b=Ck9ZwEQcLeDkxy/uvNz0lLroBOKj3YAZ73TRR367DPJckLh8DsOKeDjxyoXTCRFPUw Nd3tr85Kp5zJrK4ILCgtaDnaqAOBrAXR7giU+TxgVU1UIep8WgpZ8E6riJtoJ62lTiqO zV2S+vum2OeRCsiILSLqOiBuLgfYJNY3ue45KeNc0qBMpLf2893f5zDsk2Z5JvVMxn0V Tpw/azuO6fV8g+lqbxd3MSO20ikbhDbd7nsraYZAeaSjq2Q0cd0Y04niWEy612APAtOx 8RGlq6icb+xr4v9Wh+XtevLygRoUvzTJQ65Nwyz5QYXKhlI30rFazfay5AEoeSZ++Gch FPYg== MIME-Version: 1.0 X-Received: by 10.194.60.4 with SMTP id d4mr2609401wjr.28.1397867694078; Fri, 18 Apr 2014 17:34:54 -0700 (PDT) Received: by 10.217.10.195 with HTTP; Fri, 18 Apr 2014 17:34:54 -0700 (PDT) Date: Fri, 18 Apr 2014 20:34:54 -0400 Message-ID: Subject: 11.0-BEAGLEBONE-r264670: "lock order reversal" warning on shutdown From: Winston Smith To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Apr 2014 00:34:56 -0000 Using u-boot-2013.04 and FreeBSD-armv6-11.0-BEAGLEBONE-r264670, I was able to boot from the SD card on a BBB. Upon shutdown, I see the following on the console: root@beaglebone:/boot/msdos # /sbin/halt Apr 19 00:02:33 beaglebone halt: halted by root Apr 19 00:02:33 beaglebone syslogd: exiting on signal 15 Waiting (max 60 seconds) for system process `vnlru' to stop...done Waiting (max 60 seconds) for system process `bufdaemon' to stop...done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining...2 0 1 0 1 0 0 0 done All buffers synced. lock order reversal: 1st 0xc2e58a54 ufs (ufs) @ /usr/src/FreeBSD-CURRENT/sys/kern/vfs_mount.c:1237 2nd 0xc2e64394 devfs (devfs) @ /usr/src/FreeBSD-CURRENT/sys/fs/msdosfs/msdosfs_vfsops.c:989 KDB: stack backtrace: db_trace_self() at db_trace_self pc = 0xc0542258 lr = 0xc02324bc (db_trace_self_wrapper+0x30) sp = 0xde6d4a18 fp = 0xde6d4b30 r10 = 0xc2e64394 db_trace_self_wrapper() at db_trace_self_wrapper+0x30 pc = 0xc02324bc lr = 0xc039b358 (kdb_backtrace+0x38) sp = 0xde6d4b38 fp = 0xde6d4b40 r4 = 0xc0689484 r5 = 0xc059401b r6 = 0xc0594a31 r7 = 0xc05b3bdd kdb_backtrace() at kdb_backtrace+0x38 pc = 0xc039b358 lr = 0xc03b5c78 (witness_checkorder+0xe50) sp = 0xde6d4b48 fp = 0xde6d4b98 r4 = 0xc059fa6d witness_checkorder() at witness_checkorder+0xe50 pc = 0xc03b5c78 lr = 0xc034829c (__lockmgr_args+0x8b4) sp = 0xde6d4ba0 fp = 0xde6d4c08 r4 = 0x00000000 r5 = 0x00080400 r6 = 0x000003dd r7 = 0xc2e643b4 r8 = 0xc2e64394 r9 = 0x00080000 r10 = 0xc0594a2e __lockmgr_args() at __lockmgr_args+0x8b4 pc = 0xc034829c lr = 0xc03fa524 (vop_stdlock+0x3c) sp = 0xde6d4c10 fp = 0xde6d4c20 r4 = 0xde6d4c40 r5 = 0xc0660df0 r6 = 0x00000000 r7 = 0x00080400 r8 = 0xde6d4c40 r9 = 0x00080300 r10 = 0x000003dd vop_stdlock() at vop_stdlock+0x3c pc = 0xc03fa524 lr = 0xc056c8a4 (VOP_LOCK1_APV+0xd8) sp = 0xde6d4c28 fp = 0xde6d4c38 VOP_LOCK1_APV() at VOP_LOCK1_APV+0xd8 pc = 0xc056c8a4 lr = 0xc0418980 (_vn_lock+0x44) sp = 0xde6d4c40 fp = 0xde6d4c70 r4 = 0xc2e64360 r5 = 0x00000001 r6 = 0xc0594a2e _vn_lock() at _vn_lock+0x44 pc = 0xc0418980 lr = 0xc02aa314 (msdosfs_sync+0x1a0) sp = 0xde6d4c78 fp = 0xde6d4cd0 r4 = 0xde6d4c9c r5 = 0x00000001 r6 = 0xc2d09960 r7 = 0xc2a962b0 r8 = 0x00000000 r9 = 0x00080300 r10 = 0xc2dfe700 msdosfs_sync() at msdosfs_sync+0x1a0 pc = 0xc02aa314 lr = 0xc0402958 (dounmount+0x464) sp = 0xde6d4cd8 fp = 0xde6d4d20 r4 = 0xc2e58a20 r5 = 0x00000000 r6 = 0x00000000 r7 = 0x00000000 r8 = 0xc2d09960 r9 = 0x00080000 r10 = 0x00080000 dounmount() at dounmount+0x464 pc = 0xc0402958 lr = 0xc040b164 (vfs_unmountall+0x48) sp = 0xde6d4d28 fp = 0xde6d4d48 r4 = 0xc2d09960 r5 = 0xc059fa6d r6 = 0xc05a41ab r7 = 0xc2a962b0 r8 = 0xc0661080 r9 = 0xc05c1a76 r10 = 0xc05b4c36 vfs_unmountall() at vfs_unmountall+0x48 pc = 0xc040b164 lr = 0xc03640e4 (kern_reboot+0x468) sp = 0xde6d4d50 fp = 0xde6d4da8 r4 = 0xc066d024 r5 = 0x00000000 r6 = 0xc05a41ab r7 = 0xcd2156a8 r8 = 0x00000008 r9 = 0x00000000 r10 = 0xc092ea58 kern_reboot() at kern_reboot+0x468 pc = 0xc03640e4 lr = 0xc0363c74 ($d) sp = 0xde6d4db0 fp = 0xde6d4db8 r4 = 0xde6d4e18 r5 = 0xc2aa1640 r6 = 0x00000000 r7 = 0x00000000 r8 = 0x00000000 r9 = 0xde6d4e10 r10 = 0x00000004 $d() at $d pc = 0xc0363c74 lr = 0xc0557878 (swi_handler+0x284) sp = 0xde6d4dc0 fp = 0xde6d4e58 r4 = 0xc2d09960 swi_handler() at swi_handler+0x284 pc = 0xc0557878 lr = 0xc0543d74 (swi_exit) sp = 0xde6d4e60 fp = 0xbffffd00 r4 = 0x00000004 r5 = 0x00000002 r6 = 0xbffffcdc r7 = 0x00000037 r8 = 0x00000000 r9 = 0x00000000 swi_exit() at swi_exit pc = 0xc0543d74 lr = 0xc0543d74 (swi_exit) sp = 0xde6d4e60 fp = 0xbffffd00 Unable to unwind further Uptime: 20m13s The operating system has halted. Please press any key to reboot.