aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powernv/setup.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-10-11 20:34:00 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-11 20:34:00 -0400
commitfd9879b9bb3258ebc27a4cc6d2d29f528f71901f (patch)
tree48b68994f5e8083aafe116533e8143cb2bf30c85 /arch/powerpc/platforms/powernv/setup.c
parent81ae31d78239318610d7c2acb3e2610d622a5aa4 (diff)
parentd53ba6b3bba33432cc37b7101a86f8f3392c46e7 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux
Pull powerpc updates from Michael Ellerman: "Here's a first pull request for powerpc updates for 3.18. The bulk of the additions are for the "cxl" driver, for IBM's Coherent Accelerator Processor Interface (CAPI). Most of it's in drivers/misc, which Greg & Arnd maintain, Greg said he was happy for us to take it through our tree. There's the usual minor cleanups and fixes, including a bit of noise in drivers from some of those. A bunch of updates to our EEH code, which has been getting more testing. Several nice speedups from Anton, including 20% in clear_page(). And a bunch of updates for freescale from Scott" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux: (130 commits) cxl: Fix afu_read() not doing finish_wait() on signal or non-blocking cxl: Add documentation for userspace APIs cxl: Add driver to Kbuild and Makefiles cxl: Add userspace header file cxl: Driver code for powernv PCIe based cards for userspace access cxl: Add base builtin support powerpc/mm: Add hooks for cxl powerpc/opal: Add PHB to cxl mode call powerpc/mm: Add new hash_page_mm() powerpc/powerpc: Add new PCIe functions for allocating cxl interrupts cxl: Add new header for call backs and structs powerpc/powernv: Split out set MSI IRQ chip code powerpc/mm: Export mmu_kernel_ssize and mmu_linear_psize powerpc/msi: Improve IRQ bitmap allocator powerpc/cell: Make spu_flush_all_slbs() generic powerpc/cell: Move data segment faulting code out of cell platform powerpc/cell: Move spu_handle_mm_fault() out of cell platform powerpc/pseries: Use new defines when calling H_SET_MODE powerpc: Update contact info in Documentation files powerpc/perf/hv-24x7: Simplify catalog_read() ...
Diffstat (limited to 'arch/powerpc/platforms/powernv/setup.c')
-rw-r--r--arch/powerpc/platforms/powernv/setup.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/setup.c b/arch/powerpc/platforms/powernv/setup.c
index 5a0e2dc6de5f..3f9546d8a51f 100644
--- a/arch/powerpc/platforms/powernv/setup.c
+++ b/arch/powerpc/platforms/powernv/setup.c
@@ -173,6 +173,14 @@ static int pnv_dma_set_mask(struct device *dev, u64 dma_mask)
173 return __dma_set_mask(dev, dma_mask); 173 return __dma_set_mask(dev, dma_mask);
174} 174}
175 175
176static u64 pnv_dma_get_required_mask(struct device *dev)
177{
178 if (dev_is_pci(dev))
179 return pnv_pci_dma_get_required_mask(to_pci_dev(dev));
180
181 return __dma_get_required_mask(dev);
182}
183
176static void pnv_shutdown(void) 184static void pnv_shutdown(void)
177{ 185{
178 /* Let the PCI code clear up IODA tables */ 186 /* Let the PCI code clear up IODA tables */
@@ -307,7 +315,7 @@ static int __init pnv_probe(void)
307 * Returns the cpu frequency for 'cpu' in Hz. This is used by 315 * Returns the cpu frequency for 'cpu' in Hz. This is used by
308 * /proc/cpuinfo 316 * /proc/cpuinfo
309 */ 317 */
310unsigned long pnv_get_proc_freq(unsigned int cpu) 318static unsigned long pnv_get_proc_freq(unsigned int cpu)
311{ 319{
312 unsigned long ret_freq; 320 unsigned long ret_freq;
313 321
@@ -335,6 +343,7 @@ define_machine(powernv) {
335 .power_save = power7_idle, 343 .power_save = power7_idle,
336 .calibrate_decr = generic_calibrate_decr, 344 .calibrate_decr = generic_calibrate_decr,
337 .dma_set_mask = pnv_dma_set_mask, 345 .dma_set_mask = pnv_dma_set_mask,
346 .dma_get_required_mask = pnv_dma_get_required_mask,
338#ifdef CONFIG_KEXEC 347#ifdef CONFIG_KEXEC
339 .kexec_cpu_down = pnv_kexec_cpu_down, 348 .kexec_cpu_down = pnv_kexec_cpu_down,
340#endif 349#endif