LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 0/2] sparc64: Add privileged ADI driver
@ 2018-04-18 16:29 Tom Hromatka
  2018-04-18 16:29 ` [PATCH 1/2] char: " Tom Hromatka
  2018-04-18 16:29 ` [PATCH 2/2] selftests: sparc64: char: Selftest for " Tom Hromatka
  0 siblings, 2 replies; 7+ messages in thread
From: Tom Hromatka @ 2018-04-18 16:29 UTC (permalink / raw)
  To: davem
  Cc: sparclinux, arnd, gregkh, linux-kernel, tom.hromatka, shuah,
	linux-kselftest, allen.pais, khalid.aziz, shannon.nelson,
	anthony.yznaga

ADI is a feature supported on SPARC M7 and newer processors to allow
hardware to catch rogue accesses to memory. ADI is supported for data
fetches only and not instruction fetches. An app can enable ADI on its
data pages, set version tags on them and use versioned addresses to
access the data pages. Upper bits of the address contain the version
tag. On M7 processors, upper four bits (bits 63-60) contain the version
tag. If a rogue app attempts to access ADI enabled data pages, its
access is blocked and processor generates an exception. Please see
Documentation/sparc/adi.txt for further details.

This patchset implements a char driver to read/write ADI versions from
privileged user space processes.  Intended consumers are makedumpfile
and crash.

Tom Hromatka (2):
  char: sparc64: Add privileged ADI driver
  selftests: sparc64: char: Selftest for privileged ADI driver

 drivers/char/Kconfig                               |  12 +
 drivers/char/Makefile                              |   1 +
 drivers/char/adi.c                                 | 262 ++++++++
 tools/testing/selftests/Makefile                   |   1 +
 tools/testing/selftests/sparc64/Makefile           |  52 ++
 tools/testing/selftests/sparc64/drivers/.gitignore |   1 +
 tools/testing/selftests/sparc64/drivers/Makefile   |  13 +
 tools/testing/selftests/sparc64/drivers/adi-test.c | 727 +++++++++++++++++++++
 8 files changed, 1069 insertions(+)
 create mode 100644 drivers/char/adi.c
 create mode 100644 tools/testing/selftests/sparc64/Makefile
 create mode 100644 tools/testing/selftests/sparc64/drivers/.gitignore
 create mode 100644 tools/testing/selftests/sparc64/drivers/Makefile
 create mode 100644 tools/testing/selftests/sparc64/drivers/adi-test.c

-- 
2.15.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-04-19 13:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-18 16:29 [PATCH 0/2] sparc64: Add privileged ADI driver Tom Hromatka
2018-04-18 16:29 ` [PATCH 1/2] char: " Tom Hromatka
2018-04-19  7:45   ` Greg KH
2018-04-19 13:14     ` Tom Hromatka
2018-04-18 16:29 ` [PATCH 2/2] selftests: sparc64: char: Selftest for " Tom Hromatka
2018-04-18 19:58   ` Shuah Khan
2018-04-18 20:03     ` Tom Hromatka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).