diff options
author | Radhakrishna Sripada <radhakrishna.sripada@intel.com> | 2017-09-21 17:21:46 -0700 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2017-09-22 06:04:28 -0700 |
commit | 7c79e2ca1f78d1d2fd95f66fbf98daaf4e56de41 (patch) | |
tree | f4149704a6229b1ce43f7fa1b7bffc454c165e4c | |
parent | 435fea5017d7a655ddb13f7897bfd628c9a5e6fb (diff) |
igt/kms_psr_sink_crc: Fix the bug in psr_drrs subtest
The substring to be matched is "DRRS Supported: Yes" and not
"DRRS Support: No". The kernel prints the DRRS status for all active
CRTC's. Matching for No support gives a false positive when multiple
CRTC's are active.
Fixes: 33355210a43e (igt/kms_psr_sink_crc: Add psr_drrs subtest)
Cc: C. Ramalingam <ramalingam.c@intel.com>
Cc: Lohith BS <lohith.bs@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
-rw-r--r-- | tests/kms_psr_sink_crc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index 1c25f2c8..f023b12c 100644 --- a/tests/kms_psr_sink_crc.c +++ b/tests/kms_psr_sink_crc.c @@ -290,7 +290,7 @@ static bool drrs_disabled(data_t *data) igt_debugfs_read(data->drm_fd, "i915_drrs_status", buf); - return strstr(buf, "DRRS Support: No\n"); + return !strstr(buf, "DRRS Supported: Yes\n"); } static void run_test(data_t *data) |