]> 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)
commitde3a1de905685069f4ec5da8332ea53ced463332
tree83b710801b175faceba94b063d686e293e880f86
parent4079347946b7f5de751d3f6df14eda794009583f
powerpc/pseries: Make 32-bit MSI quirk work on systems lacking firmware support

Recent commit a83b89631f10aae0847dc38d8590b4021b5e4b13 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