summaryrefslogtreecommitdiff
path: root/tests/kms_psr.c
diff options
context:
space:
mode:
authorJosé Roberto de Souza <jose.souza@intel.com>2019-01-11 16:48:45 -0800
committerJosé Roberto de Souza <jose.souza@intel.com>2019-01-22 14:09:12 -0800
commit13ac931a33f9ce43273af0232fa33ad122c3fa07 (patch)
treea774adeb973c4108b38b2ea1d3bbd9372118835c /tests/kms_psr.c
parent3f828a7a8cf22b5440372234b7814c4bd1b9315e (diff)
lib/psr: Add PSR2 support to the remaning psr functions
Add the mode parameter to psr_enable() and psr_sink_support() so PSR1 and PSR2 can be tested separated. For now all PSR tests will run only with PSR1 and the tests for PSR2 will come in the future. Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Diffstat (limited to 'tests/kms_psr.c')
-rw-r--r--tests/kms_psr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/kms_psr.c b/tests/kms_psr.c
index 23d000bd..c31dc317 100644
--- a/tests/kms_psr.c
+++ b/tests/kms_psr.c
@@ -191,7 +191,8 @@ static void fill_render(data_t *data, uint32_t handle, unsigned char color)
static bool sink_support(data_t *data)
{
- return data->with_psr_disabled || psr_sink_support(data->debugfs_fd);
+ return data->with_psr_disabled ||
+ psr_sink_support(data->debugfs_fd, PSR_MODE_1);
}
static bool psr_wait_entry_if_enabled(data_t *data)
@@ -410,7 +411,7 @@ int main(int argc, char *argv[])
data.devid = intel_get_drm_devid(data.drm_fd);
if (!data.with_psr_disabled)
- psr_enable(data.debugfs_fd);
+ psr_enable(data.debugfs_fd, PSR_MODE_1);
igt_require_f(sink_support(&data),
"Sink does not support PSR\n");