From: Greg Kroah-Hartman Date: Fri, 5 Dec 2014 18:00:54 +0000 (-0800) Subject: 3.10-stable patches X-Git-Tag: v3.10.62~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=efec3288a0dc02d77fce532bd3c3a4f8040240c6;p=thirdparty%2Fkernel%2Fstable-queue.git 3.10-stable patches added patches: powerpc-powernv-honor-the-generic-no_64bit_msi-flag.patch --- diff --git a/queue-3.10/powerpc-powernv-honor-the-generic-no_64bit_msi-flag.patch b/queue-3.10/powerpc-powernv-honor-the-generic-no_64bit_msi-flag.patch new file mode 100644 index 00000000000..2ba0ec8fedc --- /dev/null +++ b/queue-3.10/powerpc-powernv-honor-the-generic-no_64bit_msi-flag.patch @@ -0,0 +1,57 @@ +From 360743814c4082515581aa23ab1d8e699e1fbe88 Mon Sep 17 00:00:00 2001 +From: Benjamin Herrenschmidt +Date: Tue, 7 Oct 2014 16:12:36 +1100 +Subject: powerpc/powernv: Honor the generic "no_64bit_msi" flag + +From: Benjamin Herrenschmidt + +commit 360743814c4082515581aa23ab1d8e699e1fbe88 upstream. + +Instead of the arch specific quirk which we are deprecating +and that drivers don't understand. + +Signed-off-by: Benjamin Herrenschmidt +Signed-off-by: Greg Kroah-Hartman + +--- + arch/powerpc/platforms/powernv/pci-ioda.c | 3 +-- + arch/powerpc/platforms/powernv/pci.c | 4 ++-- + 2 files changed, 3 insertions(+), 4 deletions(-) + +--- a/arch/powerpc/platforms/powernv/pci-ioda.c ++++ b/arch/powerpc/platforms/powernv/pci-ioda.c +@@ -789,7 +789,6 @@ static int pnv_pci_ioda_msi_setup(struct + unsigned int is_64, struct msi_msg *msg) + { + struct pnv_ioda_pe *pe = pnv_ioda_get_pe(dev); +- struct pci_dn *pdn = pci_get_pdn(dev); + struct irq_data *idata; + struct irq_chip *ichip; + unsigned int xive_num = hwirq - phb->msi_base; +@@ -806,7 +805,7 @@ static int pnv_pci_ioda_msi_setup(struct + return -ENXIO; + + /* Force 32-bit MSI on some broken devices */ +- if (pdn && pdn->force_32bit_msi) ++ if (dev->no_64bit_msi) + is_64 = 0; + + /* Assign XIVE to PE */ +--- a/arch/powerpc/platforms/powernv/pci.c ++++ b/arch/powerpc/platforms/powernv/pci.c +@@ -1,3 +1,4 @@ ++ + /* + * Support PCI/PCIe on PowerNV platforms + * +@@ -47,9 +48,8 @@ static int pnv_msi_check_device(struct p + { + struct pci_controller *hose = pci_bus_to_host(pdev->bus); + struct pnv_phb *phb = hose->private_data; +- struct pci_dn *pdn = pci_get_pdn(pdev); + +- if (pdn && pdn->force_32bit_msi && !phb->msi32_support) ++ if (pdev->no_64bit_msi && !phb->msi32_support) + return -ENODEV; + + return (phb && phb->msi_bmp.bitmap) ? 0 : -ENODEV; diff --git a/queue-3.10/series b/queue-3.10/series index a5529b0a043..261aabc6e39 100644 --- a/queue-3.10/series +++ b/queue-3.10/series @@ -41,3 +41,4 @@ rt2x00-do-not-align-payload-on-modern-h-w.patch nfsd-fix-slot-wake-up-race-in-the-nfsv4.1-callback-code.patch nfsd4-fix-leak-of-inode-reference-on-delegation-failure.patch bnx2fc-do-not-add-shared-skbs-to-the-fcoe_rx_list.patch +powerpc-powernv-honor-the-generic-no_64bit_msi-flag.patch