//
// Perform TSC and FSB calculations. This is traditionally done in tsc.c in XNU.
//
// For AMD Processors
if (CpuInfo->Family == 0xF && (CpuInfo->ExtFamily == 0x8 || CpuInfo->ExtFamily == 0xA)) {
DEBUG ((DEBUG_INFO, "OCAK: Setting FSB and TSC for Family %d and ExtFamily %d\n", (UINT16)CpuInfo->Family, (UNIT16)CpuInfo->ExtFamily));
busFreqValue = CpuInfo->FSBFrequency;
busFCvtt2nValue = DivU64x64Remainder ((1000000000ULL << 32), busFreqValue, NULL);
busFCvtn2tValue = DivU64x64Remainder(((1000000000ULL) << 32), busFCvtt2nValue, NULL);
tscFreqValue = CpuInfo->CPUFrequency;
tscFCvtt2nValue = DivU64x64Remainder ((1000000000ULL << 32), tscFreqValue, NULL);
tscFCvtn2tValue = DivU64x64Remainder(((1000000000ULL) << 32), tscFCvtt2nValue, NULL);
}
// For all other processors
else {
busFreqValue = CpuInfo->FSBFrequency;
busFCvtt2nValue = DivU64x64Remainder ((1000000000ULL << 32), busFreqValue, NULL);
busFCvtn2tValue = DivU64x64Remainder (0xFFFFFFFFFFFFFFFFULL, busFCvtt2nValue, NULL);
tscFreqValue = CpuInfo->CPUFrequency;
tscFCvtt2nValue = DivU64x64Remainder ((1000000000ULL << 32), tscFreqValue, NULL);
tscFCvtn2tValue = DivU64x64Remainder (0xFFFFFFFFFFFFFFFFULL, tscFCvtt2nValue, NULL);
}
Which processor is this from? Did the user experience audio stutter? Those frequencies will change from boot to boot, so we have to listen for stutter.Unfortunately, the issue is still not FULLY fixed on AMD APUs, but provides a very significant improvement.
15:660 00:044 OCAK: Setting FSB and TSC for Family F and ExtFamily A
15:687 00:027 OCAK: BusFreq = 102585215Hz, BusFCvtt2n = 41867312906, BusFCvtn2t = 102585215
15:711 00:023 OCAK: TscFreq = 3693067744Hz, TscFCvtt2n = 1162980912, TscFCvtn2t = 3693067746
AMD Ryzen 5 3400G. With vanilla OpenCore and without Speedkeeper it sounds like it did on Zen 4 with the same conditions, and with your OpenCore and no Speedkeeper it sounds fairly well, but Speedkeeper still improves it a bit (these are according to the user, I'll try to get more people to test and test it myself on my AMD laptop.)Which processor is this from? Did the user experience audio stutter?
Good feedback.AMD Ryzen 5 3400G. With vanilla OpenCore and without Speedkeeper it sounds like it did on Zen 4 with the same conditions, and with your OpenCore and no Speedkeeper it sounds fairly well, but Speedkeeper still improves it a bit (these are according to the user, I'll try to get more people to test and test it myself on my AMD laptop.)
You need the core count, not thread, so it'll be BA10.Doing AMD patches, dumb question, is the 7950 consider a 32 core cpu or 16 core (32 threads) cpu?
BA20 vs BA10 for example
Phew, that was close!!@CaseySJ
So apparently the user's locally downloaded audio file was corrupted as they said they heard the exact same crackles on Windows as well. They listened to the same song on YouTube for 5 minutes and ruled it out as perfect, same as Windows! I'll ask them to test the new one too.
Can you send the SysReport folder and the whole EFI folder?Hopefully I did this right.. would you be willing to see if I missed anything?
Beta 3 - Debug
Thanks -- this is done correctly!Hopefully I did this right.. would you be willing to see if I missed anything?
Beta 3 - Debug
Hopefully I did this right.. would you be willing to see if I missed anything?
Beta 3 - Debug
EDIT - boots and runs for about 10 seconds, usually freezes at a random spot.