From owner-freebsd-usb@freebsd.org Tue Apr 2 06:22:55 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E75E51558CA6 for ; Tue, 2 Apr 2019 06:22:54 +0000 (UTC) (envelope-from mail@florian-schulze.net) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 9FB55759F7 for ; Tue, 2 Apr 2019 06:22:53 +0000 (UTC) (envelope-from mail@florian-schulze.net) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id BA9BB21E5F; Tue, 2 Apr 2019 02:22:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 02 Apr 2019 02:22:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= florian-schulze.net; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=fm3; bh=9+yq9WRy7S6QSA1VZe2SEmGHgY oFwiVda5wrYtSdrcQ=; b=GhHPQO1kYfgM0QxyqpeMJjS4DSfA/KOke6cOcmCasA 8ZMaybHoiPHfaw5rsBtlab6Y2CxdDVP6J/SLfAUsfLKc8ypH8s9uNCn8EcHEeifp 8hb+JuuPs7p4ggyZ/a3vkLclLlW6hR2iQ4T82+WsIz+Ius5klp76Z2mWd/5eVINB 5uf+DSSlf3XvnB0Rld/Cklhm2AOzWKir1yFcGjpRuG+6g8a7vK+EgV5PB8ljOru6 6LkMpOdBk35q8E0r2E6IpYU/FCAOgnuPlu6SqlsEeNvkVlWw6RDtn6sBogGP+53O FpbC+qVov45g/DHlr6pV8r09jE2B0NdmN1VxKgtY2JAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=9+yq9WRy7S6QSA1VZe2SEmGHgYoFwiVda5wrYtSdr cQ=; b=E+/k2WqWjV58S5aG9UCEzoP7KHs0Z7+XVqFgUeiP0lhvixYCXqt+EQGyg OOur3vtAVHP/1MCyEThnq4vlZCwjYdAXZ7oeETFHvYlxblWBx7dGeAkfAHxm9SJC cbrB8qatIc1OEHwU3kZRtHl0bp5mc9SRKQBVdfrtRIa3LzV/pAnUDQnTx4HscLvp KZMVI1zTvQ1FNRHhJzQ/BUojk1f1GnwolPGQwfp27WATx3DsWDLotkT/vmzFYCvf xi2VjPaTgCzRG3/x5uuPnm+sJ+aTb0nBZyZH7aJIbvIBGoKiv54VN/OVXnsO9CZK e6bveFb4RaVhzkHSI6gd0Z03US3nA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrleehgddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffokfgjfhggtgfgsehtke hmtdertdejnecuhfhrohhmpedfhfhlohhrihgrnhcuufgthhhulhiivgdfuceomhgrihhl sehflhhorhhirghnqdhstghhuhhliigvrdhnvghtqeenucffohhmrghinhepvghhtghird hnohenucfkphepkeegrddukeegrddujedurddufeenucfrrghrrghmpehmrghilhhfrhho mhepmhgrihhlsehflhhorhhirghnqdhstghhuhhliigvrdhnvghtnecuvehluhhsthgvrh fuihiivgeptd X-ME-Proxy: Received: from [192.168.56.1] (unknown [84.184.171.13]) by mail.messagingengine.com (Postfix) with ESMTPA id 323CF100E5; Tue, 2 Apr 2019 02:22:51 -0400 (EDT) From: "Florian Schulze" To: "Hans Petter Selasky" Cc: freebsd-usb@freebsd.org Subject: Re: USB issues with 12.0 Date: Tue, 02 Apr 2019 08:22:48 +0200 X-Mailer: MailMate (1.12.4r5594) Message-ID: In-Reply-To: References: <74A35CD5-8D89-48B8-95AD-85108E98B39E@florian-schulze.net> <429667b1-a5af-bb05-9927-f51e0a936323@selasky.org> <730B2CAC-E43A-48B6-BE38-632944023C35@florian-schulze.net> <26abd10e-a98b-215a-3355-fa104f76efcf@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Autocrypt: addr=mail@florian-schulze.net; keydata=mQENBFliSUoBCADLKPuy1qhTI+A3XRleyZ7WlXhRfYiXBCSMiIqUb+nx88xKLVAclRJqMnqlJHzAJcb4JW9i3riRU+V1rVG9BDaBCCih5Si0BQO5W84SpaadTdcE3rUO8Ihdxc6dJN9DiAtp26WyO1fXSA2NkwpakIerxlF91knkrnSa/VgLrlB+Ahtcisbsn9XYSnv0wr/njQJOfJMsmJfWAKXWWaWDWb0Z4/UITsBe259Ppkf6bTYS3j7oCPqygPzdyc14ILINb0N3ksT3tKLiS4b2gh7RAO4uf/C8TvlZSYvoX/sel5xFFxcgmqG+V0d4jjhdvY5zFHU+/Egr5y3HPgSQjevEHsNxABEBAAG0KkZsb3JpYW4gU2NodWx6ZSA8bWFpbEBmbG9yaWFuLXNjaHVsemUubmV0PokBOQQTAQgAIwUCWWJJSgIbAwcLCQgHAwIBBhUIAgkKCwQWAgMBAh4BAheAAAoJEC0N2jSLcB7qWo4H/jEgS6Id1TkRtlh+vZanpswS83sH8pOfc20qHbPEM2a1pk9aEgvvnckaeLiGVYaHKZccxRaE2E6zGKW26sI5WPcMehCZkiYf4zxfoppWsWDIGAsuptByHT+etkQVEANwNdDM5hIn4Hq0e6gsH1zu68SBhH4FtW4+ukCK3WrHZ0QJBoECU1otWxhP5BqOO8h9OCY2vESxHC2nH+y3vsqVL43JQWmBUv7uaaX4OusdWUZCW8jlYnWd//cmt3RKHh4PCKY7JK0itzoUi+DnnHBN7jxz2FFjX3+BinUeZX3bpXQhw3Xsv1ZXW9aeyGLgzYOuLdBSXmXJcetyJ0heCrOwZUS5AQ0EWWJJSgEIANlJdoChOEMMB7vh3YB0HjrBpK2+iyWC1Y1VCWOpKg/PiYq5GmZDMh1SGq+s/3ZVG5kAYcSKqdHSBqC8sRjY/gU/hysR3w9IU0J5/j1jTFZsw09vTfloEVRAJaAEyOAKvgUw+ fwiGhJsJPS9W8dqieVovqft5DpzNIBztPJxfiDrlHvKbxrwyCEW9+EAHMVJf7F6wqp0rAnlxZQujasL7Urx1Kl0RKT9HT8QHyzTJFpbpuO0hApiWCWD5GCy3AIc0KK3jJIz3ODCVFSGhbLiV0j9FB4j3wmM5JSvsyMhLZAkaFy/kqmlaVeroLWMBbmKUfEA968b37O+kILc3iXYQmMAEQEAAYkBHwQYAQgACQUCWWJJSgIbDAAKCRAtDdo0i3Ae6oyuB/4rh42bgTYncPkMv0l9jsKTB61wwe2Imxfxd52Gk3Ev5slaSFYl2r2FwhTFCX5Ay5XXqoueIG2AlZY2do7jnuLW66dye4GAI67PgKkZfzWJqD+q3bOimnmdlyKM1x2AxGnwPBEdjc4sShFm/uPOPPGJu4f8I9PKjGI62RJUCGHN9KxYJclomhNYe6n1xDsF0e3lDEtWn+KL1WesHO/NY2Mv//qGs9dqIu7rdAXrXiBQaSUz8ol0o4Z924qEWX+23tlWn3XLZPbFPJAB8sPHKWapt3nR/zaPJqfqkqwKWnWFdiKaKIB9GhlXmBlq+0alpjNjbicGlOF1YGF4agbFyoCb X-Rspamd-Queue-Id: 9FB55759F7 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=florian-schulze.net header.s=fm3 header.b=GhHPQO1k; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=E+/k2WqW; spf=pass (mx1.freebsd.org: domain of mail@florian-schulze.net designates 66.111.4.26 as permitted sender) smtp.mailfrom=mail@florian-schulze.net X-Spamd-Result: default: False [-6.90 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[florian-schulze.net:s=fm3,messagingengine.com:s=fm2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.26]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[florian-schulze.net]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: in2-smtp.messagingengine.com]; DKIM_TRACE(0.00)[florian-schulze.net:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.90)[-0.899,0]; IP_SCORE(-3.40)[ip: (-8.94), ipnet: 66.111.4.0/24(-4.60), asn: 11403(-3.38), country: US(-0.06)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[26.4.111.66.list.dnswl.org : 127.0.5.1] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Apr 2019 06:22:55 -0000 On 1 Apr 2019, at 16:31, Hans Petter Selasky wrote: > On 4/1/19 4:01 PM, Florian Schulze wrote: >>> What exact PCI models of xhci/ehci/ohci and uhci have you got? >>> pciconf -lv >> >> The following all is with 10.3. Can't reboot at the moment to try >> with 12.0. Maybe tomorrow morning. This is a HP ProLiant Microserver >> Gen7 N54L. >> >> ohci0@pci0:0:18:0:    class=0x0c0310 card=0x1609103c >> chip=0x43971002 rev=0x00 hdr=0x00 >>     vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]' >>     device     = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller' >>     class      = serial bus >>     subclass   = USB >> ehci0@pci0:0:18:2:    class=0x0c0320 card=0x1609103c >> chip=0x43961002 rev=0x00 hdr=0x00 >>     vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]' >>     device     = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller' >>     class      = serial bus >>     subclass   = USB >> ohci1@pci0:0:19:0:    class=0x0c0310 card=0x1609103c >> chip=0x43971002 rev=0x00 hdr=0x00 >>     vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]' >>     device     = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller' >>     class      = serial bus >>     subclass   = USB >> ehci1@pci0:0:19:2:    class=0x0c0320 card=0x1609103c >> chip=0x43961002 rev=0x00 hdr=0x00 >>     vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]' >>     device     = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller' >>     class      = serial bus >>     subclass   = USB >> ohci2@pci0:0:22:0:    class=0x0c0310 card=0x1609103c >> chip=0x43971002 rev=0x00 hdr=0x00 >>     vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]' >>     device     = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller' >>     class      = serial bus >>     subclass   = USB >> ehci2@pci0:0:22:2:    class=0x0c0320 card=0x1609103c >> chip=0x43961002 rev=0x00 hdr=0x00 >>     vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]' >>     device     = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller' >>     class      = serial bus >>     subclass   = USB The above is exactly the same with 12.0. >> ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL >> (12Mbps) pwr=SAVE (0mA) >> ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH >> (480Mbps) pwr=SAVE (0mA) >> ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL >> (12Mbps) pwr=SAVE (0mA) >> ugen5.1: at usbus5, cfg=0 md=HOST spd=HIGH >> (480Mbps) pwr=SAVE (0mA) >> ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL >> (12Mbps) pwr=SAVE (0mA) >> ugen3.1: at usbus3, cfg=0 md=HOST spd=HIGH >> (480Mbps) pwr=SAVE (0mA) >> ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH >> (480Mbps) pwr=SAVE (100mA) >> ugen1.2: > fsl-usb2-udc> at usbus1, cfg=1 md=HOST spd=HIGH (480Mbps) pwr=ON >> (2mA) >> ugen3.3: at usbus3, cfg=0 md=HOST spd=HIGH >> (480Mbps) pwr=ON (20mA) >> ugen3.4: at usbus3, cfg=0 md=HOST >> spd=FULL (12Mbps) pwr=ON (500mA) Only difference is that the text for the Kindle is rearranged: ugen1.2: at usbus1, cfg=1 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA) >>> It might be the host controller driver needs a quirk. See: >>> sysctl -a hw.usb | grep hci >> >> hw.usb.xhci.dma32: 0 >> hw.usb.xhci.use_polling: 0 >> hw.usb.xhci.xhci_port_route: 0 >> hw.usb.xhci.debug: 0 >> hw.usb.xhci.streams: 0 >> hw.usb.uhci.loop: 0 >> hw.usb.uhci.debug: 0 >> hw.usb.ohci.debug: 0 >> hw.usb.ehci.lostintrbug: 0 >> hw.usb.ehci.iaadbug: 0 >> hw.usb.ehci.no_hs: 0 >> hw.usb.ehci.debug: 0 hw.usb.xhci.ctlstep: 0 hw.usb.xhci.dma32: 0 hw.usb.xhci.use_polling: 0 hw.usb.xhci.xhci_port_route: 0 hw.usb.xhci.debug: 0 hw.usb.xhci.streams: 0 hw.usb.uhci.loop: 0 hw.usb.uhci.debug: 0 hw.usb.ohci.debug: 0 hw.usb.ehci.lostintrbug: 0 hw.usb.ehci.iaadbug: 0 hw.usb.ehci.no_hs: 0 hw.usb.ehci.debug: 0 > Basically there are very few changes in the EHCI/OHCI drivers between > 10.3 and 12.0 . Does re-plugging the USB device make it appear again? It creates messages via dmesg, but doesn't create ttyU0 and ue0: First the Hub with the Arduino: ugen3.2: at usbus3 (disconnected) uhub6: at uhub3, port 1, addr 2 (disconnected) ugen3.3: at usbus3 (disconnected) ukbd0: at uhub6, port 1, addr 3 (disconnected) ukbd0: detached ugen3.4: at usbus3 (disconnected) uhub6: detached ugen3.2: at usbus3 uhub6 on uhub3 uhub6: on usbus3 uhub6: MTT enabled uhub6: 5 ports with 5 removable, self powered ugen3.3: at usbus3 ukbd0 on uhub6 ukbd0: on usbus3 kbd2 at ukbd0 ugen3.4: at usbus3 Then the Kindle (directly attached to the NAS): ugen1.2: at usbus1 (disconnected) ugen1.2: at usbus1 > If you don't see any messages like "failed to enumerate" ... it means > the device is not visible at all to the USB host controller. Changing > values under: > > sysctl -a hw.usb.timings Timings in 10.3: hw.usb.timings.extra_power_up_time: 20 hw.usb.timings.resume_recovery: 50 hw.usb.timings.resume_wait: 50 hw.usb.timings.resume_delay: 250 hw.usb.timings.set_address_settle: 10 hw.usb.timings.port_resume_delay: 40 hw.usb.timings.port_powerup_delay: 300 hw.usb.timings.port_reset_recovery: 250 hw.usb.timings.port_root_reset_delay: 250 hw.usb.timings.port_reset_delay: 50 And in 12.0: hw.usb.timings.extra_power_up_time: 20 hw.usb.timings.resume_recovery: 50 hw.usb.timings.resume_wait: 50 hw.usb.timings.resume_delay: 250 hw.usb.timings.set_address_settle: 10 hw.usb.timings.port_resume_delay: 40 hw.usb.timings.port_powerup_delay: 300 hw.usb.timings.port_reset_recovery: 250 hw.usb.timings.port_root_reset_delay: 200 hw.usb.timings.port_reset_delay: 50 I tried increasing the port_root_reset_delay to 250 as in 10.3, but that didn't change anything. > Might affect the situation. In 12.0 there is a new system wide feature > called early AP startup, which kicks multithreading much earlier. > Maybe it affects the boot timing somehow. > > When FreeBSD 12.0 is booted, you might also want to try to do a reset > on the HUB, where I guess all devices are connected: > > usbconfig -d X.Y reset > > where X.Y are the numbers in ugenX.Y . Didn't change anything. Regards, Florian Schulze