From owner-freebsd-arm@freebsd.org Sat Apr 17 01:58:33 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 263395E9869 for ; Sat, 17 Apr 2021 01:58:33 +0000 (UTC) (envelope-from freebsd-arm@darkain.com) Received: from MTA-07-4.privateemail.com (mta-07-4.privateemail.com [68.65.122.27]) (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 4FMbpJ0phCz3Nk4 for ; Sat, 17 Apr 2021 01:58:31 +0000 (UTC) (envelope-from freebsd-arm@darkain.com) Received: from MTA-07.privateemail.com (localhost [127.0.0.1]) by MTA-07.privateemail.com (Postfix) with ESMTP id 3AD1160051 for ; Fri, 16 Apr 2021 21:58:30 -0400 (EDT) Received: from mail-lf1-f41.google.com (unknown [10.20.151.210]) by MTA-07.privateemail.com (Postfix) with ESMTPA id C6FCC6004B for ; Fri, 16 Apr 2021 21:58:29 -0400 (EDT) Received: by mail-lf1-f41.google.com with SMTP id f41so24205784lfv.8 for ; Fri, 16 Apr 2021 18:58:29 -0700 (PDT) X-Gm-Message-State: AOAM530+0L5F51j5tZIeCqw+voHqndhn8fOu6pEX+5ezbeuAlXomALRs tt9Y1Nr9MuxUak04vJF/BtftogT7NHJ/wMA+fxo= X-Google-Smtp-Source: ABdhPJw6PlVaoSc/HZF58M3nWWoaC2gqbT1h1ym8Ow6etWajYzwwqriLMTsEhyAsHDMyHKCpoIlZHyTXFV0JcHKig6A= X-Received: by 2002:a05:6512:1044:: with SMTP id c4mr4878615lfb.198.1618624704354; Fri, 16 Apr 2021 18:58:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Vincent Milum Jr Date: Fri, 16 Apr 2021 18:58:12 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: RPi 4B USB 3 support appears to still be broken in 13.0-RELEASE To: Robert Clausecker Cc: freebsd-arm@freebsd.org X-Virus-Scanned: ClamAV using ClamSMTP X-Rspamd-Queue-Id: 4FMbpJ0phCz3Nk4 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-arm@darkain.com designates 68.65.122.27 as permitted sender) smtp.mailfrom=freebsd-arm@darkain.com X-Spamd-Result: default: False [-1.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:68.65.122.0/27]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[darkain.com]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; SPAMHAUS_ZRD(0.00)[68.65.122.27:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[68.65.122.27:from]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[68.65.122.27:from]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:22612, ipnet:68.65.122.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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, 17 Apr 2021 01:58:33 -0000 What's the power source for the hard drive? From your bug tracker link, it looks like this is a SSD of some kind, not a USB thumb drive. It is possible that the drive is pulling too much power for the Pi's USB port to handle. Remember that the Pi's power source is ALSO a USB port, so that power is then shared between both the Pi as well as any devices plugged into it. Power brownouts from pulling too much power on the Pi can present themselves in a number of ways, including CAM errors for disks. On Fri, Apr 16, 2021 at 4:00 PM Robert Clausecker wrote: > Greetings! > > Last time I experimented with ZFS on the RPi 4B, I noticed that > there is a strange problem when attaching the zpool via USB 3 as > opposed to USB 2. When doing that, mounting root fails with > IO errors like these: > > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 03 c1 b9 65 00 00 07 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command, 3 more tries remain > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 03 c1 b9 65 00 00 07 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command, 2 more tries remain > > Attaching the boot disk through USB 2 instead works. Likewise, > using USB 3 with a UFS root file system works (and in fact ran fine > in a development system for months). I do not understand this. > > I had previously reported this issue as PR 249520: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249520 > > There's some stuff about UEFI booting in there which you can ignore. > The same problem also appears when booting via U-Boot. > > Now what surprises me is that this issue still occurs with > FreeBSD 13.0-RELEASE. So whatever fixes had been performed > did not seem to address the underlying problem at all. > > Is there any workaround or solution (except for ditching root > on ZFS which would be rather painful for my use case?) > > Yours, > Robert Clausecker > > -- > () ascii ribbon campaign - for an 8-bit clean world > /\ - against html email - against proprietary attachments > _______________________________________________ > 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" >