From owner-freebsd-arm@freebsd.org Sat Jan 9 20:33:48 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6C8E54E2A9D for ; Sat, 9 Jan 2021 20:33:48 +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 4DCsBM3BX2z4TF8 for ; Sat, 9 Jan 2021 20:33:47 +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 109KXg9s044861 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 9 Jan 2021 12:33:42 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 109KXg83044860; Sat, 9 Jan 2021 12:33:42 -0800 (PST) (envelope-from fbsd) Date: Sat, 9 Jan 2021 12:33:41 -0800 From: bob prohaska To: freebsd-arm@freebsd.org Subject: USB problems on FreeBSD-current and Raspberry Pi3B+, MMCCAM perhaps? Message-ID: <20210109203341.GA44642@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4DCsBM3BX2z4TF8 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 [1.93 / 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)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_LONG(-0.97)[-0.965]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; RBL_DBL_DONT_QUERY_IPS(0.00)[50.1.20.27:from]; AUTH_NA(1.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; SPAMHAUS_ZRD(0.00)[50.1.20.27:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; 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]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-arm]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2021 20:33:48 -0000 A UGreen USB3 storage card adapter (model 30333) has stopped working with FreeBSD-current, reporting a stream of (da1:umass-sim1:1:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 (da1:umass-sim1:1:0:0): CAM status: SCSI Status Error (da1:umass-sim1:1:0:0): SCSI status: Check Condition (da1:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (da1:umass-sim1:1:0:0): Error 6, Unretryable error (da2:umass-sim1:1:0:1): TEST UNIT READY. CDB: 00 00 00 00 00 00 (da2:umass-sim1:1:0:1): CAM status: SCSI Status Error (da2:umass-sim1:1:0:1): SCSI status: Check Condition (da2:umass-sim1:1:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) (da2:umass-sim1:1:0:1): Error 6, Unretryable error in what looks like an infinite loop (there are 4 daX devices on the adapter). The present kernel displaying these errors is FreeBSD 13.0-CURRENT (GENERIC-MMCCAM) #5 main-c255664-g4d64c7243d26: Sat Jan 9 11:27:58 PST 2021 Unplugging the adapter restores normal operation. Rebooting to FreeBSD www.zefox.org 13.0-CURRENT FreeBSD 13.0-CURRENT #3 r361820: Sun Jun 7 22:19:00 PDT 2020 bob@www.zefox.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 exhibits normal behavior, the adapter can be read and written without trouble. As an aside, a Raspberry Pi4 8GB suffers even worse mischief when the adapter is connected, losing communication with the USB root device even after the adapter is unplugged. A power cycle is required to recover. That system is Linux raspberrypi 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux Since it implements onboard WiFi presumably it has some equivalent to MMCCAM. Might this behavior have anything to do with MMCCAM ? Thanks for reading, bob prohaska