Skip to content

ppc/xive: updates for PowerVM

Nicholas Piggin qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest50 patches 141 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/50ppc/xive: Fix xive trace event outputhw/intc/trace-events+3 -33 replies
2/50ppc/xive: Report access size in XIVE TM operation error logshw/intc/xive.c+4 -43 replies
3/50ppc/xive2: Fix calculation of END queue sizeshw/intc/xive2.c include/hw/ppc/xive2_regs.h+20 -63 replies
4/50ppc/xive2: Remote VSDs need to match on forwarding addresshw/intc/pnv_xive2.c+17 -84 replies
5/50ppc/xive2: fix context push calculation of IPB priorityhw/intc/xive2.c+2 -13 replies
6/50ppc/xive: Fix PHYS NSR ring matchinghw/intc/xive.c+2 -13 replies
7/50ppc/xive2: Reset Generation Flipped bit on END Cache Watchhw/intc/pnv_xive2.c hw/intc/xive2.c+4 -34 replies
8/50ppc/xive2: Use fair irq target search algorithmhw/intc/pnv_xive2.c+16 -25 replies
9/50ppc/xive2: Fix irq preempted by lower priority group irqhw/intc/xive2.c+1 -13 replies
10/50ppc/xive2: Fix treatment of PIPR in CPPR updatehw/intc/xive2.c+3 -13 replies
11/50ppc/xive2: Do not present group interrupt on OS-push if precluded by CPPRhw/intc/xive2.c+3 -13 replies
12/50ppc/xive2: Set CPPR delivery should account for group priorityhw/intc/xive2.c+22 -103 replies
13/50ppc/xive: tctx_notify should clear the precluded interrupthw/intc/xive.c+3 -03 replies
14/50ppc/xive: Explicitly zero NSR after acceptinghw/intc/xive.c+2 -44 replies
15/50ppc/xive: Move NSR decoding into helper functionshw/intc/xive.c include/hw/ppc/xive.h+46 -93 replies
16/50ppc/xive: Fix pulling pool and phys contextshw/intc/xive.c+58 -83 replies
17/50pnv/xive2: Support ESB Escalationhw/intc/xive2.c include/hw/ppc/xive2.h include/hw/ppc/xive2_regs.h+59 -174 replies
18/50pnv/xive2: Print value in invalid register write logginghw/intc/pnv_xive2.c+16 -84 replies
19/50pnv/xive2: VC_ENDC_WATCH_SPEC regs should read back WATCH_FULLhw/intc/pnv_xive2.c+0 -13 replies
20/50pnv/xive2: Permit valid writes to VC/PC Flush Control registershw/intc/pnv_xive2.c+32 -44 replies
21/50ppc/xive2: add interrupt priority configuration flagshw/intc/pnv_xive2.c hw/intc/pnv_xive2_regs.h include/hw/ppc/xive2.h+18 -72 replies
22/50ppc/xive2: Support redistribution of group interruptshw/intc/xive2.c include/hw/ppc/xive2_regs.h+83 -42 replies
23/50ppc/xive: Add more interrupt notification tracinghw/intc/trace-events hw/intc/xive.c hw/intc/xive2.c+17 -52 replies
24/50ppc/xive2: Improve pool regs variable namehw/intc/xive2.c+5 -62 replies
25/50ppc/xive2: Implement "Ack OS IRQ to even report line" TIMA ophw/intc/xive.c hw/intc/xive2.c include/hw/ppc/xive.h +1 more+58 -42 replies
26/50ppc/xive2: Redistribute group interrupt precluded by CPPR updatehw/intc/xive2.c+60 -222 replies
27/50ppc/xive2: redistribute irqs for pool and phys ctx pullhw/intc/xive.c hw/intc/xive2.c include/hw/ppc/xive2.h +1 more+79 -351 reply
28/50ppc/xive: Change presenter .match_nvt to match not presenthw/intc/pnv_xive.c hw/intc/pnv_xive2.c hw/intc/spapr_xive.c +5 more+97 -1313 replies
29/50ppc/xive2: Redistribute group interrupt preempted by higher priority interrupthw/intc/xive2.c+12 -22 replies
30/50ppc/xive: Add xive_tctx_pipr_present() to present new interrupthw/intc/xive.c hw/intc/xive2.c include/hw/ppc/xive.h+10 -25 replies
31/50ppc/xive: Fix high prio group interrupt being preempted by low prio VPhw/intc/xive.c+17 -12 replies
32/50ppc/xive: Split xive recompute from IPB functionhw/intc/xive.c+22 -33 replies
33/50ppc/xive: tctx signaling registers reworkhw/intc/xive.c hw/intc/xive2.c include/hw/ppc/xive.h+126 -1062 replies
34/50ppc/xive: tctx_accept only lower irq line if an interrupt was presentedhw/intc/xive.c+1 -23 replies
35/50ppc/xive: Add xive_tctx_pipr_set() helper functionhw/intc/xive.c hw/intc/xive2.c include/hw/ppc/xive.h+20 -402 replies
36/50ppc/xive2: split tctx presentation processing from set CPPRhw/intc/xive2.c+76 -612 replies
37/50ppc/xive2: Consolidate presentation processing in context pushhw/intc/xive2.c+10 -322 replies
38/50ppc/xive2: Avoid needless interrupt re-check on CPPR sethw/intc/xive2.c+3 -12 replies
39/50ppc/xive: Assert group interrupts were redistributedhw/intc/xive.c hw/intc/xive2.c+3 -02 replies
40/50ppc/xive2: implement NVP context save restore for POOL ringhw/intc/xive2.c include/hw/ppc/xive2_regs.h+36 -162 replies
41/50ppc/xive2: Prevent pulling of pool context losing phys interrupthw/intc/xive2.c+10 -82 replies
42/50ppc/xive: Redistribute phys after pulling of pool contexthw/intc/xive.c hw/intc/xive2.c+17 -22 replies
43/50ppc/xive: Check TIMA operations validityhw/intc/xive.c include/hw/ppc/xive.h+116 -812 replies
44/50ppc/xive2: Implement pool context push TIMA ophw/intc/xive.c hw/intc/xive2.c include/hw/ppc/xive2.h+39 -172 replies
45/50ppc/xive2: redistribute group interrupts on context pushhw/intc/xive2.c+7 -12 replies
46/50ppc/xive2: Implement set_os_pending TIMA ophw/intc/xive.c hw/intc/xive2.c include/hw/ppc/xive2.h+32 -02 replies
47/50ppc/xive2: Implement POOL LGS push TIMA ophw/intc/xive.c+8 -02 replies
48/50ppc/xive2: Implement PHYS ring VP push TIMA ophw/intc/xive.c hw/intc/xive2.c include/hw/ppc/xive2.h+15 -02 replies
49/50ppc/xive: Split need_resend into restore_nvphw/intc/xive.c hw/intc/xive2.c+28 -242 replies
50/50ppc/xive2: Enable lower level contexts on VP pushhw/intc/xive2.c+28 -82 replies

