From: Rob Clark <robdclark@xxxxxxxxxxxx> The first patch adds a easy way to write debugfs files (needed to disable hw fault detection, so we can test the sw timeout fallback). The second adds some helpers for cmdstream building. And the third adds the new tests. v2: Fix headerdoc comments in first patch v3: Add helper to detect debugfs files and updated last patch to skip the one sub-test that depends on new debugfs when running on older kernels Rob Clark (4): lib/igt_debugfs: Add helper for writing debugfs files lib/igt_debugfs: Add helper for detecting debugfs files msm: Add helper for cmdstream building and submission msm: Add recovery tests lib/igt_debugfs.c | 38 ++++++++++ lib/igt_debugfs.h | 14 ++++ lib/igt_msm.c | 102 +++++++++++++++++++++++++ lib/igt_msm.h | 51 +++++++++++++ tests/meson.build | 1 + tests/msm_recovery.c | 174 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 380 insertions(+) create mode 100644 tests/msm_recovery.c -- 2.33.1