From: Rob Clark <robdclark@xxxxxxxxxxxx> 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