Reviews trailers per patch

All 50 patches have a Reviewed-by or Acked-by.

PatchCaleb SchlossinMichael KowalGlenn MilesNicholas PigginGautam Menghani
SeriesT-b
1/50R-b R-b R-b
2/50R-b R-b R-b
3/50R-b R-b R-b
4/50R-b R-b R-b R-b
5/50R-b R-b
6/50R-b R-b R-b
7/50R-b R-b R-b R-b
8/50R-b R-b R-b R-b
9/50R-b R-b R-b
10/50R-b R-b R-b
11/50R-b R-b R-b
12/50R-b R-b
13/50R-b R-b R-b
14/50R-b R-b R-b
15/50R-b R-b R-b
16/50R-b R-b R-b
17/50R-b R-b R-b
18/50R-b R-b R-b R-b
19/50R-b R-b R-b
20/50R-b R-b R-b R-b
21/50R-b R-b
22/50R-b R-b
23/50R-b R-b
24/50R-b R-b
25/50R-b R-b
26/50R-b R-b
27/50R-b
28/50R-b R-b
29/50R-b R-b
30/50R-b R-b
31/50R-b R-b
32/50R-b R-b
33/50R-b R-b
34/50R-b
35/50R-b R-b
36/50R-b R-b
37/50R-b R-b
38/50R-b R-b
39/50R-b R-b
40/50R-b R-b
41/50R-b R-b
42/50R-b R-b
43/50R-b R-b
44/50R-b R-b
45/50R-b R-b
46/50R-b R-b
47/50R-b R-b
48/50R-b R-b
49/50R-b R-b
50/50R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 00/50] ppc/xive: updates for PowerVM

These changes gets the powernv xive2 to the point it is able to run PowerVM with good stability.

