linux/arch/powerpc
Gavin Shan 4f143eb491 powerpc/pseries: Fix PCI config address for DDW
[ Upstream commit 8a934efe94 ]

In commit 8445a87f70 "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: 8445a87f70 ("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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
History 2016-08-22 12:23:30 -04:00
..
boot powerpc/mpc85xx: Add ranges to etsec2 nodes 2015-04-16 20:13:18 -04:00
configs Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux 2014-10-21 07:48:56 -07:00
crypto crypto: add missing crypto module aliases 2015-01-29 17:40:46 -08:00
include powerpc: Use privileged SPR number for MMCR2 2016-06-19 23:47:40 -04:00
kernel powerpc/tm: Fix stack pointer corruption in __tm_recheckpoint() 2016-08-22 12:23:11 -04:00
kvm KVM: PPC: Book3S HV: Save/restore TM state in H_CEDE 2016-08-22 12:23:21 -04:00
lib powerpc: Implement emulation of string loads and stores 2014-09-25 23:14:52 +10:00
math-emu powerpc: Correct emulated mtfsf instruction 2014-04-07 10:33:11 +10:00
mm powerpc/mm: Recompute hash value after a failed update 2015-10-07 10:14:35 -04:00
net net: filter: make JITs zero A for SKF_AD_ALU_XOR_X 2016-02-15 15:42:43 -05:00
oprofile powerpc: Ensure global functions include their prototype 2014-09-25 23:14:42 +10:00
perf powerpc/perf: Fix book3s kernel to userspace backtraces 2015-07-03 23:02:22 -04:00
platforms powerpc/pseries: Fix PCI config address for DDW 2016-08-22 12:23:30 -04:00
sysdev powerpc/MSI: Fix race condition in tearing down MSI interrupts 2015-10-27 22:14:14 -04:00
xmon powerpc/xmon: Fix another endiannes issue in RTAS call from xmon 2015-02-05 22:36:03 -08:00
Kconfig powerpc/cell: Move spu_handle_mm_fault() out of cell platform 2014-10-08 20:14:54 +11:00
Kconfig.debug Patch queue for ppc - 2014-08-01 2014-08-05 09:58:11 +02:00
Makefile powerpc: Add POWER8 CPU selection 2014-09-25 23:14:49 +10:00
relocs_check.pl Fix warning typo "CONFIG_RELCOATABLE" 2013-05-29 15:11:30 +02:00