linux_dsm_epyc7002/arch/powerpc/platforms
Russell Currey b79331a5eb powerpc/powernv/pci: Fix m64 checks for SR-IOV and window alignment
Commit 5958d19a14 checks for prefetchable m64 BARs by comparing the
addresses instead of using resource flags.  This broke SR-IOV as the m64
check in pnv_pci_ioda_fixup_iov_resources() fails.

The condition in pnv_pci_window_alignment() also changed to checking
only IORESOURCE_MEM_64 instead of both IORESOURCE_MEM_64 and
IORESOURCE_PREFETCH.

Revert these cases to the previous behaviour, adding a new helper function
to do so.  This is named pnv_pci_is_m64_flags() to make it clear this
function is only looking at resource flags and should not be relied on for
non-SRIOV resources.

Fixes: 5958d19a14 ("Fix incorrect PE reservation attempt on some 64-bit BARs")
Reported-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Russell Currey <ruscur@russell.cc>
Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-09-21 14:04:13 +10:00
..
8xx powerpc updates for 4.8 # 1 2016-07-30 21:01:36 -07:00
40x powerpc updates for 4.8 # 1 2016-07-30 21:01:36 -07:00
44x powerpc updates for 4.8 # 1 2016-07-30 21:01:36 -07:00
52xx powerpc: Move 32-bit probe() machine to later in the boot process 2016-07-21 19:06:42 +10:00
82xx powerpc: Move 32-bit probe() machine to later in the boot process 2016-07-21 19:06:42 +10:00
83xx powerpc: mpc8349emitx: Delete unnecessary assignment for the field "owner" 2016-08-22 11:09:33 +10:00
85xx powerpc updates for 4.8 # 1 2016-07-30 21:01:36 -07:00
86xx powerpc updates for 4.8 # 1 2016-07-30 21:01:36 -07:00
512x powerpc/512x: Delete unnecessary assignment for the field "owner" 2016-08-22 11:09:33 +10:00
amigaone powerpc: Move 32-bit probe() machine to later in the boot process 2016-07-21 19:06:42 +10:00
cell powerpc/cell: Add missing error code in spufs_mkgang() 2016-08-09 14:50:18 +10:00
chrp powerpc: Get rid of ppc_md.init_early() 2016-07-21 19:07:26 +10:00
embedded6xx powerpc: migrate exception table users off module.h and onto extable.h 2016-08-22 11:09:33 +10:00
maple powerpc: Get rid of ppc_md.init_early() 2016-07-21 19:07:26 +10:00
pasemi powerpc/pasemi: Fix coherent_dma_mask for dma engine 2016-08-08 16:19:09 +10:00
powermac treewide: replace obsolete _refok by __ref 2016-08-02 17:31:41 -04:00
powernv powerpc/powernv/pci: Fix m64 checks for SR-IOV and window alignment 2016-09-21 14:04:13 +10:00
ps3 RTC for 4.8 2016-08-05 09:48:22 -04:00
pseries powerpc/pseries: Fix little endian build with CONFIG_KEXEC=n 2016-09-06 14:54:08 +10:00
fsl_uli1575.c of/irq: Refactor interrupt-map parsing 2013-10-24 11:43:04 +01:00
Kconfig RTC for 4.8 2016-08-05 09:48:22 -04:00
Kconfig.cputype powerpc32: provide VIRT_CPU_ACCOUNTING 2016-07-09 01:43:50 -05:00
Makefile powerpc: Remove platforms/wsp and associated pieces 2014-06-11 16:35:38 +10:00