linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH igt 0/2] msm+lib: Add test for buffer mapping permissions
@ 2021-11-30  0:43 Rob Clark
  2021-11-30  0:43 ` [PATCH igt 1/2] igt: Split out I/O helpers Rob Clark
  2021-11-30  0:43 ` [PATCH igt 2/2] msm: Add test for kernel buffer permissions Rob Clark
  0 siblings, 2 replies; 6+ messages in thread
From: Rob Clark @ 2021-11-30  0:43 UTC (permalink / raw)
  To: igt-dev
  Cc: freedreno, linux-arm-msm, Akhil P Oommen, Jordan Crouse, Rob Clark

From: Rob Clark <robdclark@chromium.org>

First patch just splits out a couple of helpers from igt_sysfs so they
can be re-used.  Second patch adds a test which locates the address of
a given buffer, and verifies (depending on expected permissions) that
writes and/or reads trigger an iova fault rather than succeeding.

Rob Clark (2):
  igt: Split out I/O helpers
  msm: Add test for kernel buffer permissions

 lib/igt_io.c        |  96 +++++++++++++++++
 lib/igt_io.h        |  33 ++++++
 lib/igt_msm.h       |   1 +
 lib/igt_sysfs.c     |  45 +-------
 lib/meson.build     |   1 +
 tests/meson.build   |   1 +
 tests/msm_mapping.c | 257 ++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 394 insertions(+), 40 deletions(-)
 create mode 100644 lib/igt_io.c
 create mode 100644 lib/igt_io.h
 create mode 100644 tests/msm_mapping.c

-- 
2.33.1


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

end of thread, other threads:[~2021-12-07 11:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30  0:43 [PATCH igt 0/2] msm+lib: Add test for buffer mapping permissions Rob Clark
2021-11-30  0:43 ` [PATCH igt 1/2] igt: Split out I/O helpers Rob Clark
2021-12-01  8:38   ` [igt-dev] " Petri Latvala
2021-12-01 21:12     ` Rob Clark
2021-12-07 11:40   ` Petri Latvala
2021-11-30  0:43 ` [PATCH igt 2/2] msm: Add test for kernel buffer permissions Rob Clark

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).