From nobody Tue Apr 12 09:16:02 2022 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 EEC3411E68E0 for ; Tue, 12 Apr 2022 09:15:08 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kd0Rw17fvz3j8M for ; Tue, 12 Apr 2022 09:15:08 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-ej1-x636.google.com with SMTP id l7so30601123ejn.2 for ; Tue, 12 Apr 2022 02:15:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bFSNv5q39P+q4OlfhKZIevLrgeqrtexoZ+b/8GRgH2A=; b=dTSgT91CVYtUuju5zUJE/gdtCLhh5GHFPUlpGD48huIW1/WlNxoVIqIJKiswvvi97R aQ6NT3UEimUvFGNprUrJ8LDnE4E52sy198nMpJ43AFcGw1sa3vus57bXVbG4yWUdE3JC /JY2REMCEi+WDIYcn92juXesMx+3W4aF0j7ztAkhRbJmnDRUUGTSOqHSagdUb73/cO0L mbDsobmFzh8PDluTBPjw31rXp8br9wXPRGc+vvPZZ+gvDaSh2n4ehDlQAbN2BaPfn7qB +6gYDSSLeDzd2HCJjkPsu1k4NedUx+5EmVyfP2t4+8pVMedF0Khgp1UOwq+DbElKCwLO A/Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bFSNv5q39P+q4OlfhKZIevLrgeqrtexoZ+b/8GRgH2A=; b=MVWWAoC5a4Z6R8AiqboBmjpvVA/cXEF8bkqO8YJyryUbaWY1qX+sC9vxvR1sbsdsZb sauz3/R1CXhFtVfa1ovDtu8LQgTajBKZ75n5Bdt2EwbAW9jTHi/nyleQbtf1AzHb6Gm7 gBZOnkPQDTTAjJEm6qUXFyyKphFW6n2F0VAV9s1PWzSQInMMxoR8wzMnEayT4feL9lpp s8xbGeL/fJlFm5gJqvz84e45j3aegVs8xXWKGygxv0K4EtKQMPt8rstrwdM+d8s487fa /MQfAq5bCJCFkcOPfzmM75qDKfVAxTRnt7yEPNeFds5lZd353d3x2eQDoB2HnFAlA3ZB DzAg== X-Gm-Message-State: AOAM531byEP+opeSvGfzzT+tuadxjyeNUZL1QDU3j+J7CU8tVNIG+PZC Ud+8bsEzh0JcNp0AaDXCzw4uKId2GJxGRTLPDif2X+5ARVE= X-Google-Smtp-Source: ABdhPJwxLMm/l/doryddTs3oGqGHkVay6riUU6wMH5q5G6mo/KBDqXdf7z+TJB/mFrHe+274GVXOMP4kubRjWkkvkEA= X-Received: by 2002:a17:907:a41f:b0:6d6:f925:1696 with SMTP id sg31-20020a170907a41f00b006d6f9251696mr34367536ejc.62.1649754907122; Tue, 12 Apr 2022 02:15:07 -0700 (PDT) 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 References: <5deaf68b-267c-56dd-603d-8ec0d82ceae2@selasky.org> <8dc68431-ad3d-84db-45b4-cd661d4a15df@selasky.org> In-Reply-To: <8dc68431-ad3d-84db-45b4-cd661d4a15df@selasky.org> From: Archimedes Gaviola Date: Tue, 12 Apr 2022 17:16:02 +0800 Message-ID: Subject: Re: Raspberry Pi 3B Over-current USB To: Hans Petter Selasky Cc: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="000000000000349e6605dc717f72" X-Rspamd-Queue-Id: 4Kd0Rw17fvz3j8M X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=dTSgT91C; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedesgaviola@gmail.com designates 2a00:1450:4864:20::636 as permitted sender) smtp.mailfrom=archimedesgaviola@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::636:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Status: O Content-Length: 3803 Lines: 90 --000000000000349e6605dc717f72 Content-Type: text/plain; charset="UTF-8" On Mon, Apr 11, 2022 at 9:59 PM Hans Petter Selasky wrote: > On 4/11/22 15:59, Archimedes Gaviola wrote: > > Hi Hans, > > > > Noted on the self-powered hub, thanks for the suggestion, I will try. > > > > Just wanted to share the observation from the testing I've conducted with > > my Raspberry Pi 4B with the same 14.0-CURRENT to check if overcurrent is > > also experienced and it did, there was overcurrent and each ports' power > > shut-off during the situation but it was able to recover back. I > initiated > > the command 'usbconfig reset' and each port gloriously came back alive > one > > by one and loaded my USB keyboard and Prolific uplcom(4) drivers into > > functional and operational states. My measuring device is showing the > same > > amount of current 460mA while the voltage stayed at 5.05 from a baseline > of > > 5.15 voltshttps://filebin.net/10vy575q6h2yl8og. Unlike my RPi 3B, > voltage > > dropped to 4.93 from a baseline of 5.19 volts. So, the difference I > > observed is when the voltage dropped below 5, the system will not give a > > chance to make the ports come back alive as a sort of protection > mechanism. > > Sharing to you the logs below (with hw.usb.uhub.debug=1). > > FreeBSD does not actively check and use "bMaxPower" . > Hi Hans, It's okay, just tried your recommendation on a self-powered USB hub, my Prolific device is now working. Thanks a lot! Archimedes --000000000000349e6605dc717f72 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Apr 11, 2022 at 9:59 PM Hans = Petter Selasky <hps@selasky.org&g= t; wrote:
On 4/1= 1/22 15:59, Archimedes Gaviola wrote:
> Hi Hans,
>
> Noted on the self-powered hub, thanks for the suggestion, I will try.<= br> >
> Just wanted to share the observation from the testing I've conduct= ed with
> my Raspberry Pi 4B with the same 14.0-CURRENT to check if overcurrent = is
> also experienced and it did, there was overcurrent and each ports'= power
> shut-off during the situation but it was able to recover back. I initi= ated
> the command 'usbconfig reset' and each port gloriously came ba= ck alive one
> by one and loaded my USB keyboard and Prolific uplcom(4) drivers into<= br> > functional and operational states. My measuring device is showing the = same
> amount of current 460mA while the voltage stayed at 5.05 from a baseli= ne of
> 5.15 voltshttps://filebin.net/10vy575q6h2yl8og. Unlike = my RPi 3B, voltage
> dropped to 4.93 from a baseline of 5.19 volts. So, the difference I > observed is when the voltage dropped below 5, the system will not give= a
> chance to make the ports come back alive as a sort of protection mecha= nism.
> Sharing to you the logs below (with hw.usb.uhub.debug=3D1).

FreeBSD does not actively check and use "bMaxPower" .

Hi Hans,
It's okay, just tried your recommenda= tion on a self-powered USB hub, my Prolific device is now working. Thanks a= lot!

= Archimedes
--000000000000349e6605dc717f72--