VirtualBox

Changeset 57174 in vbox


Ignore:
Timestamp:
Aug 4, 2015 11:45:02 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101922
Message:

supdrvMeasureTscDeltaOne: Shot at the FX-8350 problem - don't measure using cores/modules/threads with adjacent APIC IDs, just like we do on Intel. Exclude bulldozers as FX-8150 experiments (way back) indicated that this was counterproductive there, IIRC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp

    r56924 r57174  
    37273727    PSUPGIPCPU          pGipCpuMaster;
    37283728    uint32_t            iGipCpuMaster;
     3729    uint32_t            u32Tmp;
    37293730
    37303731    /* Validate input a bit. */
     
    37693770    pGipCpuMaster = &pGip->aCPUs[iGipCpuMaster];
    37703771    if (   (   (pGipCpuMaster->idApic & ~1) == (pGipCpuWorker->idApic & ~1)
     3772            && pGip->cOnlineCpus > 2
    37713773            && ASMHasCpuId()
    37723774            && ASMIsValidStdRange(ASMCpuId_EAX(0))
    37733775            && (ASMCpuId_EDX(1) & X86_CPUID_FEATURE_EDX_HTT)
    3774             && !ASMIsAmdCpu()
    3775             && pGip->cOnlineCpus > 2)
     3776            && (   !ASMIsAmdCpu()
     3777                || ASMGetCpuFamily(u32Tmp = ASMCpuId_EAX(1)) > 0x15
     3778                || (   ASMGetCpuFamily(u32Tmp)   == 0x15           /* Piledriver+, not bulldozer (FX-4150 didn't like it). */
     3779                    && ASMGetCpuModelAMD(u32Tmp) >= 0x02) ) )
    37763780        || !RTMpIsCpuOnline(idMaster) )
    37773781    {
Note: See TracChangeset for help on using the changeset viewer.

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