Skip to content

msm+lib: Add test for buffer mapping permissions

Rob Clark igt-dev linux-arm-msm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2igt: Split out I/O helperslib/igt_io.c lib/igt_io.h lib/igt_sysfs.c +1 more+135 -403 replies
2/2msm: Add test for kernel buffer permissionslib/igt_msm.h tests/meson.build tests/msm_mapping.c+259 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPetri Latvala
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [igt-dev] [PATCH igt 0/2] msm+lib: Add test for buffer mapping permissions

From: Rob Clark <[email protected]>

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
Signature · 1 line
2.33.1