[haiku-bugs] Re: [Haiku] #11019: Boot fail with SATA card and drive attached but not used by Haiku

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Fri, 25 Jul 2014 09:49:19 -0000

#11019: Boot fail with SATA card and drive attached but not used by Haiku
----------------------------------+----------------------------
   Reporter:  jstressman          |      Owner:  bonefish
       Type:  bug                 |     Status:  assigned
   Priority:  normal              |  Milestone:  R1
  Component:  System/Boot Loader  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------

Old description:

> I have an IO Crest SI-PEX40057 SATA III PCI-e card in my machine, and if
> I hook any hard drive to it, Haiku completely fails to boot and instead
> just reboots the machine as soon as it shows "Loading system" on the
> screen, before the graphical boot loader or anything else appears.
>
> "IO Crest SATA III 4-Port PCI-e 2.0 x 2 Card with Marvell HyperDuo RAID
> Mode Support and Low Profile Brackets SI-PEX40057"
>
> http://www.amazon.com/gp/product/B00AZ9T264/
>
> This appeared after r46284 (which works). r46287 is affected and does not
> boot.
>
> Merely unhooking the drive from the card "fixes" the problem and
> everything works fine.
>
> I tried hooking up two different hard drives to the card, and both cause
> this problem, even though neither drive is the Haiku drive. These are
> just extra storage drives. (And everything works fine in Windows and
> Linux.)
>
> Also, even with r46284 and earlier, if you try to enter the safe mode
> boot menu by holding down shift or space, this will cause a reboot before
> you load anything.
>
> I went back to r45284 (100 revisions back) and still had the same
> problem, so I'm not sure how far back that issue goes (reboot when trying
> to enter safe mode menu with shift/space).
>
> And again, just unhooking the drive from the card restores expected
> functionality and the system boots properly.

New description:

 I have an IO Crest SI-PEX40057 SATA III PCI-e card in my machine, and if I
 hook any hard drive to it, Haiku completely fails to boot and instead just
 reboots the machine as soon as it shows "Loading system" on the screen,
 before the graphical boot loader or anything else appears.

 "IO Crest SATA III 4-Port PCI-e 2.0 x 2 Card with Marvell HyperDuo RAID
 Mode Support and Low Profile Brackets SI-PEX40057"

 http://www.amazon.com/gp/product/B00AZ9T264/

 This appeared after r46284 (which works). r46287 is affected and does not
 boot.

 Merely unhooking the drive from the card "fixes" the problem and
 everything works fine.

 I tried hooking up two different hard drives to the card, and both cause
 this problem, even though neither drive is the Haiku drive. These are just
 extra storage drives. (And everything works fine in Windows and Linux.)

 Also, even with r46284 and earlier, if you try to enter the safe mode boot
 menu by holding down shift or space, this will cause a reboot before you
 load anything.

 I went back to r45284 (100 revisions back) and still had the same problem,
 so I'm not sure how far back that issue goes (reboot when trying to enter
 safe mode menu with shift/space).

 And again, just unhooking the drive from the card restores expected
 functionality and the system boots properly.

--

Comment (by pulkomandy):

 We debugged this over IRC earlier today, and we found that the crash
 occurs in the int13 call to read a sector from the disk. All previous
 operations with int13 (detecting the availability of the "extended read"
 feature, and reading the drive capacity) work fine, but trying to read a
 sector from the disc will reboot the machine. Working with other drives in
 the system which are not attached to the SATA card works fine. So it could
 be a bug in the card's BIOS, or a problem with the parameters we give to
 it.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11019#comment:15>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: