]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Fix PCI config address for DDW
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 25 May 2016 23:56:07 +0000 (09:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Jun 2016 01:51:42 +0000 (11:51 +1000)
commitec340b2dfea4e9588adcd7c58d6d0c2a6545dc19
tree71b05bc5f3556bc8203b67a22b0580a6540e3bc8
parenta16281c1bbef82664c97e4687e1bba69f0ab04fc
powerpc/pseries: Fix PCI config address for DDW

In commit a89af2bc195c "powerpc/iommu: Remove the dependency on EEH
struct in DDW mechanism", the PE address was replaced with the PCI
config address in order to remove dependency on EEH. According to PAPR
spec, firmware (pHyp or QEMU) should accept "xxBBSSxx" format PCI config
address, not "xxxxBBSS" provided by the patch. Note that "BB" is PCI bus
number and "SS" is the combination of slot and function number.

This fixes the PCI address passed to DDW RTAS calls.

Fixes: a89af2bc195c ("powerpc/iommu: Remove the dependency on EEH struct in DDW mechanism")
Cc: stable@vger.kernel.org # v3.4+
Reported-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Tested-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/iommu.c