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)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Tue, 27 Mar 2012 13:47:17 +0000 (06:47 -0700)
commitc6f37fc2ab41918c5d344ea3086df799db85bb34
treea554524674f694fbe572254f4bcc671d87f1a2f7
parent83d890e1fd1d3be68acd0eaf860bda2db05872c9
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