x86/AMD: Apply erratum 665 on machines without a BIOS fix
authorEmanuel Czirai <icanrealizeum@gmail.com>
Fri, 2 Sep 2016 05:35:50 +0000 (07:35 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 2 Sep 2016 18:42:28 +0000 (20:42 +0200)
commitd1992996753132e2dafe955cccb2fb0714d3cfc4
tree92a0102f68353c85730b99faf1f83e08451f12c6
parent3eab887a55424fc2c27553b7bfe32330df83f7b8
x86/AMD: Apply erratum 665 on machines without a BIOS fix

AMD F12h machines have an erratum which can cause DIV/IDIV to behave
unpredictably. The workaround is to set MSRC001_1029[31] but sometimes
there is no BIOS update containing that workaround so let's do it
ourselves unconditionally. It is simple enough.

[ Borislav: Wrote commit message. ]

Signed-off-by: Emanuel Czirai <icanrealizeum@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Yaowu Xu <yaowu@google.com>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/20160902053550.18097-1-bp@alien8.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/amd.c