[igt-dev] [PATCH i-g-t 07/20] tests/psr: Kill MMAP_GTT_WAITING
Dhinakaran Pandiyan
dhinakaran.pandiyan at intel.com
Wed Apr 11 02:37:19 UTC 2018
No PSR event should take 10s, don't see value in this test.
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>
---
tests/kms_psr_sink_crc.c | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c
index 94134b7d..d9cce5ea 100644
--- a/tests/kms_psr_sink_crc.c
+++ b/tests/kms_psr_sink_crc.c
@@ -39,7 +39,6 @@ bool running_with_psr_disabled;
enum operations {
PAGE_FLIP,
MMAP_GTT,
- MMAP_GTT_WAITING,
MMAP_CPU,
BLT,
RENDER,
@@ -52,7 +51,6 @@ static const char *op_str(enum operations op)
static const char * const name[] = {
[PAGE_FLIP] = "page_flip",
[MMAP_GTT] = "mmap_gtt",
- [MMAP_GTT_WAITING] = "mmap_gtt_waiting",
[MMAP_CPU] = "mmap_cpu",
[BLT] = "blt",
[RENDER] = "render",
@@ -319,29 +317,6 @@ static void run_test(data_t *data)
munmap(ptr, data->mod_size);
expected = "BLACK or TRANSPARENT mark on top of plane in test";
break;
- case MMAP_GTT_WAITING:
- ptr = gem_mmap__gtt(data->drm_fd, handle, data->mod_size,
- PROT_WRITE);
- gem_set_domain(data->drm_fd, handle,
- I915_GEM_DOMAIN_GTT, I915_GEM_DOMAIN_GTT);
-
- /* Printing white on white so the screen shouldn't change */
- memset(ptr, 0xff, data->mod_size);
- get_sink_crc(data, crc);
- if (data->test_plane == DRM_PLANE_TYPE_PRIMARY)
- assert_or_manual(strncmp(ref_crc, crc, CRC_LEN) == 0, "screen WHITE");
- else
- assert_or_manual(strncmp(ref_crc, crc, CRC_LEN) == 0,
- "GREEN background with WHITE box");
-
- igt_info("Waiting 10s...\n");
- sleep(10);
-
- /* Now lets print black to change the screen */
- memset(ptr, 0, data->mod_size);
- munmap(ptr, data->mod_size);
- expected = "BLACK or TRANSPARENT mark on top of plane in test";
- break;
case MMAP_CPU:
ptr = gem_mmap__cpu(data->drm_fd, handle, 0, data->mod_size,
PROT_WRITE);
--
2.14.1
More information about the igt-dev
mailing list