From owner-freebsd-current@FreeBSD.ORG Sat May 3 15:43:59 2014 Return-Path: Delivered-To: freebsd-current@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 ESMTPS id 410F1C07 for ; Sat, 3 May 2014 15:43:59 +0000 (UTC) Received: from forward2l.mail.yandex.net (forward2l.mail.yandex.net [IPv6:2a02:6b8:0:1819::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F38E21849 for ; Sat, 3 May 2014 15:43:58 +0000 (UTC) Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward2l.mail.yandex.net (Yandex) with ESMTP id 0D35F1AC10AF for ; Sat, 3 May 2014 19:43:54 +0400 (MSK) Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id BC5A41B6001D for ; Sat, 3 May 2014 19:43:54 +0400 (MSK) Received: from 78.108.203.86.tel.ru (78.108.203.86.tel.ru [78.108.203.86]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Mp01WEw5nJ-hsFC9ZJ9; Sat, 3 May 2014 19:43:54 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 00cd4b52-c481-4288-87ef-606f75118b07 Message-ID: <53650EBA.3020803@passap.ru> Date: Sat, 03 May 2014 19:43:54 +0400 From: Boris Samorodov Organization: =?UTF-8?B?0JfQkNCeICLQktCQ0KDQoiI=?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-current@FreeBSD.org Subject: [arm, zfs] zpool create: zap->zap_rwlock X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2014 15:43:59 -0000 Hi All, The system: ----- FreeBSD 11.0-CURRENT #6 r265218M: Fri May 2 18:24:07 SAMT 2014 bsam@wandboard:/usr/obj/usr/src/sys/WANDBOARD-QUAD arm FreeBSD clang version 3.4 (tags/RELEASE_34/final 197956) 20140216 CPU: Cortex A9-r2 rev 10 (Cortex-A core) Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext WB disabled EABT branch prediction enabled LoUU:2 LoC:1 LoUIS:2 Cache level 1: 32KB/32B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 4-way instruction cache Read-Alloc real memory = 2147483648 (2048 MB) avail memory = 2094088192 (1997 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs ----- I managed to build zfs module using the patch found somewhere at lists: ----- --- /usr/src/sys/cddl/compat/opensolaris/sys/cpuvar.h (revision 265218) +++ /usr/src/sys/cddl/compat/opensolaris/sys/cpuvar.h (working copy) @@ -50,6 +50,9 @@ /* Some code may choose to redefine this if pcpu_t would be more useful. */ #define cpu_t solaris_cpu_t +#ifdef cpu_id +#undef cpu_id +#endif /* cpu_id */ #define cpu_id cpuid extern solaris_cpu_t solaris_cpu[]; ----- Modules are loaded OK: ----- % kldstat Id Refs Address Size Name 1 12 0xc2000000 5d8f48 kernel 2 1 0xc75e3000 c000 if_tap.ko 3 2 0xc76a2000 b000 opensolaris.ko 4 1 0xc76ad000 175000 zfs.ko ----- While creating a zpool the job writes something to the disk and finally (in a minute or so) waits forever: ----- % sudo zpool create data01 /dev/mmcsd0 ^tload: 0.10 cmd: zpool 604 [zap->zap_rwlock] 208.39r 0.00u 0.07s 0% 3516k ----- Gdb can't attach to the process (also waits forever while attaching). Ktrace gives (I'm not sure if it shows the last command though): ----- 1435 zpool CALL __sysctl(0xbfffcbac,0x2,0xbfffcbd4,0xbfffcbd0,0x200b5a98,0x15) 1435 zpool SCTL "sysctl.name2oid" 1435 zpool RET __sysctl 0 1435 zpool CALL __sysctl(0xbfffcbd4,0x4,0xbfffcc54,0xbfffcc58,0,0) 1435 zpool SCTL "vfs.zfs.version.ioctl" 1435 zpool RET __sysctl 0 1435 zpool CALL ioctl(0x3,0xc0185a00,0xbfffcc00) ----- Any advice, help and especially patches are welcome. ;-) Thanks! -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve