[igt-dev] [PATCH 2/2] tests/kms_bw: sanitize the system state between subtests
Nidhi Gupta
nidhi1.gupta at intel.com
Thu May 12 07:35:49 UTC 2022
Before running the subtest we need to sanitize the system state
to default, since we can't trust the state of previous subtest, used
igt_display_reset() to sanitize the state.
Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
tests/kms_bw.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/kms_bw.c b/tests/kms_bw.c
index 60f87537..adc8bdfb 100644
--- a/tests/kms_bw.c
+++ b/tests/kms_bw.c
@@ -147,6 +147,8 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfo
int i = 0, num_pipes = 0;
enum pipe p;
+ igt_display_reset(&data->display);
+
/* Cannot use igt_display_get_n_pipes() due to fused pipes on i915 where they do
* not give the numver of valid crtcs and always return IGT_MAX_PIPES */
for_each_pipe(display, p) num_pipes++;
--
2.26.2
More information about the igt-dev
mailing list