Skip to content

Commit 7da323b

Browse files
committed
Merge tag 'powerpc-3.19-5' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux
Pull powerpc fixes from Michael Ellerman: "Two powerpc fixes" * tag 'powerpc-3.19-5' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux: powerpc/powernv: Restore LPCR with LPCR_PECE1 cleared powerpc/xmon: Fix another endiannes issue in RTAS call from xmon
2 parents 41592e2 + 0eb1320 commit 7da323b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arch/powerpc/platforms/powernv/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ int pnv_save_sprs_for_winkle(void)
304304
* all cpus at boot. Get these reg values of current cpu and use the
305305
* same accross all cpus.
306306
*/
307-
uint64_t lpcr_val = mfspr(SPRN_LPCR);
307+
uint64_t lpcr_val = mfspr(SPRN_LPCR) & ~(u64)LPCR_PECE1;
308308
uint64_t hid0_val = mfspr(SPRN_HID0);
309309
uint64_t hid1_val = mfspr(SPRN_HID1);
310310
uint64_t hid4_val = mfspr(SPRN_HID4);

arch/powerpc/xmon/xmon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ static inline void disable_surveillance(void)
337337
args.token = rtas_token("set-indicator");
338338
if (args.token == RTAS_UNKNOWN_SERVICE)
339339
return;
340+
args.token = cpu_to_be32(args.token);
340341
args.nargs = cpu_to_be32(3);
341342
args.nret = cpu_to_be32(1);
342343
args.rets = &args.args[3];

0 commit comments

Comments
 (0)