From owner-freebsd-arm@freebsd.org Tue Jun 21 11:14:15 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 318CDAC49D8 for ; Tue, 21 Jun 2016 11:14:15 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-153.reflexion.net [208.70.211.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA5A61DAA for ; Tue, 21 Jun 2016 11:14:14 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 24109 invoked from network); 21 Jun 2016 11:14:46 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 21 Jun 2016 11:14:46 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v7.90.3) with SMTP; Tue, 21 Jun 2016 07:14:18 -0400 (EDT) Received: (qmail 22047 invoked from network); 21 Jun 2016 11:14:18 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 21 Jun 2016 11:14:18 -0000 X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.0.105] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id C906C1C407A; Tue, 21 Jun 2016 04:14:10 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: (beagleboneblack/urtwn) Kernel page fault with the following non-sleepable locks held [ssh on rpi2 comparison] From: Mark Millard In-Reply-To: Date: Tue, 21 Jun 2016 04:14:11 -0700 Cc: otacilio.neto@bsd.com.br, freebsd-arm , FreeBSD Current Content-Transfer-Encoding: quoted-printable Message-Id: References: <99277FB6-77EB-4D8B-8A55-FBD622D29AC3@dsl-only.net> To: Keith White X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2016 11:14:15 -0000 On 2016-Jun-21, at 3:33 AM, Keith White = wrote: > On Tue, 21 Jun 2016, Mark Millard wrote: >=20 >> Otac=C3=ADlio otacilio.neto at bsd.com.br wrote on Tue Jun 21 = 00:06:39 UTC 2016 : >>=20 >>> > The kernel panic is totally reproducible. I need only do a ssh in = the >>> > beaglebone using ptty on windows or ssh on freebsd and the kernel = > panic is raised. >> . . . >>> FreeBSD11-ALPHA4 shows the same behavior. The only thing that I need = to raise the fault is ssh in the beaglebone. >>=20 >> (After this quotes are command input/output from my test activity.) >>=20 >> Under 11.0 -r310975 on a rpi2 I can ssh out of the rpi2 just fine. . = . >>=20 >>> # uname -apKU >>> FreeBSD rpi2 11.0-ALPHA4 FreeBSD 11.0-ALPHA4 #1 r301975M: Thu Jun 16 = 18:12:02 PDT 2016 = markmi@FreeBSDx64:/usr/obj/clang/arm.armv6/usr/src/sys/RPI2-NODBG arm = armv6 1100117 1100117 >>=20 >>=20 >> This is a no-debug kernel build (but with symbols). Details are given = later below. >>=20 >>> # ssh markmi@192.168.0.105 >>> Password: >>> Last login: Tue Jun 21 01:04:46 2016 >>> markmi$=20 >>=20 >> Similarly I can ssh into the rpi2 from outside, here using new remote = connection in Mac OS X terminal: ssh 192.168.0.119 resulted in. . . >>=20 >>> Password for markmi@rpi2: >>> Last login: Mon May 9 19:27:33 2016 from 192.168.2.1 >>> FreeBSD 11.0-ALPHA4 (RPI2-NODBG) #1 r301975M: Thu Jun 16 18:12:02 = PDT 2016 >>> Welcome to FreeBSD! >>> Release Notes, Errata: https://www.FreeBSD.org/releases/ >>> Security Advisories: https://www.FreeBSD.org/security/ >>> FreeBSD Handbook: https://www.FreeBSD.org/handbook/ >>> FreeBSD FAQ: https://www.FreeBSD.org/faq/ >>> Questions List: = https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/ >>> FreeBSD Forums: https://forums.FreeBSD.org/ >>> Documents installed with the system are in the = /usr/local/share/doc/freebsd/ >>> directory, or can be installed later with: pkg install = en-freebsd-doc >>> For other languages, replace "en" with a language code like de or = fr. >>> Show the version of FreeBSD installed: freebsd-version ; uname -a >>> Please include that output and any error messages when posting = questions. >>> Introduction to manual pages: man man >>> FreeBSD directory layout: man hier >>> Edit /etc/motd to change this login announcement. >>> To determine whether a file is a text file, executable, or some = other type >>> of file, use >>>=20 >>> file filename >>> -- Dru >>> $=20 >>=20 >> No panics or other odd notices. >>=20 >> The problem is apparently not general to all armv6 contexts. >>=20 >> Various context details follow. . . >>=20 >>> # more ~/src.configs/src.conf.rpi2-clang-bootstrap.rpi2-host = TO_TYPE=3Darmv6 >>> # >>> KERNCONF=3DRPI2-NODBG >>> TARGET=3Darm >>> .if ${.MAKE.LEVEL} =3D=3D 0 >>> TARGET_ARCH=3D${TO_TYPE} >>> .export TARGET_ARCH >>> .endif >>> # >>> #WITH_CROSS_COMPILER=3D >>> WITH_SYSTEM_COMPILER=3D >>> # >>> #CPUTYPE=3Dsoft >>> WITH_LIBSOFT=3D >>> WITH_LIBCPLUSPLUS=3D >>> WITH_BINUTILS_BOOTSTRAP=3D >>> #WITHOUT_CLANG_BOOTSTRAP=3D >>> WITH_CLANG=3D >>> WITH_CLANG_IS_CC=3D >>> WITH_CLANG_FULL=3D >>> WITH_CLANG_EXTRAS=3D >>> WITH_LLDB=3D >>> # >>> WITH_BOOT=3D >>> WITHOUT_LIB32=3D >>> # >>> WITHOUT_ELFTOOLCHAIN_BOOTSTRAP=3D >>> WITHOUT_GCC_BOOTSTRAP=3D >>> WITHOUT_GCC=3D >>> WITHOUT_GCC_IS_CC=3D >>> WITHOUT_GNUCXX=3D >>> # >>> NO_WERROR=3D >>> #WERROR=3D >>> MALLOC_PRODUCTION=3D >>> # >>> WITH_DEBUG_FILES=3D >>> # >>> XCFLAGS+=3D -march=3Darmv7-a -mcpu=3Dcortex-a7 >>> XCXXFLAGS+=3D -march=3Darmv7-a -mcpu=3Dcortex-a7 >>> # There is no XCPPFLAGS but XCPP ets XCFLAGS content. >>=20 >> ~/src.configs/make.conf was empty. >>=20 >>> # more /usr/src/sys/arm/conf/RPI2-NODBG >>> # >>> # RPI2 -- Custom configuration for the Raspberry Pi 2 >>> # >>> # For more information on this file, please read the config(5) = manual page, >>> # and/or the handbook section on Kernel Configuration Files: >>> # >>> # = http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-con= fig.html >>> # >>> # The handbook is also available locally in /usr/share/doc/handbook >>> # if you've installed the doc distribution, otherwise always see the >>> # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the >>> # latest information. >>> # >>> # An exhaustive list of options and more detailed explanations of = the >>> # device lines is also present in the ../../conf/NOTES and NOTES = files. >>> # If you are in doubt as to the purpose or necessity of a line, = check first >>> # in NOTES. >>> # >>> ident RPI2-NODBG >>> include "RPI2" >>> makeoptions DEBUG=3D-g # Build kernel with gdb(1) = debug symbols >>> options ALT_BREAK_TO_DEBUGGER >>> #options VERBOSE_SYSINIT # Enable verbose sysinit = messages >>> options KDB # Enable kernel debugger = support >>> # For minimum debugger support (stable branch) use: >>> #options KDB_TRACE # Print a stack trace for a = panic >>> options DDB # Enable the kernel debugger >>> nooptions INVARIANTS # Enable calls of extra = sanity checking >>> nooptions INVARIANT_SUPPORT # Extra sanity checks of = internal structures, required by INVARIANTS >>> nooptions WITNESS # Enable checks to detect = deadlocks and cycles >>> nooptions WITNESS_SKIPSPIN # Don't run witness on = spinlocks for speed >>> nooptions DIAGNOSTIC >>=20 >>=20 >> My /usr/src tree has some changes/additions --but mostly for = powerpc64 and powerpc issues: >>=20 >>> # svnlite status /usr/src/ >>> M = /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp >>> M /usr/src/lib/csu/powerpc64/Makefile >>> ? /usr/src/sys/amd64/include/include >>> ? /usr/src/sys/arm/conf/RPI2-NODBG >>> ? /usr/src/sys/arm/include/include >>> M /usr/src/sys/boot/ofw/Makefile.inc >>> M /usr/src/sys/boot/powerpc/Makefile >>> M /usr/src/sys/boot/powerpc/Makefile.inc >>> M /usr/src/sys/boot/uboot/Makefile.inc >>> M /usr/src/sys/conf/Makefile.powerpc >>> M /usr/src/sys/conf/kern.mk >>> M /usr/src/sys/conf/kmod.mk >>> M /usr/src/sys/dev/cxgb/ulp/tom/cxgb_listen.c >>> M /usr/src/sys/dev/cxgbe/tom/t4_listen.c >>> ? /usr/src/sys/powerpc/conf/GENERIC64-NODBG >>> ? /usr/src/sys/powerpc/conf/GENERIC64vtsc >>> ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-NODEBUG >>> ? /usr/src/sys/powerpc/conf/GENERICvtsc >>> ? /usr/src/sys/powerpc/conf/GENERICvtsc-NODEBUG >>> ? /usr/src/sys/powerpc/include/include >>> M /usr/src/sys/powerpc/ofw/ofw_machdep.c >>> M /usr/src/sys/powerpc/powerpc/exec_machdep.c >>> ? /usr/src/sys/x86/include/include >>=20 >> (The include/include ones are from something making links pointing = back up to the parent include/ . I did not explicitly create these.) >>=20 >> (The cxbg and cxbge ones were from trying to have amd64 target amd64 = via xtoolchain (devel/amd64-gcc). But other places also stopped it and I = quit trying that for now.) >>=20 >>> # more /etc/rc.conf >>> hostname=3D"rpi2" >>> ifconfig_ue0=3D"DHCP" >>> sshd_enable=3D"YES" >>> powerd_enable=3D"YES" >>> # Nice if you have a network, else annoying. >>> ntpd_enable=3D"YES" >>> ntpd_sync_on_start=3D"YES" >>> # Uncomment to disable common services (more memory) >>> #cron_enable=3D"NO" >>> #syslogd_enable=3D"NO" >>> sendmail_enable=3D"NONE" >>> sendmail_submit_enable=3D"NO" >>> sendmail_outbound_enable=3D"NO" >>> sendmail_msp_queue_enable=3D"NO" >>> # >>> # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable >>> dumpdev=3D"AUTO" >>> # >>> dbus_enable=3D"YES" >>> hald_enable=3D"YES" >>> # >>> rpcbind_enable=3D"YES" >>> nfs_server_enable=3D"YES" >>> mountd_flags=3D"-r" >>> # >>> nfs_client_enable=3D"YES" >>=20 >>> # more /etc/sysctl.conf # $FreeBSD: head/etc/sysctl.conf 112200 = 2003-03-13 18:43:50Z mux $ >>> # >>> # This file is read when going to multi-user and its contents piped = thru >>> # ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for = details. >>> # >>> # Uncomment this to prevent users from seeing information about = processes that >>> # are being run under another UID. >>> #security.bsd.see_other_uids=3D0 >>> kern.nodump_coredump=3D1 >>> kern.capmode_coredump=3D1 >>> kern.sugid_coredump=3D1 >>> kern.corefile=3D/var/crash/%N.%P.core >>=20 >>=20 >> /etc/fstab , /etc/exports , /etc/resolv.conf are very simple but = non-default. Other than password files and the like the rest of /etc/. . = . is just defaults. >>=20 >>> # more /boot/loader.conf kern.cam.boot_delay=3D"10000" >>=20 >>=20 >>=20 >>=20 >> =3D=3D=3D >> Mark Millard >> markmi at dsl-only.net >>=20 >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org" >=20 > I'm using an RPI-B rather than RPI2, but my symptoms are similar. >=20 > Did you use the wired or wireless interface on the RPI2? I only > get the panic on the RPI-B when using wireless. Wired works fine. My context is/was wired (ue0 --as in ifconfig_ue0=3D"DHCP"), not = wireless. > In an earlier message Ian said that he thought he knew what the > problem was... >=20 > ...keith =3D=3D=3D Mark Millard markmi at dsl-only.net