powerpc: Hardware transactional memory support for POWER8
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest17 patches 6 repliesIn review
v2 changes from the cover letter
Adds signal handling
Removes some code for detecting when to restore all register or not Added tabort for local tlb invalidates
Rebased on benh's next tree
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | powerpc: Add new CPU feature bit for transactional memoryarch/ | +7 | 0 replies | |
| 1/17 | powerpc: Add new CPU feature bit for transactional memoryarch/ | +7 | 0 replies | |
| 1/17 | powerpc: Add new CPU feature bit for transactional memoryarch/ | +7 | 0 replies | |
| 2/17 | powerpc: Add new instructions for transactional memoryarch/ | +10 | 0 replies | |
| 2/17 | powerpc: Add new instructions for transactional memoryarch/ | +10 | 0 replies | |
| 2/17 | powerpc: Add new instructions for transactional memoryarch/ | +10 | 0 replies | |
| 3/17 | powerpc: Add additional state needed for transactional memory to thread structarch/ | +28 | 0 replies | |
| 3/17 | powerpc: Add additional state needed for transactional memory to thread structarch/ | +28 | 0 replies | |
| 3/17 | powerpc: Add additional state needed for transactional memory to thread structarch/ | +28 | 0 replies | |
| 4/17 | powerpc: New macros for transactional memory supportarch/ arch/ arch/ +3 more | +141 | 0 replies | |
| 4/17 | powerpc: New macros for transactional memory supportarch/ arch/ arch/ +3 more | +134 | 0 replies | |
| 4/17 | powerpc: New macros for transactional memory supportarch/ arch/ arch/ +3 more | +134 | 0 replies | |
| 5/17 | powerpc: Register defines for various transactional memory registersarch/ | +27 | 0 replies | |
| 5/17 | powerpc: Register defines for various transactional memory registersarch/ | +27 | 0 replies | |
| 5/17 | powerpc: Register defines for various transactional memory registersarch/ | +27 | 0 replies | |
| 6/17 | powerpc: Add transactional memory paca scratch register to show_regsarch/ arch/ arch/ +1 more | +9 | 0 replies | |
| 6/17 | powerpc: Add transactional memory paca scratch register to show_regsarch/ arch/ arch/ +1 more | +9 | 2 replies | |
| 6/17 | powerpc: Add transactional memory paca scratch register to show_regsarch/ arch/ arch/ +1 more | +11 | 0 replies | |
| 7/17 | powerpc: Add helper functions for transactional memory context switchingarch/ arch/ arch/ +1 more | +406 | 0 replies | |
| 7/17 | powerpc: Add helper functions for transactional memory context switchingarch/ arch/ arch/ +1 more | +411 | 0 replies | |
| 7/17 | powerpc: Add helper functions for transactional memory context switchingarch/ arch/ arch/ +1 more | +411 | 0 replies | |
| 8/17 | powerpc: Add FP/VSX and VMX register load functions for transactional memoryarch/ arch/ | +105 | 0 replies | |
| 8/17 | powerpc: Add FP/VSX and VMX register load functions for transactional memoryarch/ arch/ | +105 | 2 replies | |
| 8/17 | powerpc: Add FP/VSX and VMX register load functions for transactional memoryarch/ arch/ | +105 | 0 replies | |
| 9/17 | powerpc: Add reclaim and recheckpoint functions for context switching transactional memory processesarch/ | +112 | 0 replies | |
| 9/17 | powerpc: Add reclaim and recheckpoint functions for context switching transactional memory processesarch/ | +112 | 0 replies | |
| 9/17 | powerpc: Add reclaim and recheckpoint functions for context switching transactional memory processesarch/ | +112 | 0 replies | |
| 10/17 | powerpc: Add transactional memory unavaliable execption handlerarch/ arch/ | +40 | 0 replies | |
| 10/17 | powerpc: Add transactional memory unavaliable execption handlerarch/ arch/ | +40 | 0 replies | |
| 10/17 | powerpc: Add transactional memory unavaliable execption handlerarch/ arch/ | +40 | 0 replies | |
| 11/17 | powerpc: Assembler routines for FP/VSX/VMX unavailable during a transactionarch/ | +95 | 0 replies | |
| 11/17 | powerpc: Routines for FP/VSX/VMX unavailable during a transactionarch/ | +83 | 0 replies | |
| 11/17 | powerpc: Routines for FP/VSX/VMX unavailable during a transactionarch/ | +83 | 0 replies | |
| 12/17 | powerpc: Hook in new transactional memory codearch/ arch/ arch/ +3 more | +104 | 0 replies | |
| 12/17 | powerpc: Hook in new transactional memory codearch/ arch/ arch/ +1 more | +115 | 0 replies | |
| 12/17 | powerpc: Hook in new transactional memory codearch/ arch/ arch/ +1 more | +115 | 0 replies | |
| 13/17 | powerpc: Add new transactional memory state to the signal contextarch/ arch/ arch/ +1 more | +830 | 0 replies | |
| 13/17 | powerpc: Add new transactional memory state to the signal contextarch/ arch/ arch/ +1 more | +830 | 0 replies | |
| 13/17 | powerpc: Add new transactional memory state to the signal contextarch/ arch/ arch/ +1 more | +830 | 0 replies | |
| 14/17 | powerpc: Add transactional memory to POWER8 cpu featuresarch/ | +1 | 0 replies | |
| 14/17 | powerpc: Add transactional memory to POWER8 cpu featuresarch/ | +2 | 0 replies | |
| 14/17 | powerpc: Add transactional memory to POWER8 cpu featuresarch/ | +2 | 0 replies | |
| 15/17 | powerpc: Add config option for transactional memoryarch/ | +8 | 0 replies | |
| 15/17 | powerpc: Add config option for transactional memoryarch/ | +8 | 2 replies | |
| 15/17 | powerpc: Add config option for transactional memoryarch/ | +8 | 0 replies | |
| 16/17 | powerpc: Add transactional memory to pseries and ppc64 defconfigsarch/ arch/ | +4 | 0 replies | |
| 16/17 | powerpc: Add transactional memory to pseries and ppc64 defconfigsarch/ arch/ | +4 | 0 replies | |
| 16/17 | powerpc: Add transactional memory to pseries and ppc64 defconfigsarch/ arch/ | +4 | 0 replies | |
| 17/17 | powerpc: Documentation for transactional memory on powerpcDocumentation/ | +175 | 0 replies | |
| 17/17 | powerpc: Documentation for transactional memory on powerpcDocumentation/ | +175 | 0 replies | |
| 17/17 | powerpc: Documentation for transactional memory on powerpcDocumentation/ | +175 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/17] powerpc: Hardware transactional memory support for POWER8
POWER8 implements hardware transactional memory support. This patch series adds kernel support so that user programs can use this hardware transactional memory and the new state is properly context switched. It is not currently used by the kernel itself.
This patch series was originally developed by Matt Evans.
v2 changes
Adds signal handling
Removes some code for detecting when to restore all register or not Added tabort for local tlb invalidates
Rebased on benh's next tree
Basic overview of a POWER8 hardware transaction memory
=====================================================
Hardware transactional memory is a feature that enables a different form of atomic memory access. Several new instructions are presented to delimit transactions; transactions are guaranteed to either complete atomically or roll back and undo any partial changes.
A simple transaction looks like this:
begin_move_money:
tbegin
beq abort_handler
ld r4, SAVINGS_ACCT(r3) ld r5, CURRENT_ACCT(r3) subi r5, r5, 1 addi r4, r4, 1 std r4, SAVINGS_ACCT(r3) std r5, CURRENT_ACCT(r3)
tend
b continue
abort_handler:
... test for odd failures ...
/* Retry the transaction if it failed because it conflicted with
* someone else: */
b begin_move_money
The 'tbegin' instruction denotes the start point, and 'tend' the end point. Between these points the processor is in 'Transactional' state; any memory references will complete in one go if there are no conflicts with other transactional or non-transactional accesses within the system. In this example, the transaction completes as though it were normal straight-line code IF no other processor has touched SAVINGS_ACCT(r3) or CURRENT_ACCT(r3); an atomic move of money from the current account to the savings account has been performed. Even though the normal ld/std instructions are used (note no lwarx/stwcx), either *both* SAVINGS_ACCT(r3) and CURRENT_ACCT(r3) will be updated, or neither will be updated.
If, in the meantime, there is a conflict with the locations accessed by the transaction, the transaction will be aborted by the CPU. Register and memory state will roll back to that at the 'tbegin', and control will continue from 'tbegin+4'. The branch to abort_handler will be taken this second time; the abort handler can check the cause of the failure, and retry.
Checkpointed registers include all GPRs, FPRs, VRs/VSRs, LR, CCR/CR, CTR, FPCSR and a few other status/flag regs;