]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.9.45/parisc-pci-memory-bar-assignment-fails-with-64bit-kernels-on-dino-cujo.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.9.45 / parisc-pci-memory-bar-assignment-fails-with-64bit-kernels-on-dino-cujo.patch
CommitLineData
729d3070
GKH
1From 4098116039911e8870d84c975e2ec22dab65a909 Mon Sep 17 00:00:00 2001
2From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
3Date: Sat, 12 Aug 2017 23:36:47 +0200
4Subject: parisc: pci memory bar assignment fails with 64bit kernels on dino/cujo
5
6From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
7
8commit 4098116039911e8870d84c975e2ec22dab65a909 upstream.
9
10For 64bit kernels the lmmio_space_offset of the host bridge window
11isn't set correctly on systems with dino/cujo PCI host bridges.
12This leads to not assigned memory bars and failing drivers, which
13need to use these bars.
14
15Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
16Acked-by: Helge Deller <deller@gmx.de>
17Signed-off-by: Helge Deller <deller@gmx.de>
18Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19
20---
21 drivers/parisc/dino.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24--- a/drivers/parisc/dino.c
25+++ b/drivers/parisc/dino.c
26@@ -956,7 +956,7 @@ static int __init dino_probe(struct pari
27
28 dino_dev->hba.dev = dev;
29 dino_dev->hba.base_addr = ioremap_nocache(hpa, 4096);
30- dino_dev->hba.lmmio_space_offset = 0; /* CPU addrs == bus addrs */
31+ dino_dev->hba.lmmio_space_offset = PCI_F_EXTEND;
32 spin_lock_init(&dino_dev->dinosaur_pen);
33 dino_dev->hba.iommu = ccio_get_iommu(dev);
34