]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
UBUNTU: SAUCE: x86/cpu: Add workaround for MONITOR instruction erratum on Goldmont...
authorPeter Zijlstra <peterz@infradead.org>
Tue, 26 Jul 2016 08:33:17 +0000 (16:33 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 27 Jul 2016 14:55:15 +0000 (09:55 -0500)
commit0183a1acf879c1001fc084d4943572ec16f0532f
treed44db4544518e176cf90de7d60a2ae8d25f0317c
parent9d54dad33d01d935a79ef9041b35acd59a1799b7
UBUNTU: SAUCE: x86/cpu: Add workaround for MONITOR instruction erratum on Goldmont based CPUs

BugLink: http://bugs.launchpad.net/bugs/1606147
Monitored cached line may not wake up from mwait on certain
Goldmont based CPUs. This patch will avoid calling
current_set_polling_and_test() and thereby not set the TIF_ flag.
The result is that we'll always send IPIs for wakeups.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Len Brown <lenb@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1468867270-18493-1-git-send-email-jacob.jun.pan@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
(backported from linux-next commit 08e237fa56a1d95c1372033bc29c4a2517b3c0fa)
Signed-off-by: Phidias Chiang <phidias.chiang@canonical.com>
Acked-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Andy Whitcroft <apw@canonical.com
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/x86/include/asm/cpufeatures.h
arch/x86/include/asm/mwait.h
arch/x86/kernel/cpu/intel.c
arch/x86/kernel/process.c