x86/ioapic: Correct the PCI/ISA trigger type selection
authorThomas Gleixner <tglx@linutronix.de>
Tue, 10 Nov 2020 14:34:32 +0000 (15:34 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 10 Nov 2020 17:43:22 +0000 (18:43 +0100)
commitaec8da04e4d71afdd4ab3025ea34a6517435f363
treee9098bb02fb0f5335a7384f5a044a37b521cbf46
parentf36a74b9345aebaf5d325380df87a54720229d18
x86/ioapic: Correct the PCI/ISA trigger type selection

PCI's default trigger type is level and ISA's is edge. The recent
refactoring made it the other way round, which went unnoticed as it seems
only to cause havoc on some AMD systems.

Make the comment and code do the right thing again.

Fixes: a27dca645d2c ("x86/io_apic: Cleanup trigger/polarity helpers")
Reported-by: Tom Lendacky <thomas.lendacky@amd.com>
Reported-by: Borislav Petkov <bp@alien8.de>
Reported-by: Qian Cai <cai@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Cc: David Woodhouse <dwmw@amazon.co.uk>
Link: https://lore.kernel.org/r/87d00lgu13.fsf@nanos.tec.linutronix.de
arch/x86/kernel/apic/io_apic.c