diff options
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/40x/Kconfig | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/Kconfig | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/Kconfig | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/ras.c | 17 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/Kconfig | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/iommu.c | 6 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/pci.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/ps3/setup.c | 4 |
8 files changed, 26 insertions, 10 deletions
diff --git a/arch/powerpc/platforms/40x/Kconfig b/arch/powerpc/platforms/40x/Kconfig index 14e027f5be66..f39c953d5353 100644 --- a/arch/powerpc/platforms/40x/Kconfig +++ b/arch/powerpc/platforms/40x/Kconfig | |||
@@ -153,6 +153,7 @@ config 405GPR | |||
153 | 153 | ||
154 | config XILINX_VIRTEX | 154 | config XILINX_VIRTEX |
155 | bool | 155 | bool |
156 | select DEFAULT_UIMAGE | ||
156 | 157 | ||
157 | config XILINX_VIRTEX_II_PRO | 158 | config XILINX_VIRTEX_II_PRO |
158 | bool | 159 | bool |
diff --git a/arch/powerpc/platforms/44x/Kconfig b/arch/powerpc/platforms/44x/Kconfig index bf5c7ff2e6e5..0d83a6a0397d 100644 --- a/arch/powerpc/platforms/44x/Kconfig +++ b/arch/powerpc/platforms/44x/Kconfig | |||
@@ -246,6 +246,7 @@ config IBM440EP_ERR42 | |||
246 | # Xilinx specific config options. | 246 | # Xilinx specific config options. |
247 | config XILINX_VIRTEX | 247 | config XILINX_VIRTEX |
248 | bool | 248 | bool |
249 | select DEFAULT_UIMAGE | ||
249 | 250 | ||
250 | # Xilinx Virtex 5 FXT FPGA architecture, selected by a Xilinx board above | 251 | # Xilinx Virtex 5 FXT FPGA architecture, selected by a Xilinx board above |
251 | config XILINX_VIRTEX_5_FXT | 252 | config XILINX_VIRTEX_5_FXT |
diff --git a/arch/powerpc/platforms/cell/Kconfig b/arch/powerpc/platforms/cell/Kconfig index 40e24c39ad06..50f17bdd3c16 100644 --- a/arch/powerpc/platforms/cell/Kconfig +++ b/arch/powerpc/platforms/cell/Kconfig | |||
@@ -13,7 +13,6 @@ config PPC_CELL_COMMON | |||
13 | config PPC_CELL_NATIVE | 13 | config PPC_CELL_NATIVE |
14 | bool | 14 | bool |
15 | select PPC_CELL_COMMON | 15 | select PPC_CELL_COMMON |
16 | select PPC_OF_PLATFORM_PCI | ||
17 | select MPIC | 16 | select MPIC |
18 | select IBM_NEW_EMAC_EMAC4 | 17 | select IBM_NEW_EMAC_EMAC4 |
19 | select IBM_NEW_EMAC_RGMII | 18 | select IBM_NEW_EMAC_RGMII |
@@ -25,6 +24,8 @@ config PPC_IBM_CELL_BLADE | |||
25 | bool "IBM Cell Blade" | 24 | bool "IBM Cell Blade" |
26 | depends on PPC64 && PPC_BOOK3S | 25 | depends on PPC64 && PPC_BOOK3S |
27 | select PPC_CELL_NATIVE | 26 | select PPC_CELL_NATIVE |
27 | select PPC_OF_PLATFORM_PCI | ||
28 | select PCI | ||
28 | select MMIO_NVRAM | 29 | select MMIO_NVRAM |
29 | select PPC_UDBG_16550 | 30 | select PPC_UDBG_16550 |
30 | select UDBG_RTAS_CONSOLE | 31 | select UDBG_RTAS_CONSOLE |
@@ -33,6 +34,8 @@ config PPC_CELLEB | |||
33 | bool "Toshiba's Cell Reference Set 'Celleb' Architecture" | 34 | bool "Toshiba's Cell Reference Set 'Celleb' Architecture" |
34 | depends on PPC64 && PPC_BOOK3S | 35 | depends on PPC64 && PPC_BOOK3S |
35 | select PPC_CELL_NATIVE | 36 | select PPC_CELL_NATIVE |
37 | select PPC_OF_PLATFORM_PCI | ||
38 | select PCI | ||
36 | select HAS_TXX9_SERIAL | 39 | select HAS_TXX9_SERIAL |
37 | select PPC_UDBG_BEAT | 40 | select PPC_UDBG_BEAT |
38 | select USB_OHCI_BIG_ENDIAN_MMIO | 41 | select USB_OHCI_BIG_ENDIAN_MMIO |
diff --git a/arch/powerpc/platforms/cell/ras.c b/arch/powerpc/platforms/cell/ras.c index 5f961c464cc4..296b5268754e 100644 --- a/arch/powerpc/platforms/cell/ras.c +++ b/arch/powerpc/platforms/cell/ras.c | |||
@@ -122,12 +122,23 @@ static int __init cbe_ptcal_enable_on_node(int nid, int order) | |||
122 | 122 | ||
123 | area->nid = nid; | 123 | area->nid = nid; |
124 | area->order = order; | 124 | area->order = order; |
125 | area->pages = alloc_pages_node(area->nid, GFP_KERNEL, area->order); | 125 | area->pages = alloc_pages_node(area->nid, GFP_KERNEL | GFP_THISNODE, |
126 | area->order); | ||
126 | 127 | ||
127 | if (!area->pages) | 128 | if (!area->pages) { |
129 | printk(KERN_WARNING "%s: no page on node %d\n", | ||
130 | __func__, area->nid); | ||
128 | goto out_free_area; | 131 | goto out_free_area; |
132 | } | ||
129 | 133 | ||
130 | addr = __pa(page_address(area->pages)); | 134 | /* |
135 | * We move the ptcal area to the middle of the allocated | ||
136 | * page, in order to avoid prefetches in memcpy and similar | ||
137 | * functions stepping on it. | ||
138 | */ | ||
139 | addr = __pa(page_address(area->pages)) + (PAGE_SIZE >> 1); | ||
140 | printk(KERN_DEBUG "%s: enabling PTCAL on node %d address=0x%016lx\n", | ||
141 | __func__, area->nid, addr); | ||
131 | 142 | ||
132 | ret = -EIO; | 143 | ret = -EIO; |
133 | if (rtas_call(ptcal_start_tok, 3, 1, NULL, area->nid, | 144 | if (rtas_call(ptcal_start_tok, 3, 1, NULL, area->nid, |
diff --git a/arch/powerpc/platforms/iseries/Kconfig b/arch/powerpc/platforms/iseries/Kconfig index 647e87787437..47a20cfb4486 100644 --- a/arch/powerpc/platforms/iseries/Kconfig +++ b/arch/powerpc/platforms/iseries/Kconfig | |||
@@ -17,6 +17,7 @@ config VIODASD | |||
17 | 17 | ||
18 | config VIOCD | 18 | config VIOCD |
19 | tristate "iSeries Virtual I/O CD support" | 19 | tristate "iSeries Virtual I/O CD support" |
20 | depends on BLOCK | ||
20 | select VIOPATH | 21 | select VIOPATH |
21 | help | 22 | help |
22 | If you are running Linux on an IBM iSeries system and you want to | 23 | If you are running Linux on an IBM iSeries system and you want to |
diff --git a/arch/powerpc/platforms/iseries/iommu.c b/arch/powerpc/platforms/iseries/iommu.c index ff43f1fd8343..40219823d9b0 100644 --- a/arch/powerpc/platforms/iseries/iommu.c +++ b/arch/powerpc/platforms/iseries/iommu.c | |||
@@ -174,9 +174,10 @@ static struct iommu_table *iommu_table_find(struct iommu_table * tbl) | |||
174 | } | 174 | } |
175 | 175 | ||
176 | 176 | ||
177 | void iommu_devnode_init_iSeries(struct pci_dev *pdev, struct device_node *dn) | 177 | static void pci_dma_dev_setup_iseries(struct pci_dev *pdev) |
178 | { | 178 | { |
179 | struct iommu_table *tbl; | 179 | struct iommu_table *tbl; |
180 | struct device_node *dn = pdev->sysdata; | ||
180 | struct pci_dn *pdn = PCI_DN(dn); | 181 | struct pci_dn *pdn = PCI_DN(dn); |
181 | const u32 *lsn = of_get_property(dn, "linux,logical-slot-number", NULL); | 182 | const u32 *lsn = of_get_property(dn, "linux,logical-slot-number", NULL); |
182 | 183 | ||
@@ -194,6 +195,8 @@ void iommu_devnode_init_iSeries(struct pci_dev *pdev, struct device_node *dn) | |||
194 | kfree(tbl); | 195 | kfree(tbl); |
195 | pdev->dev.archdata.dma_data = pdn->iommu_table; | 196 | pdev->dev.archdata.dma_data = pdn->iommu_table; |
196 | } | 197 | } |
198 | #else | ||
199 | #define pci_dma_dev_setup_iseries NULL | ||
197 | #endif | 200 | #endif |
198 | 201 | ||
199 | static struct iommu_table veth_iommu_table; | 202 | static struct iommu_table veth_iommu_table; |
@@ -251,5 +254,6 @@ void iommu_init_early_iSeries(void) | |||
251 | ppc_md.tce_build = tce_build_iSeries; | 254 | ppc_md.tce_build = tce_build_iSeries; |
252 | ppc_md.tce_free = tce_free_iSeries; | 255 | ppc_md.tce_free = tce_free_iSeries; |
253 | 256 | ||
257 | ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_iseries; | ||
254 | set_pci_dma_ops(&dma_iommu_ops); | 258 | set_pci_dma_ops(&dma_iommu_ops); |
255 | } | 259 | } |
diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c index 02a634faedbe..21cddc30220b 100644 --- a/arch/powerpc/platforms/iseries/pci.c +++ b/arch/powerpc/platforms/iseries/pci.c | |||
@@ -444,7 +444,6 @@ void __init iSeries_pcibios_fixup_resources(struct pci_dev *pdev) | |||
444 | pdev->sysdata = node; | 444 | pdev->sysdata = node; |
445 | allocate_device_bars(pdev); | 445 | allocate_device_bars(pdev); |
446 | iseries_device_information(pdev, bus, *sub_bus); | 446 | iseries_device_information(pdev, bus, *sub_bus); |
447 | iommu_devnode_init_iSeries(pdev, node); | ||
448 | } | 447 | } |
449 | 448 | ||
450 | /* | 449 | /* |
diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c index 66181821322a..1a7b5ae0c83e 100644 --- a/arch/powerpc/platforms/ps3/setup.c +++ b/arch/powerpc/platforms/ps3/setup.c | |||
@@ -45,10 +45,6 @@ | |||
45 | DEFINE_MUTEX(ps3_gpu_mutex); | 45 | DEFINE_MUTEX(ps3_gpu_mutex); |
46 | EXPORT_SYMBOL_GPL(ps3_gpu_mutex); | 46 | EXPORT_SYMBOL_GPL(ps3_gpu_mutex); |
47 | 47 | ||
48 | #if !defined(CONFIG_SMP) | ||
49 | static void smp_send_stop(void) {} | ||
50 | #endif | ||
51 | |||
52 | static union ps3_firmware_version ps3_firmware_version; | 48 | static union ps3_firmware_version ps3_firmware_version; |
53 | 49 | ||
54 | void ps3_get_firmware_version(union ps3_firmware_version *v) | 50 | void ps3_get_firmware_version(union ps3_firmware_version *v) |