]> git.baikalelectronics.ru Git - kernel.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)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 24 May 2013 08:16:54 +0000 (18:16 +1000)
commit86fa0794643a0b792f2bb379f79fff37c17d226c
tree83b710801b175faceba94b063d686e293e880f86
parentbbac54e8e08b96cf598a98b7d5ad90ba09413349
powerpc/pseries: Make 32-bit MSI quirk work on systems lacking firmware support

Recent commit c87645e587e9507b2174f83246632d9566ffbc8b 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>
arch/powerpc/platforms/pseries/msi.c