From nobody Tue Oct 5 16:51:14 2021 X-Original-To: usb@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 A350712D1306 for ; Tue, 5 Oct 2021 16:51:14 +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 4HP3WQ4BDMz3NkR for ; Tue, 5 Oct 2021 16:51:14 +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 71397104D6 for ; Tue, 5 Oct 2021 16:51:14 +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 195GpEHQ098566 for ; Tue, 5 Oct 2021 16:51:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 195GpEav098565 for usb@FreeBSD.org; Tue, 5 Oct 2021 16:51:14 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: usb@FreeBSD.org Subject: [Bug 258057] muge(4) crashes with large tx batches Date: Tue, 05 Oct 2021 16:51:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dan.kotowski@a9development.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258057 --- Comment #33 from Dan Kotowski --- At boot, everything working: $ netstat -6rnW Routing tables Internet6: Destination Gateway Flags Nho= p#=20=20 Mtu Netif Expire ::/96 ::1 UGRS = 6=20 16384 lo0 default 2001:470:e35c:1::1 UGS = 7=20=20 1500 ue0 ::1 link#1 UHS = 1=20 16384 lo0 ::ffff:0.0.0.0/96 ::1 UGRS = 6=20 16384 lo0 2001:470:e35c:1::/64 link#3 U = 5=20=20 1500 ue0 2001:470:e35c:1:REDACTED link#3 UHS 4 16384= =20=20=20=20=20 lo0 fe80::/10 ::1 UGRS = 6=20 16384 lo0 fe80::%lo0/64 link#1 U = 3=20 16384 lo0 fe80::1%lo0 link#1 UHS = 2=20 16384 lo0 fe80::%ue0/64 link#3 U = 5=20=20 1500 ue0 fe80::21e:c0ff:fee1:2c60%ue0 link#3 UHS = 4=20 16384 lo0 ff02::/16 ::1 UGRS = 6=20 16384 lo0 It looks like it loses the default v6 route for some reason and never recov= ers it? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Oct 5 15:27:43 2021 X-Original-To: usb@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 2224812BBB56 for ; Tue, 5 Oct 2021 15:27:43 +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 4HP1g30CFFz3KtC for ; Tue, 5 Oct 2021 15:27:43 +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 D90866C74 for ; Tue, 5 Oct 2021 15:27:42 +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 195FRgt2050467 for ; Tue, 5 Oct 2021 15:27:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 195FRg1e050466 for usb@FreeBSD.org; Tue, 5 Oct 2021 15:27:42 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: usb@FreeBSD.org Subject: [Bug 258057] muge(4) crashes with large tx batches Date: Tue, 05 Oct 2021 15:27:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dan.kotowski@a9development.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258057 --- Comment #32 from Dan Kotowski --- $ curl -4 icanhazip.com ; curl -6 icanhazip.com 73.163.228.147 curl: (7) Couldn't connect to server $ ifconfig ue0 inet ue0: flags=3D8843 metric 0 mtu 1500 options=3D80009 inet 192.168.1.99 netmask 0xffffff00 broadcast 192.168.1.255 $ ifconfig ue0 inet6 ue0: flags=3D8843 metric 0 mtu 1500 options=3D80009 inet6 fe80::21e:c0ff:fee1:2c60%ue0 prefixlen 64 scopeid 0x3 inet6 2001:470:e35c:REDACTED prefixlen 64 nd6 options=3D21 $ netstat -6rnW Routing tables Internet6: Destination Gateway Flags Nho= p#=20=20 Mtu Netif Expire ::/96 ::1 UGRS = 6=20 16384 lo0 ::1 link#1 UHS = 1=20 16384 lo0 ::ffff:0.0.0.0/96 ::1 UGRS = 6=20 16384 lo0 2001:470:e35c:1::/64 link#3 U = 8=20=20 1500 ue0 2001:470:e35c:1:REDACTED link#3 UHS = 4=20 16384 lo0 fe80::/10 ::1 UGRS = 6=20 16384 lo0 fe80::%lo0/64 link#1 U = 3=20 16384 lo0 fe80::1%lo0 link#1 UHS = 2=20 16384 lo0 fe80::%ue0/64 link#3 U = 8=20=20 1500 ue0 fe80::21e:c0ff:fee1:2c60%ue0 link#3 UHS = 4=20 16384 lo0 ff02::/16 ::1 UGRS = 6=20 16384 lo0 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Oct 5 15:21:18 2021 X-Original-To: usb@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 1102A12BB795 for ; Tue, 5 Oct 2021 15:21:18 +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 4HP1Wd706dz3L3d for ; Tue, 5 Oct 2021 15:21:17 +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 D137470B7 for ; Tue, 5 Oct 2021 15:21:17 +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 195FLHE2048196 for ; Tue, 5 Oct 2021 15:21:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 195FLH2U048195 for usb@FreeBSD.org; Tue, 5 Oct 2021 15:21:17 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: usb@FreeBSD.org Subject: [Bug 258057] muge(4) crashes with large tx batches Date: Tue, 05 Oct 2021 15:21:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dan.kotowski@a9development.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258057 --- Comment #31 from Dan Kotowski --- I've been able to trigger this behavior as well from Firefox by reloading ~= 20 tabs at once, even when I'm able to get the device to negotiate superspeed. ugen1.8: at usbus1, cfg=3D0 md=3DHOST spd=3DSUPER (5.0G= bps) pwr=3DON (224mA) ugen1.8.0: muge0: Something I noticed as that when the interface begins flapping, IPv4 will sometimes remain partially usable but IPv6 fails entirely. I'm not sure if = it's related, but I also regularly see this in /var/log/messages: lock order nd6 list -> lle established at: #0 0xffff0000004e3368 at witness_checkorder+0x438 #1 0xffff000000470574 at _rw_wlock_cookie+0x74 #2 0xffff00000064ba14 at nd6_llinfo_timer+0xa8 #3 0xffff000000493260 at softclock_call_cc+0x13c #4 0xffff00000049356c at softclock+0x44 #5 0xffff0000004329a0 at ithread_loop+0x2a8 #6 0xffff00000042efa8 at fork_exit+0x74 #7 0xffff00000077bbc4 at fork_trampoline+0x14 lock order lle -> nd6 list attempted at: #0 0xffff0000004e3b3c at witness_checkorder+0xc0c #1 0xffff000000470574 at _rw_wlock_cookie+0x74 #2 0xffff000000651a20 at defrouter_remove+0x40 #3 0xffff00000064e7c0 at nd6_na_input+0x848 #4 0xffff0000006244cc at icmp6_input+0xd2c #5 0xffff00000063d078 at ip6_input+0xe5c #6 0xffff0000005b4044 at netisr_dispatch_src+0xe4 #7 0xffff0000005980ac at ether_demux+0x174 #8 0xffff000000599734 at ether_nh_input+0x3f8 #9 0xffff0000005b4044 at netisr_dispatch_src+0xe4 #10 0xffff000000598584 at ether_input+0x80 #11 0xffff0000002f2b50 at uether_rxflush+0x8c #12 0xffff0000002e1778 at muge_bulk_read_callback+0x120 #13 0xffff0000002dd9a0 at usbd_callback_wrapper+0x6b0 #14 0xffff0000002decb0 at usb_command_wrapper+0x124 #15 0xffff0000002ddb38 at usb_callback_proc+0x30 #16 0xffff0000002d8c6c at usb_process+0x10c #17 0xffff00000042efa8 at fork_exit+0x74 --=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-usb@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: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@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-usb@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: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@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-usb@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: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@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:42 2021 X-Original-To: usb@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 06D2517E422F for ; Sun, 10 Oct 2021 21:00:43 +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 4HSDpy3Tc9z4lDm for ; Sun, 10 Oct 2021 21:00:42 +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 2B29F1456C for ; Sun, 10 Oct 2021 21:00:42 +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 19AL0gj5052461 for ; Sun, 10 Oct 2021 21:00:42 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 19AL0gcA052460 for usb@FreeBSD.org; Sun, 10 Oct 2021 21:00:42 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202110102100.19AL0gcA052460@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: usb@FreeBSD.org Subject: Problem reports for usb@FreeBSD.org that need special attention Date: Sun, 10 Oct 2021 21:00:42 +0000 List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="16338996421.B8AAdf.51299" Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: N --16338996421.B8AAdf.51299 Date: Sun, 10 Oct 2021 21:00:42 +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 | 213877 | xhci reset causes panic on SuperMicro A1SRi-2758F Open | 234578 | Support for Sierra Wireless EM7455 modem Open | 247964 | Low read throughput on Sandisk Extreme external S 3 problems total for which you should take action. --16338996421.B8AAdf.51299--