WSL2-Linux-Kernel/arch/powerpc
Michael Ellerman 85f2bf9f60 [POWERPC] RTAS MSI implementation
Implement MSI support via RTAS (RTAS = run-time firmware on pSeries
machines).  For now we assumes that if the required RTAS tokens for
MSI are present, then we want to use the RTAS MSI routines.

When RTAS is managing MSIs for us, it will/may enable MSI on devices that
support it by default. This is contrary to the Linux model where a device
is in LSI mode until the driver requests MSIs.

To remedy this we add a pci_irq_fixup call, which disables MSI if they've
been assigned by firmware and the device also supports LSI. Devices that
don't support LSI at all will be left as is, drivers are still expected
to call pci_enable_msi() before using the device.

At the moment there is no pci_irq_fixup on pSeries, so we can just set it
unconditionally. If other platforms use the RTAS MSI backend they'll need
to check that still holds.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-05-08 13:40:31 +10:00
..
boot [POWERPC] Holly bootwrapper 2007-05-08 11:54:21 +10:00
configs [POWERPC] Holly defconfig 2007-05-08 11:54:20 +10:00
kernel [POWERPC] PowerPC MSI infrastructure 2007-05-08 13:40:31 +10:00
lib [POWERPC] Remove use of 4level-fixup.h for ppc32 2007-05-08 13:40:31 +10:00
math-emu [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c 2006-09-26 15:24:35 +10:00
mm [POWERPC] Remove use of 4level-fixup.h for ppc32 2007-05-08 13:40:31 +10:00
oprofile [POWERPC] Spinlock initializer cleanup 2007-04-30 11:02:06 +10:00
platforms [POWERPC] RTAS MSI implementation 2007-05-08 13:40:31 +10:00
sysdev [POWERPC] Generalize tsi108 PCI setup 2007-05-08 11:54:20 +10:00
xmon [POWERPC] Fix WARN_ON when entering xmon 2007-04-27 21:13:28 +10:00
.gitignore [POWERPC] Add files build to .gitignore 2006-12-04 20:41:29 +11:00
Kconfig [POWERPC] PowerPC MSI infrastructure 2007-05-08 13:40:31 +10:00
Kconfig.debug [POWERPC] DEBUG_PAGEALLOC for 64-bit 2007-04-13 04:09:39 +10:00
Makefile [POWERPC] Small cleanups to the cuboot bootwrapper code 2007-05-02 20:04:31 +10:00