From nobody Tue Oct 5 13:00:29 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 25DBC17EAEE2 for ; Tue, 5 Oct 2021 13:00:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HNyP90WmGz3Dcl for ; Tue, 5 Oct 2021 13:00:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E41295169 for ; Tue, 5 Oct 2021 13:00:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 195D0SNh067162 for ; Tue, 5 Oct 2021 13:00:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 195D0Ssk067161 for freebsd-arm@FreeBSD.org; Tue, 5 Oct 2021 13:00:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 247163] ipsec / cesa memory issue Date: Tue, 05 Oct 2021 13:00:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247163 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed Resolution|--- |Overcome By Events --- Comment #8 from Mark Johnston --- Yes, I don't think this will be addressed in FreeBSD since 11 is EOL. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Oct 7 15:36:22 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BFF0917EDD9E for ; Thu, 7 Oct 2021 15:36:30 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HQFmF42dpz3l0B for ; Thu, 7 Oct 2021 15:36:29 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.16.1/8.15.2) with ESMTPS id 197FaNk5084511 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 7 Oct 2021 08:36:23 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 197FaMFm084510; Thu, 7 Oct 2021 08:36:22 -0700 (PDT) (envelope-from fbsd) Date: Thu, 7 Oct 2021 08:36:22 -0700 From: bob prohaska To: freebsd-arm@freebsd.org Cc: bob prohaska Subject: SSH disconnections Message-ID: <20211007153622.GA84489@www.zefox.net> List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4HQFmF42dpz3l0B X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [-0.59 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-0.57)[-0.566]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.92)[-0.922]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_WWW(0.50)[] X-ThisMailContainsUnwantedMimeParts: N Lately certain ssh connections have been dropping on a Pi4 running -current as of yesterday. The odd thing is that out of several active ssh connections with that host, only one, running a cu session, is failing. The termination message is login: packet_write_wait: Connection to 192.168.1.11 port 22: Broken pipe /var/log/aculog contains lines similar to bob (Wed Oct 6 23:39:41 2021) call completed but the timestamp predates, at least sometimes, the actual disconnection. The host originating the connection is also a Pi4, running RasPiOS that's up-to-date as of a few days ago. There are numerous other active ssh connections to Pi2's and Pi3's, all of which remain connected and running for days, sometimes weeks. It looks as if the combination of cu and ssh is required to provoke the problem, any suggestions on where to look appreciated! Thanks for reading, bob prohaska From nobody Thu Oct 7 23:11:02 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 687FC12DCD42 for ; Thu, 7 Oct 2021 23:11:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HQRrk2Rw4z3K4P for ; Thu, 7 Oct 2021 23:11:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 347A41C796 for ; Thu, 7 Oct 2021 23:11:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 197NB2Hr089850 for ; Thu, 7 Oct 2021 23:11:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 197NB2P6089849 for freebsd-arm@FreeBSD.org; Thu, 7 Oct 2021 23:11:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 258994] OS panics on Nanopi Neo when using i2c 16-bit device addressing width Date: Thu, 07 Oct 2021 23:11:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: alydiomc@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258994 Bug ID: 258994 Summary: OS panics on Nanopi Neo when using i2c 16-bit device addressing width Product: Base System Version: CURRENT Hardware: arm OS: Any Status: New Severity: Affects Some People Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: alydiomc@yahoo.com On Nanopi NEO (Allwinner H3), accessing I2C EEPROM with 16-bit addressing w= idth panics the OS. This seems working on RPI. Same issue experienced on: FreeBSD 12.2 Release FreeBSD 13.0 Release FreeBSD 13.0 Stable root@nanopi-neo:~ # uname -a FreeBSD nanopi-neo 14.0-CURRENT FreeBSD 14.0-CURRENT #1 main-n249946-824bbb9a408-dirty: Fri Oct 8 05:34:21 PST 2021=20=20=20=20 root@media.klyren.net:/zdata0/work/obj/zdata0/src-14-CURRENT/arm.armv7/sys/= GENERIC arm root@nanopi-neo:~ # dmesg |grep ii iichb0: mem 0x1c2ac00-0x1c2afff i= rq 40 on simplebus0 iicbus0: on iichb0 miibus0: on awg0 ukphy0: PHY 0 on miibus0 ukphy1: PHY 1 on miibus0 iic0: on iicbus0 root@nanopi-neo:~ # i2c -s -f /dev/iic0 57 68 root@nanopi-neo:~ # i2c -a 0x57 -f /dev/iic0 -d r -o 1 -w 16 -c 1 -m tr panic: Assertion strlen(description) < MAX_W_NAME failed at /zdata0/src-14-CURRENT/sys/kern/subr_witness.c:1914 =C3=B0=C3=B1=C3=B2=C3=B3=C3=B4=C3=B5=C3=B6=C3=B7=C3=B8=C3=B9=C3=BA=C3=BB=C3= =BC=C3=BD=C3=BE=C3=BFtime =3D 1633646823 KDB: stack backtrace: db_trace_self() at db_trace_self pc =3D 0xc05b2e24 lr =3D 0xc007b07c (db_trace_self_wrapper+0x30) sp =3D 0xd89e8928 fp =3D 0xd89e8a40 db_trace_self_wrapper() at db_trace_self_wrapper+0x30 pc =3D 0xc007b07c lr =3D 0xc02dddbc (vpanic+0x17c) sp =3D 0xd89e8a48 fp =3D 0xd89e8a68 r4 =3D 0x00000100 r5 =3D 0x00000000 r6 =3D 0xc0708d0c r7 =3D 0xc08e8aa8 vpanic() at vpanic+0x17c pc =3D 0xc02dddbc lr =3D 0xc02ddb60 (doadump) sp =3D 0xd89e8a70 fp =3D 0xd89e8a74 r4 =3D 0xc10a0878 r5 =3D 0xc10a0830 r6 =3D 0xc08be7bc r7 =3D 0xc079bd0e r8 =3D 0x0000019e r9 =3D 0x0000019d r10 =3D 0xc0ad95f0 doadump() at doadump pc =3D 0xc02ddb60 lr =3D 0xc034f3b4 (enroll+0x540) sp =3D 0xd89e8a7c fp =3D 0xd89e8aa8 r4 =3D 0xc0ad95f0 r5 =3D 0xd89e8a74 r6 =3D 0xc02ddb60 r10 =3D 0xd89e8a7c enroll() at enroll+0x540 pc =3D 0xc034f3b4 lr =3D 0xc034f878 (witness_init+0xb0) sp =3D 0xd89e8ab0 fp =3D 0xd89e8ab8 r4 =3D 0xd2caffa0 r5 =3D 0x00000000 r6 =3D 0xd8f2b754 r7 =3D 0xc00b1074 r8 =3D 0xd8cc17c0 r9 =3D 0xc0889ed0 r10 =3D 0xd2e0e040 witness_init() at witness_init+0xb0 pc =3D 0xc034f878 lr =3D 0xc02e7b04 (sx_init_flags+0x88) sp =3D 0xd89e8ac0 fp =3D 0xd89e8ad0 r4 =3D 0xd2caffa0 r10 =3D 0xd2e0e040 sx_init_flags() at sx_init_flags+0x88 pc =3D 0xc02e7b04 lr =3D 0xc00b10b8 (iicopen+0x44) sp =3D 0xd89e8ad8 fp =3D 0xd89e8ae0 r4 =3D 0xd2caffa0 r5 =3D 0xd2a4ce00 iicopen() at iicopen+0x44 pc =3D 0xc00b10b8 lr =3D 0xc01d8784 (devfs_open+0x12c) sp =3D 0xd89e8ae8 fp =3D 0xd89e8b20 r4 =3D 0xd2a4ce00 r5 =3D 0x00000000 devfs_open() at devfs_open+0x12c pc =3D 0xc01d8784 lr =3D 0xc06a5324 (VOP_OPEN_APV+0x50) sp =3D 0xd89e8b28 fp =3D 0xd89e8b40 r4 =3D 0xd89e8b50 r5 =3D 0xc08a9fd4 r6 =3D 0xc09138c5 r7 =3D 0x00000003 r8 =3D 0xd8f71e00 r9 =3D 0xd89e8b50 r10 =3D 0xd8cc17c0 VOP_OPEN_APV() at VOP_OPEN_APV+0x50 pc =3D 0xc06a5324 lr =3D 0xc03e0dec (vn_open_vnode+0x184) sp =3D 0xd89e8b48 fp =3D 0xd89e8ba8 r4 =3D 0xd8f2b754 r5 =3D 0x00000000 r6 =3D 0xd2e0e040 r10 =3D 0xd8cc17c0 vn_open_vnode() at vn_open_vnode+0x184 pc =3D 0xc03e0dec lr =3D 0xc03e0828 (vn_open_cred+0x578) sp =3D 0xd89e8bb0 fp =3D 0xd89e8cc0 r4 =3D 0x00000001 r5 =3D 0xd89e8cf8 r6 =3D 0x00000003 r7 =3D 0xd89e8d58 r8 =3D 0xd89e8dc0 r9 =3D 0x00000000 r10 =3D 0x00000000 vn_open_cred() at vn_open_cred+0x578 pc =3D 0xc03e0828 lr =3D 0xc03e02a8 (vn_open+0x24) sp =3D 0xd89e8cc8 fp =3D 0xd89e8cd0 r4 =3D 0xd8cc17c0 r5 =3D 0xd89e8cf8 r6 =3D 0x00000000 r7 =3D 0xd89e8cf8 r8 =3D 0xffffff9c r9 =3D 0x00000012 r10 =3D 0xbfbfee4b vn_open() at vn_open+0x24 pc =3D 0xc03e02a8 lr =3D 0xc03d6f30 (kern_openat+0x258) sp =3D 0xd89e8cd8 fp =3D 0xd89e8db8 kern_openat() at kern_openat+0x258 pc =3D 0xc03d6f30 lr =3D 0xc03d71b8 (sys_openat+0x2c) sp =3D 0xd89e8dc0 fp =3D 0xd89e8dc8 r4 =3D 0xd8cc17c0 r5 =3D 0x00000001 r6 =3D 0xc08b42bc r7 =3D 0x00000000 r8 =3D 0x00000000 r9 =3D 0xd8cc1a68 r10 =3D 0xd8cc0530 sys_openat() at sys_openat+0x2c pc =3D 0xc03d71b8 lr =3D 0xc05d5128 (swi_handler+0x15c) sp =3D 0xd89e8dd0 fp =3D 0xd89e8e40 swi_handler() at swi_handler+0x15c pc =3D 0xc05d5128 lr =3D 0xc05b574c (swi_exit) sp =3D 0xd89e8e48 fp =3D 0xbfbfe780 r4 =3D 0x201f8a44 r5 =3D 0x00044190 r6 =3D 0xbfbfec98 r7 =3D 0x000001f3 r8 =3D 0x00000001 r9 =3D 0x00010b92 r10 =3D 0x00000000 swi_exit() at swi_exit pc =3D 0xc05b574c lr =3D 0xc05b574c (swi_exit) sp =3D 0xd89e8e48 fp =3D 0xbfbfe780 KDB: enter: panic [ thread pid 985 tid 100114 ] Stopped at kdb_enter+0x58: ldrb r15, [r15, r15, ror r15]! db> ps pid ppid pgrp uid state wmesg wchan cmd 985 972 985 0 R+ CPU 1 i2c 972 971 972 0 S+ pause 0xd8cc0928 csh 971 1 971 0 Ss+ wait 0xd2dacc40 login 952 1 952 0 Ss select 0xd2c954a4 sshd 925 1 925 0 Ss nanslp 0xc0ac3d8e cron 914 1 914 123 Ss (threaded) ntpd 100117 S select 0xd2ccb224 ntpd 100122 S usem 0xd2dc5e80 ntpd 870 1 870 0 Ss select 0xd2cb2664 syslogd 682 1 682 0 Ss select 0xd2cb2524 devd 284 1 284 0 Ss select 0xd2cb2624 wpa_supplicant 23 0 0 0 DL mmcsd d 0xd2ccce00 [mmcsd0: mmc/sd card] 22 0 0 0 DL - 0xc0b31af0 [soaiod4] 21 0 0 0 DL - 0xc0b31af0 [soaiod3] 20 0 0 0 DL - 0xc0b31af0 [soaiod2] 19 0 0 0 DL - 0xc0b31af0 [soaiod1] 18 0 0 0 DL syncer 0xc0b32960 [syncer] 17 0 0 0 DL vlruwt 0xd173d388 [vnlru] 16 0 0 0 DL (threaded) [bufdaemon] 100084 D qsleep 0xc0b31fdc [bufdaemon] 100087 D - 0xc0915700 [bufspacedaemon-0] 100104 D sdflush 0xd2d98c84 [/ worker] 15 0 0 0 DL psleep 0xc0b36930 [vmdaemon] 9 0 0 0 DL (threaded) [pagedaemon] 100082 D psleep 0xc0b36290 [dom0] 100092 D launds 0xc0b3629c [laundry: dom0] 100093 D umarcl 0xc056eeb4 [uma] 8 0 0 0 DL - 0xc0939e18 [rand_harvestq] 14 0 0 0 DL (threaded) [usb] 100046 D - 0xd280400c [usbus0] 100047 D - 0xd280403c [usbus0] 100048 D - 0xd280406c [usbus0] 100049 D - 0xd280409c [usbus0] 100050 D - 0xd28040cc [usbus0] 100052 D - 0xd17a6c84 [usbus1] 100053 D - 0xd17a6cb4 [usbus1] 100054 D - 0xd17a6ce4 [usbus1] 100055 D - 0xd17a6d14 [usbus1] 100056 D - 0xd17a6d44 [usbus1] 100058 D - 0xd280daac [usbus2] 100059 D - 0xd280dadc [usbus2] 100060 D - 0xd280db0c [usbus2] 100061 D - 0xd280db3c [usbus2] 100062 D - 0xd280db6c [usbus2] 100064 D - 0xd2838c84 [usbus3] 100065 D - 0xd2838cb4 [usbus3] 100066 D - 0xd2838ce4 [usbus3] 100067 D - 0xd2838d14 [usbus3] 100068 D - 0xd2838d44 [usbus3] 100070 D - 0xd284aaac [usbus4] 100071 D - 0xd284aadc [usbus4] 100072 D - 0xd284ab0c [usbus4] 100073 D - 0xd284ab3c [usbus4] 100074 D - 0xd284ab6c [usbus4] 7 0 0 0 DL (threaded) [cam] 100039 D - 0xc09361c0 [doneq0] 100040 D - 0xc0936140 [async] 100080 D - 0xc093606c [scanner] 6 0 0 0 DL crypto_ 0xc3bbfdac [crypto returns 3] 5 0 0 0 DL crypto_ 0xc3bbfd7c [crypto returns 2] 4 0 0 0 DL crypto_ 0xc3bbfd4c [crypto returns 1] 3 0 0 0 DL crypto_ 0xc3bbfd1c [crypto returns 0] 2 0 0 0 DL crypto_ 0xc0b352ec [crypto] 13 0 0 0 DL seqstat 0xd0495dcc [sequencer 00] 12 0 0 0 DL (threaded) [geom] 100026 D - 0xc0ab2d38 [g_event] 100027 D - 0xc0ab2d3c [g_up] 100028 D - 0xc0ab2d40 [g_down] 11 0 0 0 WL (threaded) [intr] 100010 I [swi6: Giant taskq] 100016 I [swi5: fast taskq] 100018 I [swi6: task queue] 100019 I [swi1: netisr 0] 100020 I [swi4: clock (0)] 100021 I [swi4: clock (1)] 100022 I [swi4: clock (2)] 100023 I [swi4: clock (3)] 100024 I [swi3: vm] 100041 I [gic0,s11: gpio0] 100042 I [gic0,s45: gpio1] 100043 I [gic0,s50: a31dmac0] 100044 I [gic0,s60: aw_mmc0] 100045 I [gic0,s71: musbotg0] 100051 I [gic0,s72: ehci0] 100057 I [gic0,s73: ohci0] 100063 I [gic0,s78: ehci1] 100069 I [gic0,s79: ohci1] 100075 I [gic0,s82: awg0] 100076 I [swi0: uart] 100077 I [gic0,s31:-_thermal0] 100081 I [gic0,s6: iichb0] 10 0 0 0 RL (threaded) [idle] 100002 Run CPU 0 [idle: cpu0] 100003 CanRun [idle: cpu1] 100004 Run CPU 2 [idle: cpu2] 100005 Run CPU 3 [idle: cpu3] 1 0 1 0 SLs wait 0xc29fdc40 [init] 0 0 0 0 DLs (threaded) [kernel] 100000 D swapin 0xc0ab31c0 [swapper] 100006 D - 0xc3bc0400 [softirq_0] 100007 D - 0xc3bc0300 [softirq_1] 100008 D - 0xc3bc0200 [softirq_2] 100009 D - 0xc3bc0100 [softirq_3] 100011 D - 0xd0453e00 [in6m_free taskq] 100012 D - 0xd0453d00 [thread taskq] 100013 D - 0xd0453c00 [aiod_kick taskq] 100014 D - 0xd0453b00 [deferred_unmount ta] 100015 D - 0xd0453a00 [inm_free taskq] 100017 D - 0xd0453800 [kqueue_ctx taskq] 100025 D - 0xd0453600 [firmware taskq] 100030 D - 0xd0453500 [crypto_0] 100031 D - 0xd0453500 [crypto_1] 100032 D - 0xd0453500 [crypto_2] 100033 D - 0xd0453500 [crypto_3] 100079 D - 0xd173fa00 [CAM taskq] 100095 D - 0xd2cdce00 [rtwn0 net80211 task] db> --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Fri Oct 8 02:13:42 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 54894179C906; Fri, 8 Oct 2021 02:13:51 +0000 (UTC) (envelope-from roboman7811@gmail.com) Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HQWvf2dqMz4lr7; Fri, 8 Oct 2021 02:13:50 +0000 (UTC) (envelope-from roboman7811@gmail.com) Received: by mail-qk1-x72c.google.com with SMTP id t63so3313556qkf.1; Thu, 07 Oct 2021 19:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:user-agent:mime-version :content-transfer-encoding; bh=mfA5f6hd3jUdbW9YHbJt3JxbXgw7mVBgaxNyVQxotXQ=; b=n2d6QkZdtCF7Wt8G8LBPnPIQslPMtlwOf7jxWUU930AFL9Qfh8D2jkHydeMigvQS3Y JZcCh4oj2MFPEf+mbsBud0GAszv4wHp2HEsq/Mwy9poYsJI9fRwKlaVrGfLP6mJ0Z2Xp 3MuYH1a+yCuR5hnXf+6sqH+A6Bq23Oiq6PxGzJMl5Z3u82d10qzMUw4AMab9Dql3R061 Cg+qt2N6o9jaY376Z6DaTA0zmtEx34hIqx3+Lxvcz/niYUO60kg6BKlP61GgV+5ilzcF MsQ4VFZtFjGX7zN0kFZTSz2aK1zTes0Z2yZ3kEhrG0716+js52/mCEJ7C3I/AOmYcxJb RQGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=mfA5f6hd3jUdbW9YHbJt3JxbXgw7mVBgaxNyVQxotXQ=; b=tZFkmUj/Rp2gb3L2J0bDV/JuP/41VXKKKyMDxMpECAIEoNS32ebrw70HMdF43Enc2j B+NQMh7VFziTHQjxLtTMTrv0B2iXXLPPTCdzyHbSMvoedzdQo+w6Jzn4cve44grNSMjD sSil7g/h1FTd9eZUQ1lpDHMGfakF5IOSdinZOcKUCdb4HkJjVNAoK0Aekchx43dcjECc +5PDJBRPwwgZFvkGUdyQtNVJwoQ5aRW71Oq0IC7oEEY8VEudrzHMryadlnSiA6crsGAV jjopQ1pgo1vhdgMR5YAlB57ttvdWo3Q62jIIzrAWrUWP09ZmunQXfEAmjh3C68uAEZRR 6Y7g== X-Gm-Message-State: AOAM532fOzOKXFH/8a6sYjzlThoaXAkN53inBaNvtqLu5QMMqncsHKmy Z+1auhSJ17Q0DYgcfMMcOj37xEx5flsiIg== X-Google-Smtp-Source: ABdhPJz+hiKR6HVWLj+rzhLMXl+3eH9kBB5ZAWE3QZ9r2luhBkoEnetA7sIdS1n8Q0UlW+N7bVAOlw== X-Received: by 2002:a37:516:: with SMTP id 22mr743784qkf.139.1633659223695; Thu, 07 Oct 2021 19:13:43 -0700 (PDT) Received: from [192.168.5.21] ([74.215.23.187]) by smtp.gmail.com with ESMTPSA id v17sm1074260qkp.75.2021.10.07.19.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 19:13:43 -0700 (PDT) Message-ID: <2acaf75c0e54eea5cb5612a9c692b0b7b8aa9b4d.camel@gmail.com> Subject: Broken USB 3.0 port on Pine Rock64 SBC From: roboman To: freebsd-arm@freebsd.org, freebsd-usb@freebsd.org Date: Thu, 07 Oct 2021 22:13:42 -0400 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HQWvf2dqMz4lr7 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=n2d6QkZd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of roboman7811@gmail.com designates 2607:f8b0:4864:20::72c as permitted sender) smtp.mailfrom=roboman7811@gmail.com X-Spamd-Result: default: False [-3.98 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72c:from]; NEURAL_HAM_SHORT(-0.98)[-0.985]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N Goal: Turn a Rock64 SBC into a NFS server. * {root} installed on microSD * NFS share an external USB 3.0 drive. Works on Linux - Armbian & DietPi On FreeBSD, I tried: 13-RELEASE 14-CURRENT In both cases (release/current), the single USB 3.0 port on the Rock64 doesn't appear to recognize any drive. The single 3.0 USB port appears disabled. If I plug the external hard drive into either one of the two USB 2 ports - the drive is recognized and shows in dmesg. If I plug into the single USB 3 port, no messages displayed in dmesg. Kernel doesn't recognize anything from UHCI / XHCI on the USB 3.0 port. Hoping this is potentially a quick fix such as a tuneable in /boot/loader.conf. kldstat Id Refs Address Size Name 1 11 0xffff000000000000 1209308 kernel 2 1 0xffff00000120a000 25808 umodem.ko 3 2 0xffff000001230000 28698 ucom.ko 4 1 0xffff0000cb000000 22000 dwwdt.ko 5 1 0xffff0000cb022000 22000 mac_ntpd.ko usbconfig ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA) ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) Drive works fine in either of the two USB 2.0 slots. When plugged into the USB 3 slot, nothing happens. dmesg shows no activity as if I never plugged it in. dmesg | tail -10 uhub0: 1 port with 1 removable, self powered uhub2: 1 port with 1 removable, self powered uhub1: 1 port with 1 removable, self powered dwwdt0: mem 0xff1a0000-0xff1a00ff irq 20 on ofwbus0 dwwdt0: cannot find clock device_attach: dwwdt0 attach returned 6 lo0: link state changed to UP dwc0: link state changed to DOWN dwc0: link state changed to UP Security policy loaded: MAC/ntpd (mac_ntpd) ^^^ plug it in, run dmesg again..... no change. Then I plug it into either one of the two USB 2.0 ports, and it works... dmesg shows: ugen1.2: at usbus1 umass0 on uhub2 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x8100 umass0:0:0: Attached to scbus0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SPC-4 SCSI device da0: Serial Number NA8FVENP da0: 40.000MB/s transfers da0: 2861588MB (5860533167 512 byte sectors) da0: quirks=0x2 Hardware is Rock64 single board computer. Device has one USB 3.0 port and two USB 2.0. :seems: like the single USB 3.0 port is registered as USB 1.0. From nobody Fri Oct 8 05:03:01 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id F032917E4238; Fri, 8 Oct 2021 05:03:04 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HQbfw6WFbz3DxS; Fri, 8 Oct 2021 05:03:04 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from [192.168.0.88] (unknown [195.64.148.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4E7FB2F73D; Fri, 8 Oct 2021 05:03:04 +0000 (UTC) (envelope-from avg@FreeBSD.org) To: roboman , freebsd-arm@freebsd.org, freebsd-usb@freebsd.org References: <2acaf75c0e54eea5cb5612a9c692b0b7b8aa9b4d.camel@gmail.com> From: Andriy Gapon Subject: Re: Broken USB 3.0 port on Pine Rock64 SBC Message-ID: Date: Fri, 8 Oct 2021 08:03:01 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.14.0 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 In-Reply-To: <2acaf75c0e54eea5cb5612a9c692b0b7b8aa9b4d.camel@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-ThisMailContainsUnwantedMimeParts: N On 08/10/2021 05:13, roboman wrote: > > Goal: Turn a Rock64 SBC into a NFS server. > * {root} installed on microSD > * NFS share an external USB 3.0 drive. > > Works on Linux - Armbian & DietPi > > On FreeBSD, I tried: > 13-RELEASE > 14-CURRENT > > In both cases (release/current), the single USB 3.0 port on the Rock64 > doesn't appear to recognize any drive. The single 3.0 USB port appears > disabled. If I plug the external hard drive into either one of the two > USB 2 ports - the drive is recognized and shows in dmesg. If I plug > into the single USB 3 port, no messages displayed in dmesg. Kernel > doesn't recognize anything from UHCI / XHCI on the USB 3.0 port. > > Hoping this is potentially a quick fix such as a tuneable in > /boot/loader.conf. I think that you need rk3328-dwc3 overlay. Try putting fdt_overlays="rk3328-dwc3" in your loader.conf. > kldstat > > Id Refs Address Size Name > 1 11 0xffff000000000000 1209308 kernel > 2 1 0xffff00000120a000 25808 umodem.ko > 3 2 0xffff000001230000 28698 ucom.ko > 4 1 0xffff0000cb000000 22000 dwwdt.ko > 5 1 0xffff0000cb022000 22000 mac_ntpd.ko > > usbconfig > > ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=SAVE (0mA) > ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE (0mA) > ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE (0mA) > > > Drive works fine in either of the two USB 2.0 slots. When plugged into > the USB 3 slot, nothing happens. dmesg shows no activity as if I never > plugged it in. > > dmesg | tail -10 > > uhub0: 1 port with 1 removable, self powered > uhub2: 1 port with 1 removable, self powered > uhub1: 1 port with 1 removable, self powered > dwwdt0: mem 0xff1a0000-0xff1a00ff > irq 20 on ofwbus0 > dwwdt0: cannot find clock > device_attach: dwwdt0 attach returned 6 > lo0: link state changed to UP > dwc0: link state changed to DOWN > dwc0: link state changed to UP > Security policy loaded: MAC/ntpd (mac_ntpd) > > ^^^ plug it in, run dmesg again..... no change. > > Then I plug it into either one of the two USB 2.0 ports, and it > works... dmesg shows: > > ugen1.2: at usbus1 > umass0 on uhub2 > umass0: on > usbus1 > umass0: SCSI over Bulk-Only; quirks = 0x8100 > umass0:0:0: Attached to scbus0 > da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 > da0: Fixed Direct Access SPC-4 SCSI > device > da0: Serial Number NA8FVENP > da0: 40.000MB/s transfers > da0: 2861588MB (5860533167 512 byte sectors) > da0: quirks=0x2 > > Hardware is Rock64 single board computer. Device has one USB 3.0 port > and two USB 2.0. :seems: like the single USB 3.0 port is registered as > USB 1.0. > > > -- Andriy Gapon From nobody Fri Oct 8 10:31:38 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A2C1717ECD7E; Fri, 8 Oct 2021 10:31:42 +0000 (UTC) (envelope-from roboman7811@gmail.com) Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HQky641k0z3Pgt; Fri, 8 Oct 2021 10:31:42 +0000 (UTC) (envelope-from roboman7811@gmail.com) Received: by mail-qv1-xf2e.google.com with SMTP id o13so6038290qvm.4; Fri, 08 Oct 2021 03:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=UNKhwB4DuCA+6KT8/dZa1idjKsxQofFY59SriU9G/es=; b=kj2yowxneGAFh41v3WRjkuRS15K+Djmpim5fz8nK/UtzjU1PYvNXU6ywpBwahNAwAj syPzfIPH7d9HTdbBEJ8f0A7WZUIcUsAOptGQ0/oakY7n2PGeawFOkheQkTnd0Uw2yzx7 D7LEsAnmGY/1592JFjS1yHEPSfBxqb8e6kRDIkEhKIbbTeiiY/xhM/uNAZNrFfa1/k6/ LLbfVphk7XEJnQAIcu2KHeBnTQvR8KLuLdawWfEUyQCNJUrpjAL3E2kEalocdq2JY/lr TZH7cHPnBc4ZLc7TaUB2hOezqDO7Phv6VP+yPKL5+n0zDow/je+zoSqDHOkq3LHlQDJV W07w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=UNKhwB4DuCA+6KT8/dZa1idjKsxQofFY59SriU9G/es=; b=Xms7VXHO0Asbod0hCyIu6nrETBQ4mEp6JeS3gZXU9NoOeIvIxayyPfeFWqgCwjtzRd Dgm+PJuFaP/fOJS/KDBdhGMXUm79aCCMytIVQtj44hcw8bvY8M8VdS5ENqzfSakXxfGK 8+0FOeV6PbG46/GxMlb2Q0qk7L4AzUhd1I4VAGV6P9frDxUw7DxTeWZrxaiUpbWIFfeC r3rZP7idF6Lx9aRac5D5NV8SJq71r8NU3jvmoZW+d/Wzcwdj2Gx2DQxrcoMSY0KTGtDs i4Xy/4CaXxuRyCNwEw21jfgNolZwqSw2Lxuo0Y9Ra94NlZs4/w0Dj+ruz5hdV9RQt1Z2 /lEg== X-Gm-Message-State: AOAM5310v6aVIYuwCzpnJy4djV53lkOK/dgkDfA0vfynWeaU7cwUuml+ u4PFYnuO//NQay1q42g4i1kFvsnaSQiBXg== X-Google-Smtp-Source: ABdhPJz0bQILe+XPiHe1EzCs5XCFLcjyVGrdMQrY9hvVxEDPRaOyVw3GHe3JSxQoAEUXjGUUOP8jqw== X-Received: by 2002:ad4:5b8e:: with SMTP id 14mr9313562qvp.44.1633689101476; Fri, 08 Oct 2021 03:31:41 -0700 (PDT) Received: from [192.168.5.21] ([74.215.23.187]) by smtp.gmail.com with ESMTPSA id 101sm1748154qta.17.2021.10.08.03.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 03:31:40 -0700 (PDT) Message-ID: Subject: Re: Broken USB 3.0 port on Pine Rock64 SBC From: roboman To: Andriy Gapon , freebsd-arm@freebsd.org, freebsd-usb@freebsd.org Date: Fri, 08 Oct 2021 06:31:38 -0400 In-Reply-To: References: <2acaf75c0e54eea5cb5612a9c692b0b7b8aa9b4d.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HQky641k0z3Pgt X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N Thank-you very much. That was it. loader.conf needed fdt_overlays="rk3328-dwc3". Once added, everything started working as expected. Looks like we should add that detail as a post-install instruction to https://wiki.freebsd.org/arm/RockChip or include it in the prebuilt .img for Rock64. thanks again Jeff On Fri, 2021-10-08 at 08:03 +0300, Andriy Gapon wrote: > On 08/10/2021 05:13, roboman wrote: > > Goal: Turn a Rock64 SBC into a NFS server. > > * {root} installed on microSD > > * NFS share an external USB 3.0 drive. > > > > Works on Linux - Armbian & DietPi > > > > On FreeBSD, I tried: > > 13-RELEASE > > 14-CURRENT > > > > In both cases (release/current), the single USB 3.0 port on the > > Rock64 > > doesn't appear to recognize any drive. The single 3.0 USB port > > appears > > disabled. If I plug the external hard drive into either one of the > > two > > USB 2 ports - the drive is recognized and shows in dmesg. If I plug > > into the single USB 3 port, no messages displayed in dmesg. Kernel > > doesn't recognize anything from UHCI / XHCI on the USB 3.0 port. > > > > Hoping this is potentially a quick fix such as a tuneable in > > /boot/loader.conf. > > I think that you need rk3328-dwc3 overlay. > Try putting fdt_overlays="rk3328-dwc3" in your loader.conf. > > > kldstat > > > > Id Refs Address Size Name > > 1 11 0xffff000000000000 1209308 kernel > > 2 1 0xffff00000120a000 25808 umodem.ko > > 3 2 0xffff000001230000 28698 ucom.ko > > 4 1 0xffff0000cb000000 22000 dwwdt.ko > > 5 1 0xffff0000cb022000 22000 mac_ntpd.ko > > > > usbconfig > > > > ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL > > (12Mbps) pwr=SAVE (0mA) > > ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH > > (480Mbps) pwr=SAVE (0mA) > > ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH > > (480Mbps) pwr=SAVE (0mA) > > > > > > Drive works fine in either of the two USB 2.0 slots. When plugged > > into > > the USB 3 slot, nothing happens. dmesg shows no activity as if I > > never > > plugged it in. > > > > dmesg | tail -10 > > > > uhub0: 1 port with 1 removable, self powered > > uhub2: 1 port with 1 removable, self powered > > uhub1: 1 port with 1 removable, self powered > > dwwdt0: mem 0xff1a0000- > > 0xff1a00ff > > irq 20 on ofwbus0 > > dwwdt0: cannot find clock > > device_attach: dwwdt0 attach returned 6 > > lo0: link state changed to UP > > dwc0: link state changed to DOWN > > dwc0: link state changed to UP > > Security policy loaded: MAC/ntpd (mac_ntpd) > > > > ^^^ plug it in, run dmesg again..... no change. > > > > Then I plug it into either one of the two USB 2.0 ports, and it > > works... dmesg shows: > > > > ugen1.2: at usbus1 > > umass0 on uhub2 > > umass0: > > on > > usbus1 > > umass0: SCSI over Bulk-Only; quirks = 0x8100 > > umass0:0:0: Attached to scbus0 > > da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 > > da0: Fixed Direct Access SPC-4 SCSI > > device > > da0: Serial Number NA8FVENP > > da0: 40.000MB/s transfers > > da0: 2861588MB (5860533167 512 byte sectors) > > da0: quirks=0x2 > > > > Hardware is Rock64 single board computer. Device has one USB 3.0 > > port > > and two USB 2.0. :seems: like the single USB 3.0 port is registered > > as > > USB 1.0. > > > > > > > > From nobody Sun Oct 10 21:00:36 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8B2EF17E3E16 for ; Sun, 10 Oct 2021 21:00:37 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HSDps0D6Xz4lDM for ; Sun, 10 Oct 2021 21:00:36 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C119414B2D for ; Sun, 10 Oct 2021 21:00:36 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 19AL0aVQ052339 for ; Sun, 10 Oct 2021 21:00:36 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 19AL0aUF052338 for freebsd-arm@FreeBSD.org; Sun, 10 Oct 2021 21:00:36 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202110102100.19AL0aUF052338@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: freebsd-arm@FreeBSD.org Subject: Problem reports for freebsd-arm@FreeBSD.org that need special attention Date: Sun, 10 Oct 2021 21:00:36 +0000 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="16338996364.e52EE268.51299" Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: Y --16338996364.e52EE268.51299 Date: Sun, 10 Oct 2021 21:00:36 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 238576 | Raspberry Pi 3B+ "shutdown -p" does not shut off Open | 239673 | Spurious Interrupt message from /dev/led/led1 Open | 257670 | mpr(4): SAS3008 PCI-Express Fusion-MPT SAS-3: Fat 3 problems total for which you should take action. --16338996364.e52EE268.51299--