]>
Commit | Line | Data |
---|---|---|
729d3070 GKH |
1 | From 4098116039911e8870d84c975e2ec22dab65a909 Mon Sep 17 00:00:00 2001 |
2 | From: Thomas Bogendoerfer <tsbogend@alpha.franken.de> | |
3 | Date: Sat, 12 Aug 2017 23:36:47 +0200 | |
4 | Subject: parisc: pci memory bar assignment fails with 64bit kernels on dino/cujo | |
5 | ||
6 | From: Thomas Bogendoerfer <tsbogend@alpha.franken.de> | |
7 | ||
8 | commit 4098116039911e8870d84c975e2ec22dab65a909 upstream. | |
9 | ||
10 | For 64bit kernels the lmmio_space_offset of the host bridge window | |
11 | isn't set correctly on systems with dino/cujo PCI host bridges. | |
12 | This leads to not assigned memory bars and failing drivers, which | |
13 | need to use these bars. | |
14 | ||
15 | Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> | |
16 | Acked-by: Helge Deller <deller@gmx.de> | |
17 | Signed-off-by: Helge Deller <deller@gmx.de> | |
18 | Signed-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 |