]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/pseries: Make 32-bit MSI quirk work on systems lacking firmware support
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 22 May 2013 11:07:46 +0000 (11:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2013 17:49:42 +0000 (10:49 -0700)
commit63a157c381354ba92145b5636c46475356921a6b
treea88b02462a39958369a718aa64ce6ae85b5ae396
parent12b29dc333b467aba67c6b1c16334e4859f517fb
powerpc/pseries: Make 32-bit MSI quirk work on systems lacking firmware support

commit f1dd153121dcb872ae6cba8d52bec97519eb7d97 upstream.

Recent commit e61133dda480062d221f09e4fc18f66763f8ecd0 added support
for a new firmware feature to force an adapter to use 32 bit MSIs.
However, this firmware is not available for all systems. The hack below
allows devices needing 32 bit MSIs to work on these systems as well.
It is careful to only enable this on Gen2 slots, which should limit
this to configurations where this hack is needed and tested to work.

[Small change to factor out the hack into a separate function -- BenH]

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/pseries/msi.c