Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153117545
D5883.id15006.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1016 B
Referenced Files
None
Subscribers
None
D5883.id15006.diff
View Options
Index: sys/x86/x86/identcpu.c
===================================================================
--- sys/x86/x86/identcpu.c
+++ sys/x86/x86/identcpu.c
@@ -1381,6 +1381,7 @@
#endif
{
u_int regs[4], cpu_stdext_disable;
+ uint64_t msr;
#ifdef __i386__
u_char ccr3;
#endif
@@ -1458,6 +1459,23 @@
do_cpuid(0x80000001, regs);
amd_feature = regs[3] & ~(cpu_feature & 0x0183f3ff);
amd_feature2 = regs[2];
+ if (cpu_vendor_id == CPU_VENDOR_AMD &&
+ CPUID_TO_FAMILY(cpu_id) == 0x15 &&
+ (amd_feature2 & AMDID2_TOPOLOGY) == 0) {
+ /*
+ * See BIOS and Kernel Developer’s Guide (BKDG)
+ * for AMD Family 15h Models 60h-6Fh Processors,
+ * Publication # 50742.
+ */
+ msr = rdmsr(0xc0011005);
+ msr |= (uint64_t)1 << 54;
+ wrmsr(0xc0011005, msr);
+
+ do_cpuid(0x80000001, regs);
+ amd_feature2 = regs[2];
+ if ((amd_feature2 & AMDID2_TOPOLOGY) != 0)
+ printf("Re-enabled topology extension\n");
+ }
}
if (cpu_exthigh >= 0x80000007) {
do_cpuid(0x80000007, regs);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 6:59 AM (9 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31824554
Default Alt Text
D5883.id15006.diff (1016 B)
Attached To
Mode
D5883: re-enable AMD Topology extension on certain models if disabled by BIOS
Attached
Detach File
Event Timeline
Log In to Comment