From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C6EE7C64EC4 for ; Fri, 3 Mar 2023 17:47:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 642AD85D5F; Fri, 3 Mar 2023 18:47:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinet.cat Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id CEE9085D6C; Fri, 3 Mar 2023 18:47:49 +0100 (CET) Received: from mx1.tinet.cat (mx1.tinet.cat [195.77.216.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 43EB485CF6 for ; Fri, 3 Mar 2023 18:47:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinet.cat Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xdrudis@tinet.cat X-ASG-Debug-ID: 1677865665-163e7b02862ebc0001-4l7tJC Received: from smtp01.tinet.cat (smtp01.tinet.cat [195.77.216.131]) by mx1.tinet.cat with ESMTP id yKAJkPWBApyorQcF; Fri, 03 Mar 2023 18:47:45 +0100 (CET) X-Barracuda-Envelope-From: xdrudis@tinet.cat X-Barracuda-Effective-Source-IP: smtp01.tinet.cat[195.77.216.131] X-Barracuda-Apparent-Source-IP: 195.77.216.131 Received: from xdrudis.tinet.cat (9.red-79-152-187.dynamicip.rima-tde.net [79.152.187.9]) by smtp01.tinet.cat (Postfix) with ESMTPSA id 6D551605D0AC; Fri, 3 Mar 2023 18:47:45 +0100 (CET) Date: Fri, 3 Mar 2023 18:47:44 +0100 From: Xavier Drudis Ferran To: Christoph Fritz Cc: u-boot@lists.denx.de Subject: can't reproduce XHCI hang in Rock Pi 4 Message-ID: X-ASG-Orig-Subj: can't reproduce XHCI hang in Rock Pi 4 References: <5d158190ee4e5da9e34b377331da338af6223eef.camel@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Barracuda-Connect: smtp01.tinet.cat[195.77.216.131] X-Barracuda-Start-Time: 1677865665 X-Barracuda-URL: https://webmail.tinet.cat:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 4828 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=6.0 KILL_LEVEL=8.0 tests=DRUGS_MUSCLE X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.105528 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 DRUGS_MUSCLE Refers to a muscle relaxant X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean I'm sorry but I haven't been able to reproduce your issue. El Fri, Mar 03, 2023 at 11:26:46AM +0100, Xavier Drudis Ferran deia: > El Fri, Mar 03, 2023 at 10:42:20AM +0100, Christoph Fritz deia: >=20 > Unfortunately I don't think I have any usb-ethernet dongle here to test... >=20 [...] > > =3D> usb stop > > stopping USB.. > > =3D> usb start > > starting USB... > > Bus usb@fe380000: USB EHCI 1.00 > > Bus usb@fe3c0000: USB EHCI 1.00 > > Bus usb@fe800000: Register 2000140 NbrPorts 2 > > Starting the controller > > USB XHCI 1.10 > > Bus usb@fe900000: Register 2000140 NbrPorts 2 > > Starting the controller > > USB XHCI 1.10 > > scanning bus usb@fe380000 for devices... 4 USB Device(s) found > > scanning bus usb@fe3c0000 for devices... 1 USB Device(s) found > > scanning bus usb@fe800000 for devices... 3 USB Device(s) found > > scanning bus usb@fe900000 for devices... 1 USB Device(s) found > > scanning usb for storage devices... 0 Storage Device(s) found > > =3D> usb tree > > USB device tree: > > 1 Hub (480 Mb/s, 0mA) > > | u-boot EHCI Host Controller > > | > > +-2 Hub (480 Mb/s, 100mA) > > | USB2.0 Hub > > | > > +-3 Hub (480 Mb/s, 0mA) > > | VIA Labs, Inc. USB2.0 Hub > > | > > +-4 Human Interface (12 Mb/s, 400mA) > > ILITEK ILITEK-TP > >=20 > > 1 Hub (480 Mb/s, 0mA) > > u-boot EHCI Host Controller > >=20 > > 1 Hub (5 Gb/s, 0mA) > > | U-Boot XHCI Host Controller > > | > > +-2 Hub (5 Gb/s, 0mA) > > | VIA Labs, Inc. USB3.0 Hub > > | > > +-3 Vendor specific (5 Gb/s, 36mA) > > Realtek USB 10/100/1000 LAN 00E04C68034E > >=20 > > 1 Hub (5 Gb/s, 0mA) > > U-Boot XHCI Host Controller > > >=20 I tried with a USB3 hub connected to a usb3 port, a sata adapter connected to the USB3 hub, and a SATA disk connected to the SATA adapter, and I could read the disk. The difference is that in my tree both the USB2 and the USB 3 hub hang from the XHCI controller, not one from EHCI and one from XHCI. This with my v5 patches on top of 4eb7c5030d3f3c70 (2023-02-19) and some minor config changes that don't seem to matter. =3D> usb start starting USB... Bus usb@fe380000: USB EHCI 1.00 Bus usb@fe3c0000: USB EHCI 1.00 Bus usb@fe800000: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus usb@fe900000: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb@fe380000 for devices... 1 USB Device(s) found scanning bus usb@fe3c0000 for devices... 1 USB Device(s) found scanning bus usb@fe800000 for devices... 4 USB Device(s) found scanning bus usb@fe900000 for devices... 1 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found =3D> usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller=20 =20 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller=20 =20 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller=20 | |=08+-2 Hub (5 Gb/s, 0mA) | | GenesysLogic USB3.0 Hub=20 | | | |=08+-4 Mass Storage (5 Gb/s, 24mA) | Prolific Technology Inc. ATAPI-6 Bridge Controller 012345678900000= 0005 | =20 |=08+-3 Hub (480 Mb/s, 100mA) GenesysLogic USB2.0 Hub=20 =20 1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller=20 =20 =3D> ls usb 0 4096 . 4096 .. 16384 lost+found 4096 var 12288 etc [...] =3D> usb stop stopping USB.. =3D> usb start starting USB... Bus usb@fe380000: USB EHCI 1.00 Bus usb@fe3c0000: USB EHCI 1.00 Bus usb@fe800000: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus usb@fe900000: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb@fe380000 for devices... 1 USB Device(s) found scanning bus usb@fe3c0000 for devices... 1 USB Device(s) found scanning bus usb@fe800000 for devices... 4 USB Device(s) found scanning bus usb@fe900000 for devices... 1 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found =3D> usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller=20 =20 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller=20 =20 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller=20 | |=08+-2 Hub (480 Mb/s, 100mA) | GenesysLogic USB2.0 Hub=20 | =20 |=08+-3 Hub (5 Gb/s, 0mA) | GenesysLogic USB3.0 Hub=20 | |=08+-4 Mass Storage (5 Gb/s, 24mA) Prolific Technology Inc. ATAPI-6 Bridge Controller 012345678900000= 0005 =20 1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller=20 =20 =3D> [no hang] I don't know how to help, maybe just try to increase log verbosity or somet= hing... Sorry -- Xavier Drudis Ferran