public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Richter <tmricht@linux.ibm.com>
To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org
Cc: Thomas Richter <tmricht@linux.ibm.com>
Subject: [PATCH 0/2] s390/pai: Add support for Processor Activity Instrumentation
Date: Wed,  4 May 2022 08:23:49 +0200	[thread overview]
Message-ID: <20220504062351.2954280-1-tmricht@linux.ibm.com> (raw)

This patch series adds support for Processor Activity Instrumentation
(PAI) for cryptography instructions. A new Performance Measurement
Unit (PMU) is introduced. It reads memory mapped counter values
incremented when a CPU executes certain instructions.
To differentiate between user space and kernel space counter
increments, the memory mapping is changed on system call
entry/exit and IRQ entry/exit. Patch 1 prepares that transition,
patch 2 introduces the new PMU and kernel vs user space
memory mappings.

Sven Schnelle (1):
  entry: Rename arch_check_user_regs() to arch_enter_from_user_mode()

Thomas Richter (1):
  s390/pai: Add support for cryptography counters

 arch/s390/include/asm/ctl_reg.h      |   4 +-
 arch/s390/include/asm/entry-common.h |  14 +-
 arch/s390/include/asm/lowcore.h      |   5 +-
 arch/s390/include/asm/nmi.h          |   2 +-
 arch/s390/include/asm/pai.h          |  74 +++
 arch/s390/kernel/Makefile            |   1 +
 arch/s390/kernel/entry.S             |   1 +
 arch/s390/kernel/nmi.c               |   6 +-
 arch/s390/kernel/perf_pai_crypto.c   | 688 +++++++++++++++++++++++++++
 arch/x86/include/asm/entry-common.h  |   4 +-
 include/linux/entry-common.h         |   8 +-
 kernel/entry/common.c                |   2 +-
 12 files changed, 793 insertions(+), 16 deletions(-)
 create mode 100644 arch/s390/include/asm/pai.h
 create mode 100644 arch/s390/kernel/perf_pai_crypto.c

-- 
2.32.0


             reply	other threads:[~2022-05-04  6:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-04  6:23 Thomas Richter [this message]
2022-05-04  6:23 ` [PATCH 1/2] entry: Rename arch_check_user_regs() to arch_enter_from_user_mode() Thomas Richter
2022-05-06 19:31   ` Peter Zijlstra
2022-05-09  6:20     ` Sven Schnelle
2022-05-09  7:08       ` Peter Zijlstra
2022-05-09  9:55         ` Heiko Carstens
2022-05-06 19:38   ` Thomas Gleixner
2022-05-06 19:49     ` Heiko Carstens
2022-05-06 21:55       ` Thomas Gleixner
2022-05-04  6:23 ` [PATCH 2/2] s390/pai: Add support for cryptography counters Thomas Richter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220504062351.2954280-1-tmricht@linux.ibm.com \
    --to=tmricht@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox