[haiku-bugs] Re: [Haiku] #12415: Removeable media AHCI port reset bug

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Sat, 09 Apr 2016 03:17:18 -0000

#12415: Removeable media AHCI port reset bug
----------------------------+--------------------------------------
   Reporter:  vidrep        |      Owner:  kallisti5
       Type:  bug           |     Status:  closed
   Priority:  blocker       |  Milestone:  R1/beta1
  Component:  Drivers/Disk  |    Version:  R1/Development
 Resolution:  fixed         |   Keywords:  cdrom  dvd bluray cd-rom
 Blocked By:                |   Blocking:  12634
Has a Patch:  0             |   Platform:  All
----------------------------+--------------------------------------
Changes (by kallisti5):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 Ok.  1d4c4d3 gave me some valuable notes on what the intent was. While I
 was testing, reverting all of my changes still showed the constant port
 resets.  That paired with strange VirtualBox AHCI behavior made it look
 like reverting my changes didn't fix it.

 However the notes on 1d4c4d3 show that mmlr was simply "hiding" the AHCI
 resets when no media is present. The resets happen continuously while no
 media is present. (He should of thrown some comments in ^_^)

 Since the suspect was the resets, I took a step back and looked at the
 reset code... it appears I inadvertently made the resets "stronger" all of
 the time. Since we now know the CDROM constantly "resets while no media is
 present"  the stronger AHCI resets result in funky removable media
 behavior.

 Resolved in hrev50195.  I think there are a few bus state issues after
 inserting a cdrom, however those can be cleaned up via a new ticket as the
 AHCI stack recovers. I'll need to go back and hide error messages when no
 media is present once this stuff is tested beyond my hardware.

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

Other related posts: