[PATCH v3 00/18] powerpc/vas: Add support for FTW

From: Sukadev Bhattiprolu
Date: Tue Nov 07 2017 - 21:24:08 EST


The first 10 patches in this set sanitize cpu/chip id to VAS id mapping,
improve vas_win_close() performance, add a check for return of credits
and cleans up some code.

Patch 11 adds debugfs support for the VAS window contexts.

Patches 12-18 add support for user space aka Fast thread-wakeup windows
in VAS. These include a patch from Michael Neuling to support emulating
the paste instruction.

Changelog[v3]:
- [Michael Ellerman] We don't need to disable/enable pagefaults
when emulating paste;
- [Michael Ellerman, Aneesh Kumar] Fix retval from emulate_paste()
and paste().
- [Nick Piggin] Drop CP_ABORT since set_thread_uses_vas() does
that now (in earlier patch) and add a check for return value.
- [Michael Ellerman] Fix couple of unininitialized variables
- Minor tweak to a debug message

Michael Neuling (1):
powerpc: Emulate paste instruction

Sukadev Bhattiprolu (17):
powerpc/vas: init missing fields from [rt]xattr
powerpc/vas: Validate window credits
powerpc/vas: Cleanup some debug code
powerpc/vas: Drop poll_window_cast_out().
powerpc/vas: Use helper to unpin/close window
powerpc/vas: Reduce polling interval for busy state
powerpc/vas: Save configured window credits
powerpc/vas: poll for return of window credits
powerpc/vas: Create cpu to vas id mapping
powerpc/vas, nx-842: Define and use chip_to_vas_id()
powerpc/vas: Export HVWC to debugfs
powerpc: have copy depend on CONFIG_BOOK3S_64
powerpc: Add support for setting SPRN_TIDR
powerpc: Define set_thread_uses_vas()
powerpc/vas: Define vas_win_paste_addr()
powerpc/vas: Define vas_win_id()
powerpc/vas: Add support for user receive window

arch/powerpc/include/asm/emulated_ops.h | 1 +
arch/powerpc/include/asm/ppc-opcode.h | 1 +
arch/powerpc/include/asm/processor.h | 3 +
arch/powerpc/include/asm/reg.h | 2 +
arch/powerpc/include/asm/switch_to.h | 5 +
arch/powerpc/include/asm/vas.h | 21 +++
arch/powerpc/kernel/process.c | 169 +++++++++++++++++--
arch/powerpc/kernel/traps.c | 67 ++++++++
arch/powerpc/platforms/powernv/Makefile | 3 +-
arch/powerpc/platforms/powernv/vas-debug.c | 209 ++++++++++++++++++++++++
arch/powerpc/platforms/powernv/vas-window.c | 242 +++++++++++++++++++++++-----
arch/powerpc/platforms/powernv/vas.c | 31 +++-
arch/powerpc/platforms/powernv/vas.h | 93 ++++++-----
drivers/crypto/nx/nx-842-powernv.c | 18 +--
14 files changed, 751 insertions(+), 114 deletions(-)
create mode 100644 arch/powerpc/platforms/powernv/vas-debug.c

--
2.7.4