VirtualBox

Ignore:
Timestamp:
May 12, 2014 10:14:17 AM (11 years ago)
Author:
vboxsync
Message:

AHCI: Another try to fix The AssertRelease issue during a reset. Move the second part of the port reset to the I/O thread to avoid any races. Needs minor tweaks in the BIOS driver to make it work with the changed behavior

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/ahci.c

    r50294 r51232  
    627627    /* Check if there is a device on the port. */
    628628    VBOXAHCI_PORT_READ_REG(ahci->iobase, u8Port, AHCI_REG_PORT_SSTS, val);
     629    if (ahci_ctrl_extract_bits(val, 0xfL, 0) == 0)
     630        return; /* No device detected. */
     631
     632    do
     633    {
     634        VBOXAHCI_PORT_READ_REG(ahci->iobase, u8Port, AHCI_REG_PORT_SSTS, val);
     635    } while (ahci_ctrl_extract_bits(val, 0xfL, 0) == 0x1);
     636
    629637    if (ahci_ctrl_extract_bits(val, 0xfL, 0) == 0x3)
    630638    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette