Skip to content

powerpc/xive: Improve diagnostic and activate StoreEOI on P10 PowerNV

Cédric Le Goater linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11powerpc/xive: Replace pr_devel() by pr_debug() to ease debugarch/powerpc/sysdev/xive/common.c arch/powerpc/sysdev/xive/spapr.c+34 -330 replies
2/11powerpc/xive: Introduce an helper to print out interrupt characteristicsarch/powerpc/sysdev/xive/common.c+27 -270 replies
3/11powerpc/xive: Activate StoreEOI on P10arch/powerpc/include/asm/opal-api.h arch/powerpc/sysdev/xive/native.c+3 -00 replies
4/11powerpc/xive: Introduce xive_core_debugfs_create()arch/powerpc/sysdev/xive/common.c+14 -32 replies
5/11powerpc/xive: Change the debugfs file 'xive' into a directoryarch/powerpc/sysdev/xive/common.c+25 -110 replies
6/11powerpc/xive: Rename the 'cpus' debugfs file to 'ipis'arch/powerpc/sysdev/xive/common.c+7 -200 replies
7/11powerpc/xive: Add a debugfs file to dump EQsarch/powerpc/sysdev/xive/common.c+37 -00 replies
8/11powerpc/xive: Add a debugfs toggle for StoreEOIarch/powerpc/sysdev/xive/common.c+14 -30 replies
9/11powerpc/xive: Add a kernel parameter for StoreEOIDocumentation/admin-guide/kernel-parameters.txt arch/powerpc/sysdev/xive/common.c+19 -00 replies
10/11powerpc/xive: Add a debugfs toggle for save-restorearch/powerpc/sysdev/xive/common.c arch/powerpc/sysdev/xive/native.c arch/powerpc/sysdev/xive/xive-internal.h+3 -10 replies
11/11powerpc/smp: Add a doorbell=off kernel parameterDocumentation/admin-guide/kernel-parameters.txt arch/powerpc/include/asm/dbell.h arch/powerpc/kernel/dbell.c +2 more+36 -24 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] powerpc/xive: Improve diagnostic and activate StoreEOI on P10 PowerNV

Hello,

This series tries to improve diagnostic support in the XIVE driver. It adds pr_debug() primitives that can be activated at run-time and changes the debugfs xive entry to expose more information :

/sys/kernel/debug/powerpc/xive/

    ├── eqs/
    │   ├── cpu0
    │   ├── cpu1
    │   ├── cpu2
    .   .
    │   └── cpu99
    ├── interrupts
    ├── ipis
    ├── save-restore
    └── store-eoi

It also introduces 2 new kernel parameters :

xive.store-eoi=off to deactivate StoreEOI at boot but it still be
reactivated through sysfs.

doorbell=off to deactivate doorbells for CPU IPIs
and XIVE instead

The first is a workaround in case of a FW advertising the wrong feature. It can be used to check performance also. The second is for PowerVM development and tests when the LP-per-thread mode is activated. Doorbells cannot be used in that case.

Finally, it activates StoreEOI support for the PowerNV platform. OPAL for P10 has been released and we are free to use this extension.

Thanks,

C.

Cédric Le Goater (11):
powerpc/xive: Replace pr_devel() by pr_debug() to ease debug powerpc/xive: Introduce an helper to print out interrupt
characteristics
powerpc/xive: Activate StoreEOI on P10 powerpc/xive: Introduce xive_core_debugfs_create() powerpc/xive: Change the debugfs file 'xive' into a directory powerpc/xive: Rename the 'cpus' debugfs file to 'ipis' powerpc/xive: Add a debugfs file to dump EQs powerpc/xive: Add a debugfs toggle for StoreEOI powerpc/xive: Add a kernel parameter for StoreEOI powerpc/xive: Add a debugfs toggle for save-restore powerpc/smp: Add a doorbell=off kernel parameter

 arch/powerpc/include/asm/dbell.h              |   1 +
 arch/powerpc/include/asm/opal-api.h           |   1 +
 arch/powerpc/sysdev/xive/xive-internal.h      |   1 +
 arch/powerpc/kernel/dbell.c                   |  17 ++
 arch/powerpc/platforms/powernv/smp.c          |   7 +-
 arch/powerpc/platforms/pseries/smp.c          |   3 +
 arch/powerpc/sysdev/xive/common.c             | 211 ++++++++++++------
 arch/powerpc/sysdev/xive/native.c             |   4 +-
 arch/powerpc/sysdev/xive/spapr.c              |  38 ++--
 .../admin-guide/kernel-parameters.txt         |  16 ++
 10 files changed, 209 insertions(+), 90 deletions(-)
Signature · 1 line
2.31.1