diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-11 20:34:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-11 20:34:00 -0400 |
commit | fd9879b9bb3258ebc27a4cc6d2d29f528f71901f (patch) | |
tree | 48b68994f5e8083aafe116533e8143cb2bf30c85 /arch/powerpc/include/asm/plpar_wrappers.h | |
parent | 81ae31d78239318610d7c2acb3e2610d622a5aa4 (diff) | |
parent | d53ba6b3bba33432cc37b7101a86f8f3392c46e7 (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/include/asm/plpar_wrappers.h')
-rw-r--r-- | arch/powerpc/include/asm/plpar_wrappers.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/powerpc/include/asm/plpar_wrappers.h b/arch/powerpc/include/asm/plpar_wrappers.h index 12c32c5f533d..67859edbf8fd 100644 --- a/arch/powerpc/include/asm/plpar_wrappers.h +++ b/arch/powerpc/include/asm/plpar_wrappers.h | |||
@@ -273,7 +273,7 @@ static inline long plpar_set_mode(unsigned long mflags, unsigned long resource, | |||
273 | static inline long enable_reloc_on_exceptions(void) | 273 | static inline long enable_reloc_on_exceptions(void) |
274 | { | 274 | { |
275 | /* mflags = 3: Exceptions at 0xC000000000004000 */ | 275 | /* mflags = 3: Exceptions at 0xC000000000004000 */ |
276 | return plpar_set_mode(3, 3, 0, 0); | 276 | return plpar_set_mode(3, H_SET_MODE_RESOURCE_ADDR_TRANS_MODE, 0, 0); |
277 | } | 277 | } |
278 | 278 | ||
279 | /* | 279 | /* |
@@ -284,7 +284,7 @@ static inline long enable_reloc_on_exceptions(void) | |||
284 | * returns H_SUCCESS. | 284 | * returns H_SUCCESS. |
285 | */ | 285 | */ |
286 | static inline long disable_reloc_on_exceptions(void) { | 286 | static inline long disable_reloc_on_exceptions(void) { |
287 | return plpar_set_mode(0, 3, 0, 0); | 287 | return plpar_set_mode(0, H_SET_MODE_RESOURCE_ADDR_TRANS_MODE, 0, 0); |
288 | } | 288 | } |
289 | 289 | ||
290 | /* | 290 | /* |
@@ -297,7 +297,7 @@ static inline long disable_reloc_on_exceptions(void) { | |||
297 | static inline long enable_big_endian_exceptions(void) | 297 | static inline long enable_big_endian_exceptions(void) |
298 | { | 298 | { |
299 | /* mflags = 0: big endian exceptions */ | 299 | /* mflags = 0: big endian exceptions */ |
300 | return plpar_set_mode(0, 4, 0, 0); | 300 | return plpar_set_mode(0, H_SET_MODE_RESOURCE_LE, 0, 0); |
301 | } | 301 | } |
302 | 302 | ||
303 | /* | 303 | /* |
@@ -310,17 +310,17 @@ static inline long enable_big_endian_exceptions(void) | |||
310 | static inline long enable_little_endian_exceptions(void) | 310 | static inline long enable_little_endian_exceptions(void) |
311 | { | 311 | { |
312 | /* mflags = 1: little endian exceptions */ | 312 | /* mflags = 1: little endian exceptions */ |
313 | return plpar_set_mode(1, 4, 0, 0); | 313 | return plpar_set_mode(1, H_SET_MODE_RESOURCE_LE, 0, 0); |
314 | } | 314 | } |
315 | 315 | ||
316 | static inline long plapr_set_ciabr(unsigned long ciabr) | 316 | static inline long plapr_set_ciabr(unsigned long ciabr) |
317 | { | 317 | { |
318 | return plpar_set_mode(0, 1, ciabr, 0); | 318 | return plpar_set_mode(0, H_SET_MODE_RESOURCE_SET_CIABR, ciabr, 0); |
319 | } | 319 | } |
320 | 320 | ||
321 | static inline long plapr_set_watchpoint0(unsigned long dawr0, unsigned long dawrx0) | 321 | static inline long plapr_set_watchpoint0(unsigned long dawr0, unsigned long dawrx0) |
322 | { | 322 | { |
323 | return plpar_set_mode(0, 2, dawr0, dawrx0); | 323 | return plpar_set_mode(0, H_SET_MODE_RESOURCE_SET_DAWR, dawr0, dawrx0); |
324 | } | 324 | } |
325 | 325 | ||
326 | #endif /* _ASM_POWERPC_PLPAR_WRAPPERS_H */ | 326 | #endif /* _ASM_POWERPC_PLPAR_WRAPPERS_H */ |