99 Commits

Author SHA1 Message Date
PMheart
228f8ca1fb Codestyle: Apply codestyle changes with Uncrustify 2022-04-25 14:51:15 +02:00
MikeBeaton
9d5fc5f4f7 OcCpuLib: Add EnableVmx UEFI quirk 2021-11-28 19:38:28 +00:00
vit9696
4073b8afae OcCpuLib: Fix processor generation 2021-11-11 14:23:15 +03:00
vit9696
8825c2b329 OcCpuLib: Fix core count detection for Pentium 4 541
closes acidanthera/bugtracker#1783
2021-09-12 06:20:05 +03:00
vit9696
072b705d3a OcCpuLib: Print Max CPUIDs 2021-09-12 01:44:29 +03:00
PMheart
321c6c4a2b OcDeviceMiscLib: Add MSR prefix to IA32_MISC_ENABLE 2021-06-21 10:52:25 +08:00
PMheart
7b8cd22549 OcCpuLib: Read IA32 MSRs only on PrePenryn and above 2021-06-20 08:32:42 +08:00
PMheart
d65378c1d2 OcCpuLib: Only read MSR_PKG_POWER_INFO on SNB+ 2021-06-13 08:36:58 +08:00
PMheart
92875adce0 OcCpuLib: Dump other info for non-Intel machines 2021-06-12 11:36:24 +08:00
PMheart
25c249a68f OcDeviceMiscLib: Code optimisations for CPU info dump 2021-06-12 11:08:55 +08:00
PMheart
fded511423
OpenCore: Add CPU Info (MSRs) to SysReport (#267) 2021-06-11 14:40:31 +08:00
vit9696
5c7d61f416 OcCpuLib: Fixed core detection crashes on Intel Silvermont 2021-05-17 11:21:18 +03:00
vit9696
717ce18861 OcCpuLib: Fix FSB frequency calculation on Bonnel CPUs 2021-04-05 19:20:24 +03:00
vit9696
afc7a72041 OcCpuLib: Added identifiers for Rocket Lake and Tiger Lake CPUs 2021-04-02 00:50:30 +03:00
vit9696
d1d55ff402 OcCpuLib: Read max multiplier correctly on pre-Nehalem Intel CPUs
This MSR is actually documented today and is apparently read
incorrectly by lots of software. They inspect the current multiplier,
not the max one. This mistake resulted in hardware starting with
reduced multiplier (e.g. 6.5 instead of 8.5 in MacBook5,2) to report
wrong frequency.
2021-03-28 21:29:49 +03:00
PMheart
ca8046be27
OcCpuLib: Implement TSC frequency reading from Apple Platform Info (#233) 2021-03-12 19:26:23 +08:00
vit9696
f71a3357c9 OcCpuLib: Fix Prescott regression introduced in previous commit 2021-02-26 01:28:26 +03:00
vit9696
8e90a2f007 OcCpuLib: Fixed showing core count for some AMD CPUs 2021-02-25 19:45:38 +03:00
vit9696
e2f219e075 OcCpuLib: Fixed FSBFrequency calculation with fractional multiplier
closes acidanthera/bugtracker#1529
2021-02-25 19:45:38 +03:00
Mykola Grymalyuk
1ae9bb0068 Add AMD 19h support 2020-11-15 21:20:51 -07:00
Goldfish64
a049687ed7 OcCpuLib: Add compatibility for Bonnell Atom CPUs 2020-10-20 18:07:21 -05:00
Download-Fritz
f10f29004a OcCpuLib: First-gen Atom does not support TURBO_RATIO_LIMIT MSR 2020-10-20 19:56:32 +02:00
Goldfish64
1053e3843f OcCpuLib: Fix incorrect core/thread counts on Pentium M 2020-10-13 20:34:56 -05:00
Goldfish64
1029e98ffc OcCpuLib: Add support for NetBurst models 2020-10-01 19:15:28 -05:00
Goldfish64
eb74fb9f0d OcCpuLib: Detect extended CPUID features 2020-08-29 21:51:45 -05:00
vit9696
87a287f2be OcCpuLib: Fix display name for i9 CPUs like 7920X 2020-08-02 09:39:22 +03:00
vit9696
0e1c134261 OcCpuLib: Fixed FSBFrequency reporting on Meron and similar CPUs 2020-06-28 19:17:48 +03:00
vit9696
d9d4fdbe0b OcCpuLib: Remove SyncrhonizationLib dependency
SyncrhonizationLib requires TimerLib, and our TimerLib requires
OcCpuLib, which results in OcTimerLib constructors being called before
UefiRuntimeServicesTableLib constructors leading to NULL gRT dereference
in OcTimerLibConstructor causing UEFI Shell crashes.
2020-06-01 02:04:46 +03:00
vit9696
bf8e36b7f4 OcCpuLib: Provide basic implementation for TscSyncTimeout 2020-05-30 01:29:52 +03:00
vit9696
f6258a71ce OcCpuLib: Preserve TscAdjust value in CPU context 2020-05-30 00:16:15 +03:00
vit9696
e6bec3ae80 Debug: Fix some log tags 2020-05-17 16:53:02 +03:00
vit9696
a9cbcd9ae8 Build: Drop EfiPkg 2020-05-17 14:28:41 +03:00
vit9696
f750d5b7bd OcCpuLib: Add CFG lock debugging 2020-05-13 15:31:56 +03:00
vit9696
6bfd26f381 OcCpuLib: Fixed CPU detection crash with QEMU 5.0 and KVM accelerator
closes acidanthera/bugtracker#914
2020-05-13 15:30:03 +03:00
vit9696
5da113b944 OcCpuLib: Improve ACPI PM timer CPU frequency calculation performance
closes acidanthera/bugtracker#526
2020-02-16 10:04:35 +03:00
vit9696
410ba1e7aa OcCpuLib: Fix frequency calculation on VMware 2020-02-16 05:54:24 +03:00
Alex James
6242dfe18c OcCpuLib: Fix CurBusRatio calculation for Nehalem/Westmere 2020-01-17 23:48:26 +03:00
Alex James
e9a34f0eb8 OcCpuLib: Introduce OcCpuGetGeneration
Add a general function for detecting the CPU's generation, replacing
OcIsSandyOrIvy.
2020-01-17 23:48:26 +03:00
Alex James
86839a8397 OcCpuLib: Add support for framework EFI MP services
Resolves acidanthera/bugtracker#663.
2020-01-17 23:48:26 +03:00
vit9696
1f047740f9 OcCpuLib: Implement package count detection with MpServices
closes acidanthera/bugtracker#363
2020-01-11 19:39:32 +03:00
vit9696
f2444a5361 OcCpuLib: Reorganise source files 2020-01-11 18:21:06 +03:00
vit9696
867000cd07 Build: Improve IA32 compat based on @nms42 patches
closes acidanthera/bugtracker#645
closes acidanthera/bugtracker#646
closes acidanthera/bugtracker#647
2020-01-11 04:51:46 +03:00
vit9696
81e33784b1 Build: Fix some warnings, thx @nms42
references acidanthera/bugtracker#640
2020-01-09 19:08:39 +03:00
vit9696
7d2f5c10aa OcSmbiosLib: Fixed SMBIOS Type4 External Clock values 2020-01-04 22:43:03 +03:00
vit9696
11b2648cc2 OcCpuLib: Print MicrocodeRevision in the log 2020-01-04 19:59:41 +03:00
vit9696
52a5ae916f OcCpuLib: Read microcode revision in assembly to comply with Intel SDM
closes acidanthera/bugtracker#621
2020-01-04 19:28:11 +03:00
crazyi
87b3689c5d OcCpuLib: Add Intel Xeon E5 (Broadwell-EP) support 2019-11-28 12:15:15 +03:00
Download-Fritz
c5024de443 OcCpuLib: Fix uninitialised values and and CurBusRatio for AMD 2019-11-03 16:01:01 +01:00
Download-Fritz
156cb7c586 Various type and cast fixes 2019-11-02 23:16:33 +01:00
Leoyzen
d65c11fef8 OcCpuLib: Add hypervisor CPUID support to work with virtualization (#17) 2019-10-30 11:41:40 +03:00