• J
    x86, ACPI, irq: Fix possible eror in GSI to IRQ mapping for legacy IRQ · 2e0ad0e2
    Jiang Liu 提交于
    A default identity mapping between GSI and IRQ is built for legacy IRQs.
    So when overriding the default identity mapping for legacy IRQs,
    we should also invalidate isa_irq_to_gsi[gsi] when setting
    isa_irq_to_gsi[irq] = gsi.  Otherwise there may be two entries with the
    same GSI in the isa_irq_to_gsi array, and acpi_isa_irq_to_gsi() may give
    wrong result.
    Signed-off-by: NJiang Liu <jiang.liu@linux.intel.com>
    Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: Joerg Roedel <joro@8bytes.org>
    Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Grant Likely <grant.likely@linaro.org>
    Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
    Cc: Bjorn Helgaas <bhelgaas@google.com>
    Cc: Randy Dunlap <rdunlap@infradead.org>
    Cc: Yinghai Lu <yinghai@kernel.org>
    Cc: Len Brown <len.brown@intel.com>
    Cc: Pavel Machek <pavel@ucw.cz>
    Link: http://lkml.kernel.org/r/1402302011-23642-10-git-send-email-jiang.liu@linux.intel.comSigned-off-by: NThomas Gleixner <tglx@linutronix.de>
    2e0ad0e2
boot.c 38.6 KB