]> git.baikalelectronics.ru Git - kernel.git/commit
x86/acpi: Handle SCI interrupts above legacy space gracefully
authorVikas C Sajjan <vikas.cha.sajjan@hpe.com>
Thu, 16 Nov 2017 16:13:44 +0000 (21:43 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 17 Nov 2017 14:30:33 +0000 (15:30 +0100)
commit4798fc82df05b6d6d277aab16881ccd274e52151
tree80d5496e26fcee4154dda2819094425c65ca6c61
parent813d6528be4777d1d85aec6cb5187f14c9b4077b
x86/acpi: Handle SCI interrupts above legacy space gracefully

Platforms which support only IOAPIC mode, pass the SCI information above
the legacy space (0-15) via the FADT mechanism and not via MADT.

In such cases mp_override_legacy_irq() which is invoked from
acpi_sci_ioapic_setup() to register SCI interrupts fails for interrupts
greater equal 16, since it is meant to handle only the legacy space and
emits error "Invalid bus_irq %u for legacy override".

Add a new function to handle SCI interrupts >= 16 and invoke it
conditionally in acpi_sci_ioapic_setup().

The code duplication due to this new function will be cleaned up in a
separate patch.

Co-developed-by: Sunil V L <sunil.vl@hpe.com>
Signed-off-by: Vikas C Sajjan <vikas.cha.sajjan@hpe.com>
Signed-off-by: Sunil V L <sunil.vl@hpe.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Abdul Lateef Attar <abdul-lateef.attar@hpe.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: kkamagui@gmail.com
Cc: linux-acpi@vger.kernel.org
Link: https://lkml.kernel.org/r/1510848825-21965-2-git-send-email-vikas.cha.sajjan@hpe.com
arch/x86/kernel/acpi/boot.c