kernel - Add workaround for errata #721 on AMD cpus (found by Matt Dillon)
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 23 Mar 2012 22:49:54 +0000 (15:49 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 23 Mar 2012 22:49:54 +0000 (15:49 -0700)
commitafea4d5a3cf396976e5b778f8477d972e8c29735
tree484c0a949d75f0eec3dd2b58f5893f7eabfed0b6
parentce5b56a99d27b95380834a6c54a8aeb01e96a8b1
kernel - Add workaround for errata #721 on AMD cpus (found by Matt Dillon)

* Official reference for errata 721:

    http://support.amd.com/us/Processor_TechDocs/41322_10h_Rev_Gd.pdf

* This is the cpu bug found by Matthew Dillon, present on all K10 cores
  (so far).  AMD has indicated that the bug is not present on Bulldozer
  cpus.

* The MSR workaround is now reported and programmed during kernel boot.

* No discernable difference in performance was detected running GCC
  with and without the MSR adjustment.

* Verified to have fixed our test case w/GCC.  It no longer seg-faults.
sys/platform/pc64/x86_64/initcpu.c