* Various bug fixes around lost interrupts particularly.
* Major group interrupt work, in particular around redistributing interrupts. Upstream group support is not in a complete or usable state as it is.
* Significant context push/pull improvements, particularly pool and phys context handling was quite incomplete beyond trivial OPAL case that pushes at boot.
* Improved tracing and checking for unimp and guest error situations.
* Various other missing feature support.

The ordering and grouping of patches in the series is not perfect, because it had been an ongoing development, and PowerVM only started to become stable toward the end. I did try to rearrange and improve things, but some were not worth rebasing cost (e.g., some of the pool/phys pull redistribution patches should have ideally been squashed or moved together), so please bear that in mind. Suggestions for further rearranging the series are fine, but I might just find they are too much effort to be worthwhile.

Thanks,
Nick

Glenn Miles (12):
ppc/xive2: Fix calculation of END queue sizes ppc/xive2: Use fair irq target search algorithm ppc/xive2: Fix irq preempted by lower priority group irq ppc/xive2: Fix treatment of PIPR in CPPR update pnv/xive2: Support ESB Escalation
ppc/xive2: add interrupt priority configuration flags ppc/xive2: Support redistribution of group interrupts ppc/xive: Add more interrupt notification tracing ppc/xive2: Improve pool regs variable name
ppc/xive2: Implement "Ack OS IRQ to even report line" TIMA op ppc/xive2: Redistribute group interrupt precluded by CPPR update ppc/xive2: redistribute irqs for pool and phys ctx pull

Michael Kowal (4):
ppc/xive2: Remote VSDs need to match on forwarding address ppc/xive2: Reset Generation Flipped bit on END Cache Watch pnv/xive2: Print value in invalid register write logging pnv/xive2: Permit valid writes to VC/PC Flush Control registers

Nicholas Piggin (34):
ppc/xive: Fix xive trace event output
ppc/xive: Report access size in XIVE TM operation error logs ppc/xive2: fix context push calculation of IPB priority ppc/xive: Fix PHYS NSR ring matching
ppc/xive2: Do not present group interrupt on OS-push if precluded by
CPPR
ppc/xive2: Set CPPR delivery should account for group priority ppc/xive: tctx_notify should clear the precluded interrupt ppc/xive: Explicitly zero NSR after accepting
ppc/xive: Move NSR decoding into helper functions ppc/xive: Fix pulling pool and phys contexts
pnv/xive2: VC_ENDC_WATCH_SPEC regs should read back WATCH_FULL ppc/xive: Change presenter .match_nvt to match not present ppc/xive2: Redistribute group interrupt preempted by higher priority
interrupt
ppc/xive: Add xive_tctx_pipr_present() to present new interrupt ppc/xive: Fix high prio group interrupt being preempted by low prio VP ppc/xive: Split xive recompute from IPB function
ppc/xive: tctx signaling registers rework
ppc/xive: tctx_accept only lower irq line if an interrupt was
presented
ppc/xive: Add xive_tctx_pipr_set() helper function ppc/xive2: split tctx presentation processing from set CPPR ppc/xive2: Consolidate presentation processing in context push ppc/xive2: Avoid needless interrupt re-check on CPPR set ppc/xive: Assert group interrupts were redistributed ppc/xive2: implement NVP context save restore for POOL ring ppc/xive2: Prevent pulling of pool context losing phys interrupt ppc/xive: Redistribute phys after pulling of pool context ppc/xive: Check TIMA operations validity
ppc/xive2: Implement pool context push TIMA op
ppc/xive2: redistribute group interrupts on context push ppc/xive2: Implement set_os_pending TIMA op
ppc/xive2: Implement POOL LGS push TIMA op
ppc/xive2: Implement PHYS ring VP push TIMA op
ppc/xive: Split need_resend into restore_nvp
ppc/xive2: Enable lower level contexts on VP push

 hw/intc/pnv_xive.c          |  16 +-
 hw/intc/pnv_xive2.c         | 139 +++++--
 hw/intc/pnv_xive2_regs.h    |   1 +
 hw/intc/spapr_xive.c        |  18 +-
 hw/intc/trace-events        |  12 +-
 hw/intc/xive.c              | 555 ++++++++++++++++++----------
 hw/intc/xive2.c             | 717 +++++++++++++++++++++++++++---------
 hw/ppc/pnv.c                |  48 +--
 hw/ppc/spapr.c              |  21 +-
 include/hw/ppc/xive.h       |  66 +++-
 include/hw/ppc/xive2.h      |  22 +-
 include/hw/ppc/xive2_regs.h |  22 +-
 12 files changed, 1145 insertions(+), 492 deletions(-)
Signature · 1 line
2.47.1