diff options
author | Will Deacon <will.deacon@arm.com> | 2019-02-22 15:45:42 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2019-04-08 13:00:35 +0200 |
commit | 420af1554790a95e6813f56f63b6d2361614082b (patch) | |
tree | 67072735af8f8cad386cdf2396fe4c13c27a4459 /arch/powerpc/xmon/xmon.c | |
parent | ia64/mmiowb: Add unconditional mmiowb() to arch_spin_unlock() (diff) | |
download | linux-420af1554790a95e6813f56f63b6d2361614082b.tar.xz linux-420af1554790a95e6813f56f63b6d2361614082b.zip |
powerpc/mmiowb: Hook up mmwiob() implementation to asm-generic code
In a bid to kill off explicit mmiowb() usage in driver code, hook up
the asm-generic mmiowb() tracking code but provide a definition of
arch_mmiowb_state() so that the tracking data can remain in the paca
as it does at present
This replaces the existing (flawed) implementation.
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/powerpc/xmon/xmon.c')
-rw-r--r-- | arch/powerpc/xmon/xmon.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index a0f44f992360..13c6a47e6150 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -2429,7 +2429,10 @@ static void dump_one_paca(int cpu) DUMP(p, trap_save, "%#-*x"); DUMP(p, irq_soft_mask, "%#-*x"); DUMP(p, irq_happened, "%#-*x"); - DUMP(p, io_sync, "%#-*x"); +#ifdef CONFIG_MMIOWB + DUMP(p, mmiowb_state.nesting_count, "%#-*x"); + DUMP(p, mmiowb_state.mmiowb_pending, "%#-*x"); +#endif DUMP(p, irq_work_pending, "%#-*x"); DUMP(p, nap_state_lost, "%#-*x"); DUMP(p, sprg_vdso, "%#-*llx"); |