[igt-dev] [PATCH i-g-t 5/9] tests/kms_psr: Skip tests on mmap_gtt, if no mappable aperture

Ramalingam C
2020-01-31T17:31:20Z

Due to non availability of the mappable aperture on discrete GPUs,
skip the tests specific to mmap_gtt

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
---
tests/kms_psr.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/tests/kms_psr.c b/tests/kms_psr.c
index d9be87d927b2..13ed02f46ac4 100644
--- a/tests/kms_psr.c
+++ b/tests/kms_psr.c
@@ -270,6 +270,7 @@ static void run_test(data_t *data)
expected = "GREEN";
break;
case MMAP_GTT:
+ gem_require_mappable_ggtt(data->drm_fd);
ptr = gem_mmap__gtt(data->drm_fd, handle, data->mod_size,
PROT_WRITE);
gem_set_domain(data->drm_fd, handle,
--
2.20.1