VirtualBox

Changeset 68535 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Aug 28, 2017 12:13:04 PM (7 years ago)
Author:
vboxsync
Message:

AHCI: Additional logging, fixed confusing grammar/typo (send vs. sent).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r67806 r68535  
    343343    /** Device has spun up. */
    344344    bool                            fSpunUp;
    345     /** First D2H FIS was send. */
    346     bool                            fFirstD2HFisSend;
     345    /** First D2H FIS was sent. */
     346    bool                            fFirstD2HFisSent;
    347347    /** Attached device is a CD/DVD drive. */
    348348    bool                            fATAPI;
     
    957957static void ahciPortResetFinish(PAHCIPort pAhciPort)
    958958{
     959    ahciLog(("%s: Initiated.\n", __FUNCTION__));
     960
    959961    /* Cancel all tasks first. */
    960962    bool fAllTasksCanceled = ahciCancelActiveTasks(pAhciPort);
     
    972974    pAhciPort->regTFD  |= ATA_STAT_BUSY;
    973975
    974     if ((pAhciPort->regCMD & AHCI_PORT_CMD_FRE) && (!pAhciPort->fFirstD2HFisSend))
     976    if ((pAhciPort->regCMD & AHCI_PORT_CMD_FRE) && (!pAhciPort->fFirstD2HFisSent))
    975977    {
    976978        ahciPostFirstD2HFisIntoMemory(pAhciPort);
     
    10561058        if (ASMAtomicReadBool(&pAhciPort->fWrkThreadSleeping))
    10571059            ahciIoThreadKick(pAhci, pAhciPort);
    1058     }
     1060        else
     1061            ahciLog(("%s: Worker thread busy, no need to kick.\n", __FUNCTION__));
     1062    }
     1063    else
     1064        ahciLog(("%s: Nothing to do (CMD=%08x).\n", __FUNCTION__, pAhciPort->regCMD));
    10591065
    10601066    pAhciPort->regCI |= u32Value;
     
    11511157        pAhciPort->regSIG  = UINT32_MAX;
    11521158        pAhciPort->regTFD  = 0x7f;
    1153         pAhciPort->fFirstD2HFisSend = false;
     1159        pAhciPort->fFirstD2HFisSent = false;
    11541160        pAhciPort->regSCTL = u32Value;
    11551161    }
     
    13091315            }
    13101316            else
     1317            {
     1318                if (!pAhciPort->pDrvBase)
     1319                    ahciLog(("%s: No pDrvBase, clearing PxCMD.CR!\n", __FUNCTION__));
     1320                else
     1321                    ahciLog(("%s: PxIS.PCS set (PxIS=%#010x), clearing PxCMD.CR!\n", __FUNCTION__, pAhciPort->regIS));
     1322
    13111323                u32Value &= ~AHCI_PORT_CMD_CR;
     1324            }
    13121325        }
    13131326        else
     
    13631376        }
    13641377    }
     1378    else
     1379        ahciLog(("%s: No pDrvBase, no fPoweredOn + fSpunUp, doing nothing!\n", __FUNCTION__));
    13651380
    13661381    if (u32Value & AHCI_PORT_CMD_FRE)
     
    13701385        u32Value |= AHCI_PORT_CMD_FR;
    13711386
    1372         /* Send the first D2H FIS only if it wasn't already send. */
    1373         if (   !pAhciPort->fFirstD2HFisSend
     1387        /* Send the first D2H FIS only if it wasn't already sent. */
     1388        if (   !pAhciPort->fFirstD2HFisSent
    13741389            && pAhciPort->pDrvBase)
    13751390        {
     
    13781393#else
    13791394            ahciPostFirstD2HFisIntoMemory(pAhciPort);
    1380             pAhciPort->fFirstD2HFisSend = true;
     1395            pAhciPort->fFirstD2HFisSent = true;
    13811396#endif
    13821397        }
     
    27312746    uint8_t d2hFis[AHCI_CMDFIS_TYPE_D2H_SIZE];
    27322747
    2733     pAhciPort->fFirstD2HFisSend = true;
     2748    pAhciPort->fFirstD2HFisSent = true;
    27342749
    27352750    ahciLog(("%s: Sending First D2H FIS from FIFO\n", __FUNCTION__));
     
    47794794        pHlp->pfnPrintf(pHlp, "PortPoweredOn=%RTbool\n", pThisPort->fPoweredOn);
    47804795        pHlp->pfnPrintf(pHlp, "PortSpunUp=%RTbool\n", pThisPort->fSpunUp);
    4781         pHlp->pfnPrintf(pHlp, "PortFirstD2HFisSend=%RTbool\n", pThisPort->fFirstD2HFisSend);
     4796        pHlp->pfnPrintf(pHlp, "PortFirstD2HFisSent=%RTbool\n", pThisPort->fFirstD2HFisSent);
    47824797        pHlp->pfnPrintf(pHlp, "PortATAPI=%RTbool\n", pThisPort->fATAPI);
    47834798        pHlp->pfnPrintf(pHlp, "PortTasksFinished=%#x\n", pThisPort->u32TasksFinished);
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