Bug #743

problems with NATA + EHCI + USB harddisk

Added by swildner over 7 years ago. Updated almost 3 years ago.

Status:ClosedStart date:
Priority:HighDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Hi,

I got curious about Alexander Shiryaev's USB harddisk bug and just
upgraded my system on a USB harddisk to HEAD. It shows some different
behavior here:

All works unless I use _both_ EHCI and NATA. Either one will work fine
alone but used together will result in da0 (the USB harddisk) not being
detected upon boot, ending on the mountroot> prompt.

Sascha

History

#1 Updated by dillon over 7 years ago

:Hi,
:
:I got curious about Alexander Shiryaev's USB harddisk bug and just
:upgraded my system on a USB harddisk to HEAD. It shows some different
:behavior here:
:
:All works unless I use _both_ EHCI and NATA. Either one will work fine
:alone but used together will result in da0 (the USB harddisk) not being
:detected upon boot, ending on the mountroot> prompt.
:
:Sascha
:
:--
:http://yoyodyne.ath.cx

I've seen this too. If I load EHCI as a module da0 doesn't get detected
at boot time.

There's some sort of timing issue. I'm certain it's not NATA's fault
but instead it is an issue with assumptions the USB code makes when
EHCI is present. EHCI has to take over the OHCI driver and its a real
mess (and badly designed).

-Matt
Matthew Dillon
<>

#2 Updated by swildner over 7 years ago

Hmm, strange that old ATA and EHCI work fine, though.

Sascha

#3 Updated by dillon about 7 years ago

I've spent all day trying to make EHCI work at boot time. There are
all sorts of ordering problems, too many to be able to fix it for this
release. Even making little changes I managed to cause my test box to
hang so this is going to have to wait until after the release.

I am going to try to figure out what vinum is doing now.

-Matt

#4 Updated by swildner almost 5 years ago

I just tried this again, and with 2.5.1, it works for me. The laptop boots fine
from a USB drive using nata(4) and with ehci(4) loaded. da8 is detected and the
boot proceeds normally.

Sascha

#5 Updated by alexh almost 5 years ago

Based on the fact that this is a 'works for me' from the original bug
reporter, I'm closing this.

Cheers,
Alex Hornung

#6 Updated by swildner almost 5 years ago

Sorry, I'm re-opening this again.

I've tried it on another laptop and unfortunately the drive was not recognized
there.

#7 Updated by swildner almost 3 years ago

  • Description updated (diff)
  • Status changed from New to Closed
  • Assignee deleted (0)

Closing now for real. I recently tested booting off a USB HDD with ehci and nata and it worked.

Also available in: Atom PDF