]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/apic: Soft disable APIC before initializing it
authorThomas Gleixner <tglx@linutronix.de>
Mon, 22 Jul 2019 18:47:08 +0000 (20:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:13:30 +0000 (13:13 +0200)
commit9107c9b7bcceed4b47e9335bc8441818e8adf919
tree02599d6201fb4c3e51bfd6bb28743cde60ae87d7
parentbe86447601cbca1469a0b66aa3741bca2f7089e5
x86/apic: Soft disable APIC before initializing it

[ Upstream commit 2640da4cccf5cc613bf26f0998b9e340f4b5f69c ]

If the APIC was already enabled on entry of setup_local_APIC() then
disabling it soft via the SPIV register makes a lot of sense.

That masks all LVT entries and brings it into a well defined state.

Otherwise previously enabled LVTs which are not touched in the setup
function stay unmasked and might surprise the just booting kernel.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20190722105219.068290579@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kernel/apic/apic.c