<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>freebsd &#8211; Giovanni F. Mazzeo De Santolo</title>
	<atom:link href="https://desantolo.com/tag/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>https://desantolo.com</link>
	<description>That italian IT guy</description>
	<lastBuildDate>Sun, 27 Dec 2020 05:38:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
<site xmlns="com-wordpress:feed-additions:1">123042357</site>	<item>
		<title>FreeBSD/FreeNAS USB_ERR_TIMEOUT fix</title>
		<link>https://desantolo.com/2017/06/freebsd-freenas-usb_err_timeout-fix/</link>
		
		<dc:creator><![CDATA[Giovanni]]></dc:creator>
		<pubDate>Sun, 11 Jun 2017 19:26:20 +0000</pubDate>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[freenas]]></category>
		<guid isPermaLink="false">https://desantolo.com/?p=534</guid>

					<description><![CDATA[As I prepare my migration to my new Debian ZFS system I wanted to backup my zpool onto an external 8TB hard drive. I came across this issue where after plugging in the external USB 3.0 hard drive it would &#8230; <a href="https://desantolo.com/2017/06/freebsd-freenas-usb_err_timeout-fix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>As I prepare my migration to my new Debian ZFS system I wanted to backup my zpool onto an external 8TB hard drive. I came across this issue where after plugging in the external USB 3.0 hard drive it would loop and not work:</p>
<p><span id="more-534"></span><br />
<code>Jun 11 12:15:54 gserver xhci_do_command: Command timeout!<br />
Jun 11 12:15:54 gserver xhci_do_command: Controller reset!<br />
Jun 11 12:15:54 gserver xhci0: Resetting controller<br />
Jun 11 12:15:54 gserver usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignored)<br />
Jun 11 12:15:54 gserver xhci_device_state_change:<br />
Jun 11 12:15:54 gserver ugen0.2: &lt;Unknown&gt; at usbus0 (disconnected)<br />
Jun 11 12:15:54 gserver uhub_reattach_port: could not allocate new device<br />
Jun 11 12:15:54 gserver xhci_root_intr: port 2 changed<br />
Jun 11 12:15:55 gserver xhci_root_intr: port 2 changed<br />
Jun 11 12:15:55 gserver xhci_root_intr: port 4 changed<br />
Jun 11 12:15:55 gserver xhci_ep_clear_stall:<br />
Jun 11 12:15:55 gserver xhci_cmd_enable_slot:<br />
Jun 11 12:15:55 gserver xhci_do_command: Command timeout!<br />
Jun 11 12:15:55 gserver xhci_reset_command_queue_locked:<br />
Jun 11 12:15:55 gserver xhci_reset_command_queue_locked: Command ring running<br />
Jun 11 12:15:55 gserver xhci_reset_command_queue_locked: CRCR=0x00000000057cfd80<br />
Jun 11 12:15:55 gserver xhci_do_command: Command timeout!<br />
Jun 11 12:15:55 gserver xhci_do_command: Controller reset!<br />
Jun 11 12:15:55 gserver usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignored)<br />
Jun 11 12:15:55 gserver xhci_device_state_change:<br />
Jun 11 12:15:55 gserver ugen0.2: &lt;Unknown&gt; at usbus0 (disconnected)<br />
Jun 11 12:15:55 gserver uhub_reattach_port: could not allocate new device<br />
Jun 11 12:15:55 gserver uhub0: at usbus0, port 1, addr 1 (disconnected)<br />
Jun 11 12:15:55 gserver xhci_set_hw_power:<br />
Jun 11 12:15:55 gserver xhci_set_hw_power_sleep: Stopping the XHCI<br />
Jun 11 12:15:55 gserver xhci_halt_controller:<br />
Jun 11 12:15:55 gserver xhci_set_hw_power_sleep: Starting the XHCI<br />
Jun 11 12:15:55 gserver xhci_start_controller:<br />
Jun 11 12:15:56 gserver xhci_start_controller: CONFIG=0x00000000 -&gt; 0x00000020<br />
Jun 11 12:15:56 gserver xhci_start_controller: ERSTSZ=0x00000000 -&gt; 0x00000001<br />
Jun 11 12:15:56 gserver xhci_start_controller: ERDP(0)=0x00000000057cf080<br />
Jun 11 12:15:56 gserver xhci_start_controller: ERSTBA(0)=0x00000000057cf000<br />
Jun 11 12:15:56 gserver xhci_start_controller: CRCR=0x00000000057cfd80<br />
Jun 11 12:15:56 gserver xhci_set_hw_power:<br />
Jun 11 12:15:56 gserver uhub0: &lt;0x1912 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1&gt; on usbus0<br />
Jun 11 12:15:56 gserver uhub0: 4 ports with 4 removable, self powered<br />
Jun 11 12:15:56 gserver xhci_set_hw_power:<br />
Jun 11 12:15:56 gserver xhci_root_intr: port 2 changed<br />
Jun 11 12:15:56 gserver xhci_root_intr: port 4 changed<br />
Jun 11 12:15:56 gserver xhci_ep_clear_stall:<br />
Jun 11 12:15:56 gserver xhci_cmd_enable_slot:<br />
Jun 11 12:15:57 gserver xhci_do_command: Command timeout!<br />
</code><br />
Trying the following without rebooting did not work</p>
<p>[root@gserver] ~# sysctl hw.usb.xhci.xhci_port_route=-1</p>
<p>I enabled debugging to get the logs:</p>
<p>[root@gserver] ~# sysctl hw.usb.xhci.debug=1</p>
<p>Apparently we need to add this to: /boot/loader.conf and reboot then try again.</p>
<p><code># Workaround desantolo.com USB3 loop<br />
sysctl hw.usb.xhci.xhci_port_route=-1</code></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">534</post-id>	</item>
	</channel>
</rss>
