Skip to contentSkip to conversation

test/psr: Skip PSR2 tests when panel resolution is bigger than PSR2 HW supports

PATCH In review José Roberto de Souza 4 participants 19 messages Jan 23, 2019 – Jan 25, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/4 test/psr: Skip PSR2 tests when panel resolution is bigger than PSR2 HW supports

If resolution that will be used in PSR tests is bigger than the resolution that PSR2 HW supports, PSR2 will not be enabled so those tests should be skiped. Most of eDP panels only supports one resolution that is why we don't even try to use other resolution.

BSpec: 7713

Cc Dhinakaran Pandiyan <[email protected]>
Cc Rodrigo Vivi <[email protected]>
---
 tests/kms_psr.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
tests/kms_psr.c +19 -2
index 3e16a6bf..4792e158 100644
@@ -445,13 +445,30 @@ int main(int argc, char *argv[])
 		igt_require_f(sink_support(&data, PSR_MODE_1),
 			      "Sink does not support PSR\n");
 
-		data.supports_psr2 = sink_support(&data, PSR_MODE_2);
-
 		data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096);
 		igt_assert(data.bufmgr);
 		drm_intel_bufmgr_gem_enable_reuse(data.bufmgr);
 
 		display_init(&data);
+
+		data.supports_psr2 = sink_support(&data, PSR_MODE_2);
+		if (data.supports_psr2) {
+			uint32_t devid = intel_get_drm_devid(data.drm_fd);
+			uint16_t max_h = 0, max_v = 0;
+			int gen = intel_gen(devid);
+
+			if (gen >= 10 || IS_GEMINILAKE(devid)) {
+				max_h = 4096;
+				max_v = 2304;
+			} else if (gen == 9) {
+				max_h = 3640;
+				max_v = 2304;
+			}
+
+			if (data.mode->hdisplay > max_h ||
+			    data.mode->vdisplay > max_v)
+				data.supports_psr2 = false;
+		}
 	}
 
 	for (data.op_psr_mode = PSR_MODE_1; data.op_psr_mode <= PSR_MODE_2;
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

PATCH v4 2/4 tests/intel-ci: Add basic PSR2 tests to fast feedback test list

Lets run the same PSR1 basic tests for PSR2 to caught PSR2 regressions faster.

Cc Rodrigo Vivi <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
 tests/intel-ci/fast-feedback.testlist | 4 ++++
 1 file changed, 4 insertions(+)
tests/intel-ci/fast-feedback.testlist +4 -0
index da3c4c8e..e48cb8a5 100644
@@ -227,6 +227,10 @@ igt@kms_psr@primary_page_flip
 igt@kms_psr@cursor_plane_move
 igt@kms_psr@sprite_plane_onoff
 igt@kms_psr@primary_mmap_gtt
+igt@kms_psr@psr2_primary_page_flip
+igt@kms_psr@psr2_cursor_plane_move
+igt@kms_psr@psr2_sprite_plane_onoff
+igt@kms_psr@psr2_primary_mmap_gtt
 igt@kms_setmode@basic-clone-single-crtc
 igt@pm_backlight@basic-brightness
 igt@pm_rpm@basic-pci-d3-state
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Reviewed-by on v4 2/4
#2 lore raw

Re: [igt-dev] [PATCH i-g-t v4 2/4] tests/intel-ci: Add basic PSR2 tests to fast feedback test list

Quoted 6 lines · José Roberto de Souza

Lets run the same PSR1 basic tests for PSR2 to caught PSR2 regressions faster.

Cc Rodrigo Vivi <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>

If these tests pass on all CI machines,

Quoted 10 lines
---
 tests/intel-ci/fast-feedback.testlist | 4 ++++
 1 file changed, 4 insertions(+)
tests/intel- renamed from tests/intel-ci/fast-feedback.testlist +0 -0

ci/fast-feedback.testlist
index da3c4c8e..e48cb8a5 100644

tests/intel-ci/fast-feedback.testlist igt@kms_psr@primary_page_flip · line 236

Quoted 10 lines
tests/intel-ci/fast-feedback.testlist +4 -0
@@ -227,6 +227,10 @@ igt@kms_psr@primary_page_flip
 igt@kms_psr@cursor_plane_move
 igt@kms_psr@sprite_plane_onoff
 igt@kms_psr@primary_mmap_gtt
+igt@kms_psr@psr2_primary_page_flip
+igt@kms_psr@psr2_cursor_plane_move
+igt@kms_psr@psr2_sprite_plane_onoff
+igt@kms_psr@psr2_primary_mmap_gtt
 igt@kms_setmode@basic-clone-single-crtc
 igt@pm_backlight@basic-brightness
 igt@pm_rpm@basic-pci-d3-state

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#3 lore raw

PATCH v4 3/4 test: Add PSR2 selective update tests

In reply to José Roberto de Souza

This tests checks if hardware is able to do selective update when screen changes.
PSR2 don't trigger interruptions and the 'PSR2 SU status' register is not kept loaded all the times, so it is necessary keep polling PSR status debugfs until those values are loaded.

Also from DEEP_SLEEP state HW will not do a seletive update, as most of the memory/context is lost in deep sleep state hardware will need to exit PSR mode then wait a configured number of frames to activate PSR again to then start doing seletive updates, that is why just one screen change is not enough to pass this tests.

When a selective update happens and the values are loaded and read from debugfs it is compared with the expected value of seletive update blocks, if matches the polling is stopped and the test passed otherwise it will wait until it reachs a maximum number o screen changes to fail the test.

v2: Using new SU blocks debugfs output

v3:
- removed the timerfd to fail the test, now failing based in a maximum number of screen changes
- removing thread to read debugfs, read from main thread is enough
- improved commit message

v4:
- getting cairo context for frontbuffer test in prepare()
- droppoing poll(), using blocking timerfd instead

Cc Rodrigo Vivi <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
 lib/igt_psr.c          |  29 ++++
 lib/igt_psr.h          |   1 +
 tests/Makefile.sources |   1 +
 tests/kms_psr2_su.c    | 292 +++++++++++++++++++++++++++++++++++++++++
 tests/meson.build      |   1 +
 5 files changed, 324 insertions(+)
 create mode 100644 tests/kms_psr2_su.c
lib/igt_psr.c +29 -0
index d726fad5..8c0f05e8 100644
@@ -178,3 +178,32 @@ bool psr_sink_support(int debugfs_fd, enum psr_mode mode)
 		 */
 		return strstr(buf, "Sink support: yes [0x03]");
 }
+
+#define PSR2_SU_BLOCK_STR_LOOKUP "PSR2 SU blocks:\n0\t"
+
+static bool
+psr2_read_last_num_su_blocks_val(int debugfs_fd, uint16_t *num_su_blocks)
+{
+	char buf[PSR_STATUS_MAX_LEN];
+	char *str;
+	int ret;
+
+	ret = igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf,
+				      sizeof(buf));
+	if (ret < 0)
+		return false;
+
+	str = strstr(buf, PSR2_SU_BLOCK_STR_LOOKUP);
+	if (!str)
+		return false;
+
+	str = &str[strlen(PSR2_SU_BLOCK_STR_LOOKUP)];
+	*num_su_blocks = (uint16_t)strtol(str, NULL, 10);
+
+	return true;
+}
+
+bool psr2_wait_su(int debugfs_fd, uint16_t *num_su_blocks)
+{
+	return igt_wait(psr2_read_last_num_su_blocks_val(debugfs_fd, num_su_blocks), 40, 1);
+}
lib/igt_psr.h +1 -0
index 7e7017bf..49599cf8 100644
@@ -40,5 +40,6 @@ bool psr_wait_update(int debugfs_fd, enum psr_mode mode);
 bool psr_enable(int debugfs_fd, enum psr_mode);
 bool psr_disable(int debugfs_fd);
 bool psr_sink_support(int debugfs_fd, enum psr_mode);
+bool psr2_wait_su(int debugfs_fd, uint16_t *num_su_blocks);
 
 #endif
tests/Makefile.sources +1 -0
index 519eac79..9174aecc 100644
@@ -80,6 +80,7 @@ TESTS_progs = \
 	kms_plane_scaling \
 	kms_properties \
 	kms_psr \
+	kms_psr2_su \
 	kms_pwrite_crc \
 	kms_rmfb \
 	kms_rotation_crc \
tests/kms_psr2_su.c new file +292 -0

292 lines not on this page · raw message

tests/meson.build +1 -0
index e14ab2b4..682ca939 100644
@@ -50,6 +50,7 @@ test_progs = [
 	'kms_plane_scaling',
 	'kms_properties',
 	'kms_psr',
+	'kms_psr2_su',
 	'kms_pwrite_crc',
 	'kms_rmfb',
 	'kms_rotation_crc',
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#4 lore raw

Re: [igt-dev] [PATCH i-g-t v4 3/4] test: Add PSR2 selective update tests

Quoted 213 lines · José Roberto de Souza

This tests checks if hardware is able to do selective update when screen changes.
PSR2 don't trigger interruptions and the 'PSR2 SU status' register is not kept loaded all the times, so it is necessary keep polling PSR status debugfs until those values are loaded.

Also from DEEP_SLEEP state HW will not do a seletive update, as most of the memory/context is lost in deep sleep state hardware will need to exit PSR mode then wait a configured number of frames to activate PSR again to then start doing seletive updates, that is why just one screen change is not enough to pass this tests.

When a selective update happens and the values are loaded and read from debugfs it is compared with the expected value of seletive update blocks, if matches the polling is stopped and the test passed otherwise it will wait until it reachs a maximum number o screen changes to fail the test.

v2: Using new SU blocks debugfs output

v3:
- removed the timerfd to fail the test, now failing based in a maximum number of screen changes
- removing thread to read debugfs, read from main thread is enough
- improved commit message

v4:
- getting cairo context for frontbuffer test in prepare()
- droppoing poll(), using blocking timerfd instead

Cc Rodrigo Vivi <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
 lib/igt_psr.c          |  29 ++++
 lib/igt_psr.h          |   1 +
 tests/Makefile.sources |   1 +
 tests/kms_psr2_su.c    | 292
+++++++++++++++++++++++++++++++++++++++++
 tests/meson.build      |   1 +
 5 files changed, 324 insertions(+)
 create mode 100644 tests/kms_psr2_su.c
lib/igt_psr.c +5 -0
index d726fad5..8c0f05e8 100644
@@ -178,3 +178,32 @@ bool psr_sink_support(int debugfs_fd, enum
 psr_mode mode)
 		 */
 		return strstr(buf, "Sink support: yes [0x03]");
 }
+
+#define PSR2_SU_BLOCK_STR_LOOKUP "PSR2 SU blocks:\n0\t"
+
+static bool
+psr2_read_last_num_su_blocks_val(int debugfs_fd, uint16_t

*num_su_blocks)

lib/igt_psr.c +6 -0
+{
+	char buf[PSR_STATUS_MAX_LEN];
+	char *str;
+	int ret;
+
+	ret = igt_debugfs_simple_read(debugfs_fd,

"i915_edp_psr_status", buf,

lib/igt_psr.c +17 -0
+				      sizeof(buf));
+	if (ret < 0)
+		return false;
+
+	str = strstr(buf, PSR2_SU_BLOCK_STR_LOOKUP);
+	if (!str)
+		return false;
+
+	str = &str[strlen(PSR2_SU_BLOCK_STR_LOOKUP)];
+	*num_su_blocks = (uint16_t)strtol(str, NULL, 10);
+
+	return true;
+}
+
+bool psr2_wait_su(int debugfs_fd, uint16_t *num_su_blocks)
+{
+	return igt_wait(psr2_read_last_num_su_blocks_val(debugfs_fd,

num_su_blocks), 40, 1);

lib/igt_psr.c +1 -0
+}
lib/igt_psr.h +1 -0
index 7e7017bf..49599cf8 100644
@@ -40,5 +40,6 @@ bool psr_wait_update(int debugfs_fd, enum psr_mode
 mode);
 bool psr_enable(int debugfs_fd, enum psr_mode);
 bool psr_disable(int debugfs_fd);
 bool psr_sink_support(int debugfs_fd, enum psr_mode);
+bool psr2_wait_su(int debugfs_fd, uint16_t *num_su_blocks);
 

#endif

tests/Makefile.sources +1 -0
index 519eac79..9174aecc 100644
@@ -80,6 +80,7 @@ TESTS_progs = \
 	kms_plane_scaling \
 	kms_properties \
 	kms_psr \
+	kms_psr2_su \
 	kms_pwrite_crc \
 	kms_rmfb \
 	kms_rotation_crc \
tests/kms_psr2_su.c new file +4 -0
new file mode 100644
index 00000000..344ddffe
@@ -0,0 +1,292 @@
+/*
+ * Copyright © 2019 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person

obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */

tests/kms_psr2_su.c new file +16 -0
+
+#include "igt.h"
+#include "igt_sysfs.h"
+#include "igt_psr.h"
+#include <errno.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/timerfd.h>
+#include "intel_bufmgr.h"
+
+IGT_TEST_DESCRIPTION("Test PSR2 selective update");
+
+#define SQUARE_SIZE 100
+/* each selective update block is 4 lines tall */
+#define EXPECTED_NUM_SU_BLOCKS ((SQUARE_SIZE / 4) + (SQUARE_SIZE % 4

? 1 : 0))

tests/kms_psr2_su.c new file +3 -0
+
+/*
+ * Minimum is 15 as the number of frames to active PSR2 could be

configured
+ * to 15 frames plus a few more in case we miss a selective update between
+ * debugfs reads.
+ */

tests/kms_psr2_su.c new file +37 -0
+#define MAX_SCREEN_CHANGES 20
+
+enum operations {
+	PAGE_FLIP,
+	FRONTBUFFER,
+	LAST
+};
+
+static const char *op_str(enum operations op)
+{
+	static const char * const name[] = {
+		[PAGE_FLIP] = "page_flip",
+		[FRONTBUFFER] = "frontbuffer"
+	};
+
+	return name[op];
+}
+
+typedef struct {
+	int drm_fd;
+	int debugfs_fd;
+	igt_display_t display;
+	drm_intel_bufmgr *bufmgr;
+	drmModeModeInfo *mode;
+	igt_output_t *output;
+	struct igt_fb fb[2];
+	enum operations op;
+	cairo_t *cr;
+	int change_screen_timerfd;
+	uint32_t screen_changes;
+} data_t;
+
+static void setup_output(data_t *data)
+{
+	igt_display_t *display = &data->display;
+	igt_output_t *output;
+	enum pipe pipe;

tests/kms_psr2_su.c line 92

Quoted 10 lines
tests/kms_psr2_su.c new file +10 -0
+
+	for_each_pipe_with_valid_output(display, pipe, output) {
+		drmModeConnectorPtr c = output->config.connector;
+
+		if (c->connector_type != DRM_MODE_CONNECTOR_eDP)
+			continue;
+
+		igt_output_set_pipe(output, pipe);
+		data->output = output;
+		data->mode = igt_output_get_mode(output);

Won't this fail the same way as other PSR2 tests on WHL because of the default mode exceeding PSR2 capability?

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#5 lore raw

Re: [igt-dev] [PATCH i-g-t v4 3/4] test: Add PSR2 selective update tests

Quoted 228 lines · Dhinakaran Pandiyan
Quoted 227 lines · José Roberto de Souza

This tests checks if hardware is able to do selective update when screen changes.
PSR2 don't trigger interruptions and the 'PSR2 SU status' register is not kept loaded all the times, so it is necessary keep polling PSR status debugfs until those values are loaded.

Also from DEEP_SLEEP state HW will not do a seletive update, as most of the memory/context is lost in deep sleep state hardware will
need to exit PSR mode then wait a configured number of frames to activate PSR again to then start doing seletive updates, that is why
just one screen change is not enough to pass this tests.

When a selective update happens and the values are loaded and read from debugfs it is compared with the expected value of seletive update blocks, if matches the polling is stopped and the test passed
otherwise it will wait until it reachs a maximum number o screen changes to fail the test.

v2: Using new SU blocks debugfs output

v3:
- removed the timerfd to fail the test, now failing based in a maximum number of screen changes
- removing thread to read debugfs, read from main thread is enough
- improved commit message

v4:
- getting cairo context for frontbuffer test in prepare()
- droppoing poll(), using blocking timerfd instead

Cc Rodrigo Vivi <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
 lib/igt_psr.c          |  29 ++++
 lib/igt_psr.h          |   1 +
 tests/Makefile.sources |   1 +
 tests/kms_psr2_su.c    | 292
+++++++++++++++++++++++++++++++++++++++++
 tests/meson.build      |   1 +
 5 files changed, 324 insertions(+)
 create mode 100644 tests/kms_psr2_su.c
lib/igt_psr.c +5 -0
index d726fad5..8c0f05e8 100644
@@ -178,3 +178,32 @@ bool psr_sink_support(int debugfs_fd, enum
 psr_mode mode)
 		 */
 		return strstr(buf, "Sink support: yes [0x03]");
 }
+
+#define PSR2_SU_BLOCK_STR_LOOKUP "PSR2 SU blocks:\n0\t"
+
+static bool
+psr2_read_last_num_su_blocks_val(int debugfs_fd, uint16_t

*num_su_blocks)

lib/igt_psr.c +6 -0
+{
+	char buf[PSR_STATUS_MAX_LEN];
+	char *str;
+	int ret;
+
+	ret = igt_debugfs_simple_read(debugfs_fd,

"i915_edp_psr_status", buf,

lib/igt_psr.c +17 -0
+				      sizeof(buf));
+	if (ret < 0)
+		return false;
+
+	str = strstr(buf, PSR2_SU_BLOCK_STR_LOOKUP);
+	if (!str)
+		return false;
+
+	str = &str[strlen(PSR2_SU_BLOCK_STR_LOOKUP)];
+	*num_su_blocks = (uint16_t)strtol(str, NULL, 10);
+
+	return true;
+}
+
+bool psr2_wait_su(int debugfs_fd, uint16_t *num_su_blocks)
+{
+	return igt_wait(psr2_read_last_num_su_blocks_val(debugfs_fd,

num_su_blocks), 40, 1);

lib/igt_psr.c +1 -0
+}
lib/igt_psr.h +0 -0
index 7e7017bf..49599cf8 100644
@@ -40,5 +40,6 @@ bool psr_wait_update(int debugfs_fd, enum

psr_mode
mode);
bool psr_enable(int debugfs_fd, enum psr_mode); bool psr_disable(int debugfs_fd);
bool psr_sink_support(int debugfs_fd, enum psr_mode);

lib/igt_psr.h +1 -0
+bool psr2_wait_su(int debugfs_fd, uint16_t *num_su_blocks);
 
 #endif
tests/Makefile.sources +1 -0
index 519eac79..9174aecc 100644
@@ -80,6 +80,7 @@ TESTS_progs = \
 	kms_plane_scaling \
 	kms_properties \
 	kms_psr \
+	kms_psr2_su \
 	kms_pwrite_crc \
 	kms_rmfb \
 	kms_rotation_crc \
tests/kms_psr2_su.c new file +4 -0
new file mode 100644
index 00000000..344ddffe
@@ -0,0 +1,292 @@
+/*
+ * Copyright © 2019 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person

obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom
the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including
the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */

tests/kms_psr2_su.c new file +16 -0
+
+#include "igt.h"
+#include "igt_sysfs.h"
+#include "igt_psr.h"
+#include <errno.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/timerfd.h>
+#include "intel_bufmgr.h"
+
+IGT_TEST_DESCRIPTION("Test PSR2 selective update");
+
+#define SQUARE_SIZE 100
+/* each selective update block is 4 lines tall */
+#define EXPECTED_NUM_SU_BLOCKS ((SQUARE_SIZE / 4) + (SQUARE_SIZE %

4
? 1 : 0))

tests/kms_psr2_su.c new file +3 -0
+
+/*
+ * Minimum is 15 as the number of frames to active PSR2 could be

configured
+ * to 15 frames plus a few more in case we miss a selective update between
+ * debugfs reads.
+ */

tests/kms_psr2_su.c new file +43 -0
+#define MAX_SCREEN_CHANGES 20
+
+enum operations {
+	PAGE_FLIP,
+	FRONTBUFFER,
+	LAST
+};
+
+static const char *op_str(enum operations op)
+{
+	static const char * const name[] = {
+		[PAGE_FLIP] = "page_flip",
+		[FRONTBUFFER] = "frontbuffer"
+	};
+
+	return name[op];
+}
+
+typedef struct {
+	int drm_fd;
+	int debugfs_fd;
+	igt_display_t display;
+	drm_intel_bufmgr *bufmgr;
+	drmModeModeInfo *mode;
+	igt_output_t *output;
+	struct igt_fb fb[2];
+	enum operations op;
+	cairo_t *cr;
+	int change_screen_timerfd;
+	uint32_t screen_changes;
+} data_t;
+
+static void setup_output(data_t *data)
+{
+	igt_display_t *display = &data->display;
+	igt_output_t *output;
+	enum pipe pipe;
+
+	for_each_pipe_with_valid_output(display, pipe, output) {
+		drmModeConnectorPtr c = output->config.connector;
+
+		if (c->connector_type != DRM_MODE_CONNECTOR_eDP)
+			continue;
Quoted 8 lines

tests/kms_psr2_su.c line 92

Quoted 4 lines
tests/kms_psr2_su.c new file +4 -0
+
+		igt_output_set_pipe(output, pipe);
+		data->output = output;
+		data->mode = igt_output_get_mode(output);

Won't this fail the same way as other PSR2 tests on WHL because of the
default mode exceeding PSR2 capability?

As the goal of this test is not to test if PSR2 can be enabled, on igt_fixture() we have:

igt_require(psr_enable(data.debugfs_fd, PSR_MODE_2)); igt_require(psr_wait_entry(data.debugfs_fd, PSR_MODE_2));

So this test will be skiped and the error will be reported by kms_psr@psr2_basic and other tests in kms_psr.

Quoted 1 line

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#6 lore raw

Re: [igt-dev] [PATCH i-g-t v4 3/4] test: Add PSR2 selective update tests

Quoted 246 lines · Jose
Quoted 236 lines · Dhinakaran Pandiyan
Quoted 235 lines · José Roberto de Souza

This tests checks if hardware is able to do selective update when screen changes.
PSR2 don't trigger interruptions and the 'PSR2 SU status' register
is not kept loaded all the times, so it is necessary keep polling PSR status debugfs until those values are loaded.

Also from DEEP_SLEEP state HW will not do a seletive update, as most of the memory/context is lost in deep sleep state hardware will
need to exit PSR mode then wait a configured number of frames to activate PSR again to then start doing seletive updates, that is why
just one screen change is not enough to pass this tests.

When a selective update happens and the values are loaded and read
from debugfs it is compared with the expected value of seletive update blocks, if matches the polling is stopped and the test passed
otherwise it will wait until it reachs a maximum number o screen changes to fail the test.

v2: Using new SU blocks debugfs output

v3:
- removed the timerfd to fail the test, now failing based in a maximum number of screen changes
- removing thread to read debugfs, read from main thread is enough
- improved commit message

v4:
- getting cairo context for frontbuffer test in prepare()
- droppoing poll(), using blocking timerfd instead

Cc Rodrigo Vivi <[email protected]>
Cc Dhinakaran Pandiyan <[email protected]>
---
 lib/igt_psr.c          |  29 ++++
 lib/igt_psr.h          |   1 +
 tests/Makefile.sources |   1 +
 tests/kms_psr2_su.c    | 292
+++++++++++++++++++++++++++++++++++++++++
 tests/meson.build      |   1 +
 5 files changed, 324 insertions(+)
 create mode 100644 tests/kms_psr2_su.c
lib/igt_psr.c +5 -0
index d726fad5..8c0f05e8 100644
@@ -178,3 +178,32 @@ bool psr_sink_support(int debugfs_fd, enum
 psr_mode mode)
 		 */
 		return strstr(buf, "Sink support: yes [0x03]");
 }
+
+#define PSR2_SU_BLOCK_STR_LOOKUP "PSR2 SU blocks:\n0\t"
+
+static bool
+psr2_read_last_num_su_blocks_val(int debugfs_fd, uint16_t

*num_su_blocks)

lib/igt_psr.c +6 -0
+{
+	char buf[PSR_STATUS_MAX_LEN];
+	char *str;
+	int ret;
+
+	ret = igt_debugfs_simple_read(debugfs_fd,

"i915_edp_psr_status", buf,

lib/igt_psr.c +17 -0
+				      sizeof(buf));
+	if (ret < 0)
+		return false;
+
+	str = strstr(buf, PSR2_SU_BLOCK_STR_LOOKUP);
+	if (!str)
+		return false;
+
+	str = &str[strlen(PSR2_SU_BLOCK_STR_LOOKUP)];
+	*num_su_blocks = (uint16_t)strtol(str, NULL, 10);
+
+	return true;
+}
+
+bool psr2_wait_su(int debugfs_fd, uint16_t *num_su_blocks)
+{
+	return igt_wait(psr2_read_last_num_su_blocks_val(debugfs_fd,

num_su_blocks), 40, 1);

lib/igt_psr.c +1 -0
+}
lib/igt_psr.h +0 -0
index 7e7017bf..49599cf8 100644
@@ -40,5 +40,6 @@ bool psr_wait_update(int debugfs_fd, enum

psr_mode
mode);
bool psr_enable(int debugfs_fd, enum psr_mode); bool psr_disable(int debugfs_fd);
bool psr_sink_support(int debugfs_fd, enum psr_mode);

lib/igt_psr.h +1 -0
+bool psr2_wait_su(int debugfs_fd, uint16_t *num_su_blocks);
 
 #endif
tests/Makefile.sources +1 -0
index 519eac79..9174aecc 100644
@@ -80,6 +80,7 @@ TESTS_progs = \
 	kms_plane_scaling \
 	kms_properties \
 	kms_psr \
+	kms_psr2_su \
 	kms_pwrite_crc \
 	kms_rmfb \
 	kms_rotation_crc \
tests/kms_psr2_su.c new file +4 -0
new file mode 100644
index 00000000..344ddffe
@@ -0,0 +1,292 @@
+/*
+ * Copyright © 2019 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person

obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without
limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom
the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including
the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */

tests/kms_psr2_su.c new file +16 -0
+
+#include "igt.h"
+#include "igt_sysfs.h"
+#include "igt_psr.h"
+#include <errno.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/timerfd.h>
+#include "intel_bufmgr.h"
+
+IGT_TEST_DESCRIPTION("Test PSR2 selective update");
+
+#define SQUARE_SIZE 100
+/* each selective update block is 4 lines tall */
+#define EXPECTED_NUM_SU_BLOCKS ((SQUARE_SIZE / 4) + (SQUARE_SIZE

%
4
? 1 : 0))

tests/kms_psr2_su.c new file +3 -0
+
+/*
+ * Minimum is 15 as the number of frames to active PSR2 could be

configured
+ * to 15 frames plus a few more in case we miss a selective update
between
+ * debugfs reads.
+ */

tests/kms_psr2_su.c new file +43 -0
+#define MAX_SCREEN_CHANGES 20
+
+enum operations {
+	PAGE_FLIP,
+	FRONTBUFFER,
+	LAST
+};
+
+static const char *op_str(enum operations op)
+{
+	static const char * const name[] = {
+		[PAGE_FLIP] = "page_flip",
+		[FRONTBUFFER] = "frontbuffer"
+	};
+
+	return name[op];
+}
+
+typedef struct {
+	int drm_fd;
+	int debugfs_fd;
+	igt_display_t display;
+	drm_intel_bufmgr *bufmgr;
+	drmModeModeInfo *mode;
+	igt_output_t *output;
+	struct igt_fb fb[2];
+	enum operations op;
+	cairo_t *cr;
+	int change_screen_timerfd;
+	uint32_t screen_changes;
+} data_t;
+
+static void setup_output(data_t *data)
+{
+	igt_display_t *display = &data->display;
+	igt_output_t *output;
+	enum pipe pipe;
+
+	for_each_pipe_with_valid_output(display, pipe, output) {
+		drmModeConnectorPtr c = output->config.connector;
+
+		if (c->connector_type != DRM_MODE_CONNECTOR_eDP)
+			continue;
Quoted 8 lines

tests/kms_psr2_su.c line 92

Quoted 4 lines
tests/kms_psr2_su.c new file +4 -0
+
+		igt_output_set_pipe(output, pipe);
+		data->output = output;
+		data->mode = igt_output_get_mode(output);

Won't this fail the same way as other PSR2 tests on WHL because of the
default mode exceeding PSR2 capability?

Quoted 5 lines

As the goal of this test is not to test if PSR2 can be enabled, on igt_fixture() we have:

igt_require(psr_enable(data.debugfs_fd, PSR_MODE_2)); igt_require(psr_wait_entry(data.debugfs_fd, PSR_MODE_2));

psr_wait_entry() is the one that would return false, isn't it?

Quoted 4 lines

So this test will be skiped and the error will be reported by kms_psr@psr2_basic and other tests in kms_psr.

Fair enough.

I was about add a Reviewed-by but then noticed that the test skipped on one of the ICL. Do you know what's happening?

Quoted 1 line
Quoted 1 line

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#7 lore raw

PATCH v4 4/4 DO NOT MERGE: Check result of kms_psr2_su tests

In reply to José Roberto de Souza

This is a hack patch just to check the result of kms_psr2_su tests in CI.

---
 tests/intel-ci/fast-feedback.testlist | 2 ++
 1 file changed, 2 insertions(+)
tests/intel-ci/fast-feedback.testlist +2 -0
index e48cb8a5..eb96a67f 100644
@@ -231,6 +231,8 @@ igt@kms_psr@psr2_primary_page_flip
 igt@kms_psr@psr2_cursor_plane_move
 igt@kms_psr@psr2_sprite_plane_onoff
 igt@kms_psr@psr2_primary_mmap_gtt
+igt@kms_psr2_su@page_flip
+igt@kms_psr2_su@frontbuffer
 igt@kms_setmode@basic-clone-single-crtc
 igt@pm_backlight@basic-brightness
 igt@pm_rpm@basic-pci-d3-state
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#8 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,v4,1/4] test/psr: Skip PSR2 tests when panel resolution is bigger than PSR2 HW supports

In reply to José Roberto de Souza
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,v4,1/4] test/psr: Skip PSR2 tests when panel resolution is bigger than PSR2 HW supports
URL : https://patchwork.freedesktop.org/series/55659/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_5471 -> IGTPW_2286
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_2286 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_2286, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://patchwork.freedesktop.org/api/1.0/series/55659/revisions/1/mbox/

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_2286:

### IGT changes ###

#### Possible regressions ####

* igt@pm_rpm@module-reload:
- fi-skl-6770hq: PASS -> FAIL

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* {igt@kms_psr2_su@frontbuffer}:
- {fi-icl-u2}: NOTRUN -> {SKIP} +1

Known issues
------------

Here are the changes found in IGTPW_2286 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@kms_pipe_crc_basic@read-crc-pipe-b:
- fi-byt-clapper: PASS -> FAIL [fdo#107362] +1

#### Possible fixes ####

* igt@kms_busy@basic-flip-c:
- fi-kbl-7500u: {SKIP} [fdo#109271] / [fdo#109278] -> PASS +2

* igt@kms_chamelium@dp-hpd-fast:
- fi-kbl-7500u: DMESG-WARN [fdo#102505] / [fdo#103558] / [fdo#105602] -> PASS

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: FAIL [fdo#108767] -> PASS

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- fi-byt-clapper: FAIL [fdo#103191] / [fdo#107362] -> PASS

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
- fi-blb-e6850: INCOMPLETE [fdo#107718] -> PASS

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#102505]: https://bugs.freedesktop.org/show_bug.cgi?id=102505
[fdo#103191]: https://bugs.freedesktop.org/show_bug.cgi?id=103191
[fdo#103558]: https://bugs.freedesktop.org/show_bug.cgi?id=103558
[fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#107362]: https://bugs.freedesktop.org/show_bug.cgi?id=107362
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#108767]: https://bugs.freedesktop.org/show_bug.cgi?id=108767
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278

Participating hosts (46 -> 40)
------------------------------

Missing (6): fi-kbl-soraka fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-icl-y fi-bdw-samus

Build changes
-------------

* IGT: IGT_4786 -> IGTPW_2286

CI_DRM_5471: 198addb18e12d2469bc41d57f9ed63e1072a7f82 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2286: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2286/
IGT_4786: 85cf76182087c09604bcae2bbee9e58b33bcb4f2 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Testlist changes ==

+igt@kms_psr2_su@frontbuffer
+igt@kms_psr2_su@page_flip

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2286/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#9 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,v4,1/4] test/psr: Skip PSR2 tests when panel resolution is bigger than PSR2 HW supports (rev2)

In reply to José Roberto de Souza
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,v4,1/4] test/psr: Skip PSR2 tests when panel resolution is bigger than PSR2 HW supports (rev2)
URL : https://patchwork.freedesktop.org/series/55659/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_5472 -> IGTPW_2287
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/55659/revisions/2/mbox/

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_2287:

### IGT changes ###

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* {igt@kms_psr2_su@frontbuffer}:
- {fi-icl-u2}: NOTRUN -> {SKIP} +1

Known issues
------------

Here are the changes found in IGTPW_2287 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_suspend@basic-s3:
- fi-byt-clapper: PASS -> INCOMPLETE [fdo#102657]

* igt@i915_selftest@live_coherency:
- fi-gdg-551: PASS -> DMESG-FAIL [fdo#107164]

* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-7567u: PASS -> WARN [fdo#109380]

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: PASS -> FAIL [fdo#108767]

#### Possible fixes ####

* igt@i915_selftest@live_hangcheck:
- {fi-icl-u3}: INCOMPLETE [fdo#108569] / [fdo#109226] -> PASS

* igt@pm_rpm@basic-pci-d3-state:
- fi-byt-j1900: {SKIP} [fdo#109271] -> PASS

* igt@pm_rpm@basic-rte:
- fi-byt-j1900: FAIL [fdo#108800] -> PASS

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#102657]: https://bugs.freedesktop.org/show_bug.cgi?id=102657
[fdo#107164]: https://bugs.freedesktop.org/show_bug.cgi?id=107164
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#108767]: https://bugs.freedesktop.org/show_bug.cgi?id=108767
[fdo#108800]: https://bugs.freedesktop.org/show_bug.cgi?id=108800
[fdo#109226]: https://bugs.freedesktop.org/show_bug.cgi?id=109226
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109380]: https://bugs.freedesktop.org/show_bug.cgi?id=109380

Participating hosts (45 -> 41)
------------------------------

Missing (4): fi-kbl-soraka fi-ilk-m540 fi-byt-squawks fi-bsw-cyan

Build changes
-------------

* IGT: IGT_4786 -> IGTPW_2287

CI_DRM_5472: c7fd80b9e4d5e789377f0f4a52a889c589226064 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2287: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2287/
IGT_4786: 85cf76182087c09604bcae2bbee9e58b33bcb4f2 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Testlist changes ==

+igt@kms_psr2_su@frontbuffer
+igt@kms_psr2_su@page_flip

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2287/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

Reviewed-by on v4 1/4
#10 lore raw
In reply to José Roberto de Souza
Quoted 6 lines · José Roberto de Souza

If resolution that will be used in PSR tests is bigger than the resolution that PSR2 HW supports, PSR2 will not be enabled so those tests should be skiped. Most of eDP panels only supports one resolution that is why we don't even try to use other resolution.

BSpec: 7713

I don't like the fact that we are re-implementing driver code in the test to avoid false-positives. We should really replace the panel on the WHL machine with a panel that is expected to work.

But, as a temporary measure to make CI happy and enable PSR2.

Rodrigo, what's your opinion on this?

-DK

Quoted 46 lines
Cc Dhinakaran Pandiyan <[email protected]>
Cc Rodrigo Vivi <[email protected]>
---
 tests/kms_psr.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
tests/kms_psr.c +19 -2
index 3e16a6bf..4792e158 100644
@@ -445,13 +445,30 @@ int main(int argc, char *argv[])
 		igt_require_f(sink_support(&data, PSR_MODE_1),
 			      "Sink does not support PSR\n");
 
-		data.supports_psr2 = sink_support(&data, PSR_MODE_2);
-
 		data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd,
 4096);
 		igt_assert(data.bufmgr);
 		drm_intel_bufmgr_gem_enable_reuse(data.bufmgr);
 
 		display_init(&data);
+
+		data.supports_psr2 = sink_support(&data, PSR_MODE_2);
+		if (data.supports_psr2) {
+			uint32_t devid =
 intel_get_drm_devid(data.drm_fd);
+			uint16_t max_h = 0, max_v = 0;
+			int gen = intel_gen(devid);
+
+			if (gen >= 10 || IS_GEMINILAKE(devid)) {
+				max_h = 4096;
+				max_v = 2304;
+			} else if (gen == 9) {
+				max_h = 3640;
+				max_v = 2304;
+			}
+
+			if (data.mode->hdisplay > max_h ||
+			    data.mode->vdisplay > max_v)
+				data.supports_psr2 = false;
+		}
 	}
Quoted 2 lines

for (data.op_psr_mode = PSR_MODE_1; data.op_psr_mode <=
PSR_MODE_2;

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#11 lore raw
Quoted 11 lines · Dhinakaran Pandiyan
Quoted 6 lines · José Roberto de Souza

If resolution that will be used in PSR tests is bigger than the resolution that PSR2 HW supports, PSR2 will not be enabled so those tests should be skiped. Most of eDP panels only supports one resolution that is why we don't even try to use other resolution.

BSpec: 7713

I don't like the fact that we are re-implementing driver code in the test to avoid false-positives. We should really replace the panel on the WHL machine with a panel that is expected to work.

I fully agree. The debugfs should be auto-suficient.

In the past it was the idea of Source OK. if sink support yes and source ok and we tried to enabled but it is not getting active,
than we have a bug somewhere.

I don't know the current status of the psr debugfs anymore, but I believe the test case should infer this information from there somehow instead of re-implement the driver code here.

Quoted 2 lines

But, as a temporary measure to make CI happy and enable PSR2.

why is this only affecting PSR2 case?

Quoted 51 lines

Rodrigo, what's your opinion on this?

-DK

Quoted 46 lines
Cc Dhinakaran Pandiyan <[email protected]>
Cc Rodrigo Vivi <[email protected]>
---
 tests/kms_psr.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
tests/kms_psr.c +19 -2
index 3e16a6bf..4792e158 100644
@@ -445,13 +445,30 @@ int main(int argc, char *argv[])
 		igt_require_f(sink_support(&data, PSR_MODE_1),
 			      "Sink does not support PSR\n");
 
-		data.supports_psr2 = sink_support(&data, PSR_MODE_2);
-
 		data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd,
 4096);
 		igt_assert(data.bufmgr);
 		drm_intel_bufmgr_gem_enable_reuse(data.bufmgr);
 
 		display_init(&data);
+
+		data.supports_psr2 = sink_support(&data, PSR_MODE_2);
+		if (data.supports_psr2) {
+			uint32_t devid =
 intel_get_drm_devid(data.drm_fd);
+			uint16_t max_h = 0, max_v = 0;
+			int gen = intel_gen(devid);
+
+			if (gen >= 10 || IS_GEMINILAKE(devid)) {
+				max_h = 4096;
+				max_v = 2304;
+			} else if (gen == 9) {
+				max_h = 3640;
+				max_v = 2304;
+			}
+
+			if (data.mode->hdisplay > max_h ||
+			    data.mode->vdisplay > max_v)
+				data.supports_psr2 = false;
+		}
 	}
Quoted 3 lines
Quoted 2 lines

for (data.op_psr_mode = PSR_MODE_1; data.op_psr_mode <=
PSR_MODE_2;

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#12 lore raw
Quoted 23 lines · Rodrigo Vivi
Quoted 7 lines · Dhinakaran Pandiyan
Quoted 6 lines · José Roberto de Souza

If resolution that will be used in PSR tests is bigger than the resolution that PSR2 HW supports, PSR2 will not be enabled so those
tests should be skiped. Most of eDP panels only supports one resolution that is why we don't even try to use other resolution.

Quoted 7 lines
Quoted 1 line

BSpec: 7713

I don't like the fact that we are re-implementing driver code in the
test to avoid false-positives. We should really replace the panel on
the WHL machine with a panel that is expected to work.

I fully agree. The debugfs should be auto-suficient.

In the past it was the idea of Source OK. if sink support yes and source ok
and we tried to enabled but it is not getting active, than we have a bug somewhere.

Quoted 7 lines

I don't know the current status of the psr debugfs anymore, but I believe the test case should infer this information from there somehow instead of re-implement the driver code here.

Quoted 1 line

But, as a temporary measure to make CI happy and enable PSR2.

why is this only affecting PSR2 case?

PSR2 has a maximum resolution suported and the only resolution that CI eDP panel supports is bigger than that.

Quoted 51 lines
Quoted 51 lines

Rodrigo, what's your opinion on this?

-DK

Quoted 45 lines
Cc Dhinakaran Pandiyan <[email protected]>
Cc Rodrigo Vivi <[email protected]>
---
 tests/kms_psr.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
tests/kms_psr.c +19 -2
index 3e16a6bf..4792e158 100644
@@ -445,13 +445,30 @@ int main(int argc, char *argv[])
 		igt_require_f(sink_support(&data, PSR_MODE_1),
 			      "Sink does not support PSR\n");
 
-		data.supports_psr2 = sink_support(&data, PSR_MODE_2);
-
 		data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd,
 4096);
 		igt_assert(data.bufmgr);
 		drm_intel_bufmgr_gem_enable_reuse(data.bufmgr);
 
 		display_init(&data);
+
+		data.supports_psr2 = sink_support(&data, PSR_MODE_2);
+		if (data.supports_psr2) {
+			uint32_t devid =
 intel_get_drm_devid(data.drm_fd);
+			uint16_t max_h = 0, max_v = 0;
+			int gen = intel_gen(devid);
+
+			if (gen >= 10 || IS_GEMINILAKE(devid)) {
+				max_h = 4096;
+				max_v = 2304;
+			} else if (gen == 9) {
+				max_h = 3640;
+				max_v = 2304;
+			}
+
+			if (data.mode->hdisplay > max_h ||
+			    data.mode->vdisplay > max_v)
+				data.supports_psr2 = false;
+		}
 	}
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

for (data.op_psr_mode = PSR_MODE_1; data.op_psr_mode <=
PSR_MODE_2;

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#13 lore raw
Quoted 20 lines · Jose
Quoted 19 lines · Rodrigo Vivi
Quoted 16 lines · Dhinakaran Pandiyan
Quoted 8 lines · José Roberto de Souza

If resolution that will be used in PSR tests is bigger than the resolution that PSR2 HW supports, PSR2 will not be enabled so those
tests should be skiped. Most of eDP panels only supports one resolution that is why we don't even try to use other resolution.

BSpec: 7713

I don't like the fact that we are re-implementing driver code in the
test to avoid false-positives. We should really replace the panel on
the WHL machine with a panel that is expected to work.

Quoted 4 lines
Quoted 4 lines

I fully agree. The debugfs should be auto-suficient.

In the past it was the idea of Source OK. if sink support yes and source ok

That had a problem too, "Source OK" was set after driver completed all the checks and just before enabling PSR2. In effect, it started becoming a duplicate of the "Enabled" field and we weren't able to catch if the driver checks before psr_enable() were wrong.

Quoted 70 lines
Quoted 10 lines

and we tried to enabled but it is not getting active, than we have a bug somewhere.

I don't know the current status of the psr debugfs anymore, but I believe the test case should infer this information from there somehow instead of re-implement the driver code here.

Quoted 1 line

But, as a temporary measure to make CI happy and enable PSR2.

why is this only affecting PSR2 case?

PSR2 has a maximum resolution suported and the only resolution that CI
eDP panel supports is bigger than that.

Quoted 55 lines
Quoted 55 lines

Rodrigo, what's your opinion on this?

-DK

Quoted 49 lines
Cc Dhinakaran Pandiyan <[email protected]>
Cc Rodrigo Vivi <[email protected]>
---
 tests/kms_psr.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
tests/kms_psr.c +2 -2
index 3e16a6bf..4792e158 100644
@@ -445,13 +445,30 @@ int main(int argc, char *argv[])
 		igt_require_f(sink_support(&data, PSR_MODE_1),
 			      "Sink does not support PSR\n");
 
-		data.supports_psr2 = sink_support(&data,
 PSR_MODE_2);
-
 		data.bufmgr =
 drm_intel_bufmgr_gem_init(data.drm_fd,
 4096);
 		igt_assert(data.bufmgr);
 		drm_intel_bufmgr_gem_enable_reuse(data.bufmgr);
 
 		display_init(&data);
+
+		data.supports_psr2 = sink_support(&data,

PSR_MODE_2);

tests/kms_psr.c +2 -0
+		if (data.supports_psr2) {
+			uint32_t devid =

intel_get_drm_devid(data.drm_fd);

tests/kms_psr.c +4 -0
+			uint16_t max_h = 0, max_v = 0;
+			int gen = intel_gen(devid);
+
+			if (gen >= 10 || IS_GEMINILAKE(devid))

{

tests/kms_psr.c +11 -0
+				max_h = 4096;
+				max_v = 2304;
+			} else if (gen == 9) {
+				max_h = 3640;
+				max_v = 2304;
+			}
+
+			if (data.mode->hdisplay > max_h ||
+			    data.mode->vdisplay > max_v)
+				data.supports_psr2 = false;
+		}
 	}
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

for (data.op_psr_mode = PSR_MODE_1; data.op_psr_mode <=
PSR_MODE_2;

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#14 lore raw
Quoted 21 lines · Dhinakaran Pandiyan
Quoted 20 lines · Jose
Quoted 19 lines · Rodrigo Vivi
Quoted 16 lines · Dhinakaran Pandiyan
Quoted 8 lines · José Roberto de Souza

If resolution that will be used in PSR tests is bigger than the resolution that PSR2 HW supports, PSR2 will not be enabled so those
tests should be skiped. Most of eDP panels only supports one resolution that is why we don't even try to use other resolution.

BSpec: 7713

I don't like the fact that we are re-implementing driver code in the
test to avoid false-positives. We should really replace the panel on
the WHL machine with a panel that is expected to work.

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

I fully agree. The debugfs should be auto-suficient.

In the past it was the idea of Source OK. if sink support yes and source ok

That had a problem too, "Source OK" was set after driver completed all the checks and just before enabling PSR2. In effect, it started becoming a duplicate of the "Enabled" field and we weren't able to catch if the driver checks before psr_enable() were wrong.

yeap, this is true indeed...

But we need to find a way where the debugfs tells us if conditions are not match and enable is not expected to avoid having to reimplement all the conditions twice.

Quoted 72 lines
Quoted 72 lines
Quoted 5 lines

and we tried to enabled but it is not getting active, than we have a bug somewhere.

Quoted 7 lines

I don't know the current status of the psr debugfs anymore, but I believe the test case should infer this information from there somehow instead of re-implement the driver code here.

Quoted 1 line

But, as a temporary measure to make CI happy and enable PSR2.

why is this only affecting PSR2 case?

PSR2 has a maximum resolution suported and the only resolution that CI
eDP panel supports is bigger than that.

Quoted 55 lines
Quoted 55 lines

Rodrigo, what's your opinion on this?

-DK

Quoted 49 lines
Cc Dhinakaran Pandiyan <[email protected]>
Cc Rodrigo Vivi <[email protected]>
---
 tests/kms_psr.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
tests/kms_psr.c +2 -2
index 3e16a6bf..4792e158 100644
@@ -445,13 +445,30 @@ int main(int argc, char *argv[])
 		igt_require_f(sink_support(&data, PSR_MODE_1),
 			      "Sink does not support PSR\n");
 
-		data.supports_psr2 = sink_support(&data,
 PSR_MODE_2);
-
 		data.bufmgr =
 drm_intel_bufmgr_gem_init(data.drm_fd,
 4096);
 		igt_assert(data.bufmgr);
 		drm_intel_bufmgr_gem_enable_reuse(data.bufmgr);
 
 		display_init(&data);
+
+		data.supports_psr2 = sink_support(&data,

PSR_MODE_2);

tests/kms_psr.c +2 -0
+		if (data.supports_psr2) {
+			uint32_t devid =

intel_get_drm_devid(data.drm_fd);

tests/kms_psr.c +4 -0
+			uint16_t max_h = 0, max_v = 0;
+			int gen = intel_gen(devid);
+
+			if (gen >= 10 || IS_GEMINILAKE(devid))

{

tests/kms_psr.c +11 -0
+				max_h = 4096;
+				max_v = 2304;
+			} else if (gen == 9) {
+				max_h = 3640;
+				max_v = 2304;
+			}
+
+			if (data.mode->hdisplay > max_h ||
+			    data.mode->vdisplay > max_v)
+				data.supports_psr2 = false;
+		}
 	}
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

for (data.op_psr_mode = PSR_MODE_1; data.op_psr_mode <=
PSR_MODE_2;

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#15 lore raw
Quoted 39 lines · Rodrigo Vivi
Quoted 29 lines · Dhinakaran Pandiyan
Quoted 28 lines · Jose
Quoted 27 lines · Rodrigo Vivi
Quoted 14 lines · Dhinakaran Pandiyan
Quoted 11 lines · José Roberto de Souza

If resolution that will be used in PSR tests is bigger than the
resolution that PSR2 HW supports, PSR2 will not be enabled so
those
tests should be skiped. Most of eDP panels only supports one
resolution that is why we don't even try to use other resolution.

BSpec: 7713

Quoted 8 lines

I don't like the fact that we are re-implementing driver code in
the
test to avoid false-positives. We should really replace the panel
on
the WHL machine with a panel that is expected to work.

I fully agree. The debugfs should be auto-suficient.

Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

In the past it was the idea of Source OK. if sink support yes and
source ok

That had a problem too, "Source OK" was set after driver completed all
the checks and just before enabling PSR2. In effect, it started becoming a duplicate of the "Enabled" field and we weren't able to catch if the driver checks before psr_enable() were wrong.

Quoted 5 lines

yeap, this is true indeed...

But we need to find a way where the debugfs tells us if conditions are not match and enable is not expected to avoid having to reimplement all the conditions twice.

I could add a reason field to debugfs and like we have for FBC(fbc-

Quoted 1 line

no_fbc_reason)

What do you think?

Quoted 74 lines
Quoted 74 lines
Quoted 74 lines
Quoted 5 lines

and we tried to enabled but it is not getting active, than we have a bug somewhere.

Quoted 8 lines

I don't know the current status of the psr debugfs anymore, but I believe the test case should infer this information from there
somehow instead of re-implement the driver code here.

Quoted 1 line

But, as a temporary measure to make CI happy and enable PSR2.

why is this only affecting PSR2 case?

PSR2 has a maximum resolution suported and the only resolution that
CI
eDP panel supports is bigger than that.

Quoted 55 lines
Quoted 55 lines

Reviewed-by: Dhinakaran Pandiyan <
[email protected]>

Rodrigo, what's your opinion on this?

-DK

Quoted 49 lines
Cc Dhinakaran Pandiyan <[email protected]>
Cc Rodrigo Vivi <[email protected]>
---
 tests/kms_psr.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
tests/kms_psr.c +2 -2
index 3e16a6bf..4792e158 100644
@@ -445,13 +445,30 @@ int main(int argc, char *argv[])
 		igt_require_f(sink_support(&data, PSR_MODE_1),
 			      "Sink does not support PSR\n");
 
-		data.supports_psr2 = sink_support(&data,
 PSR_MODE_2);
-
 		data.bufmgr =
 drm_intel_bufmgr_gem_init(data.drm_fd,
 4096);
 		igt_assert(data.bufmgr);
 		drm_intel_bufmgr_gem_enable_reuse(data.bufmgr);
 
 		display_init(&data);
+
+		data.supports_psr2 = sink_support(&data,

PSR_MODE_2);

tests/kms_psr.c +2 -0
+		if (data.supports_psr2) {
+			uint32_t devid =

intel_get_drm_devid(data.drm_fd);

tests/kms_psr.c +4 -0
+			uint16_t max_h = 0, max_v = 0;
+			int gen = intel_gen(devid);
+
+			if (gen >= 10 || IS_GEMINILAKE(devid))

{

tests/kms_psr.c +11 -0
+				max_h = 4096;
+				max_v = 2304;
+			} else if (gen == 9) {
+				max_h = 3640;
+				max_v = 2304;
+			}
+
+			if (data.mode->hdisplay > max_h ||
+			    data.mode->vdisplay > max_v)
+				data.supports_psr2 = false;
+		}
 	}
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

for (data.op_psr_mode = PSR_MODE_1; data.op_psr_mode <=
PSR_MODE_2;

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#16 lore raw
Quoted 42 lines · Jose
Quoted 41 lines · Rodrigo Vivi
Quoted 29 lines · Dhinakaran Pandiyan
Quoted 28 lines · Jose
Quoted 27 lines · Rodrigo Vivi
Quoted 14 lines · Dhinakaran Pandiyan
Quoted 11 lines · José Roberto de Souza

If resolution that will be used in PSR tests is bigger than the
resolution that PSR2 HW supports, PSR2 will not be enabled so
those
tests should be skiped. Most of eDP panels only supports one
resolution that is why we don't even try to use other resolution.

BSpec: 7713

Quoted 8 lines

I don't like the fact that we are re-implementing driver code in
the
test to avoid false-positives. We should really replace the panel
on
the WHL machine with a panel that is expected to work.

I fully agree. The debugfs should be auto-suficient.

Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

In the past it was the idea of Source OK. if sink support yes and
source ok

That had a problem too, "Source OK" was set after driver completed all
the checks and just before enabling PSR2. In effect, it started becoming a duplicate of the "Enabled" field and we weren't able to catch if the driver checks before psr_enable() were wrong.

yeap, this is true indeed...

Quoted 8 lines
Quoted 3 lines

But we need to find a way where the debugfs tells us if conditions are not match and enable is not expected to avoid having to reimplement all the conditions twice.

I could add a reason field to debugfs and like we have for FBC(fbc-

Quoted 1 line

no_fbc_reason)

What do you think?

well, I always disliked the no_fbc_reason, but it is better than duplicating the code and I don't have better idea ;)

Quoted 75 lines
Quoted 75 lines
Quoted 75 lines
Quoted 75 lines
Quoted 6 lines

and we tried to enabled but it is not getting active, than we have a bug somewhere.

Quoted 8 lines

I don't know the current status of the psr debugfs anymore, but I believe the test case should infer this information from there
somehow instead of re-implement the driver code here.

Quoted 1 line

But, as a temporary measure to make CI happy and enable PSR2.

why is this only affecting PSR2 case?

PSR2 has a maximum resolution suported and the only resolution that
CI
eDP panel supports is bigger than that.

Quoted 55 lines
Quoted 55 lines

Reviewed-by: Dhinakaran Pandiyan <
[email protected]>

Rodrigo, what's your opinion on this?

-DK

Quoted 49 lines
Cc Dhinakaran Pandiyan <[email protected]>
Cc Rodrigo Vivi <[email protected]>
---
 tests/kms_psr.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
tests/kms_psr.c +2 -2
index 3e16a6bf..4792e158 100644
@@ -445,13 +445,30 @@ int main(int argc, char *argv[])
 		igt_require_f(sink_support(&data, PSR_MODE_1),
 			      "Sink does not support PSR\n");
 
-		data.supports_psr2 = sink_support(&data,
 PSR_MODE_2);
-
 		data.bufmgr =
 drm_intel_bufmgr_gem_init(data.drm_fd,
 4096);
 		igt_assert(data.bufmgr);
 		drm_intel_bufmgr_gem_enable_reuse(data.bufmgr);
 
 		display_init(&data);
+
+		data.supports_psr2 = sink_support(&data,

PSR_MODE_2);

tests/kms_psr.c +2 -0
+		if (data.supports_psr2) {
+			uint32_t devid =

intel_get_drm_devid(data.drm_fd);

tests/kms_psr.c +4 -0
+			uint16_t max_h = 0, max_v = 0;
+			int gen = intel_gen(devid);
+
+			if (gen >= 10 || IS_GEMINILAKE(devid))

{

tests/kms_psr.c +11 -0
+				max_h = 4096;
+				max_v = 2304;
+			} else if (gen == 9) {
+				max_h = 3640;
+				max_v = 2304;
+			}
+
+			if (data.mode->hdisplay > max_h ||
+			    data.mode->vdisplay > max_v)
+				data.supports_psr2 = false;
+		}
 	}
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

for (data.op_psr_mode = PSR_MODE_1; data.op_psr_mode <=
PSR_MODE_2;

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#17 lore raw
Quoted 58 lines · Rodrigo Vivi
Quoted 57 lines · Jose
Quoted 55 lines · Rodrigo Vivi
Quoted 40 lines · Dhinakaran Pandiyan
Quoted 32 lines · Jose
Quoted 31 lines · Rodrigo Vivi
Quoted 27 lines · Dhinakaran Pandiyan
Quoted 13 lines · José Roberto de Souza

If resolution that will be used in PSR tests is bigger than
the
resolution that PSR2 HW supports, PSR2 will not be enabled
so
those
tests should be skiped. Most of eDP panels only supports
one
resolution that is why we don't even try to use other resolution.

Quoted 1 line

BSpec: 7713

I don't like the fact that we are re-implementing driver code
in
the
test to avoid false-positives. We should really replace the
panel
on
the WHL machine with a panel that is expected to work.

Quoted 6 lines
Quoted 6 lines

I fully agree. The debugfs should be auto-suficient.

In the past it was the idea of Source OK. if sink support yes
and
source ok

Quoted 7 lines

That had a problem too, "Source OK" was set after driver completed
all
the checks and just before enabling PSR2. In effect, it started becoming a duplicate of the "Enabled" field and we weren't able to
catch if the driver checks before psr_enable() were wrong.

yeap, this is true indeed...

But we need to find a way where the debugfs tells us if conditions are not match and enable is not expected to avoid having to reimplement all the conditions twice.

Quoted 9 lines
Quoted 4 lines

I could add a reason field to debugfs and like we have for FBC(fbc-

Quoted 1 line

no_fbc_reason)

What do you think?

well, I always disliked the no_fbc_reason, but it is better than duplicating
the code and I don't have better idea ;)

Replace the panel :) We need PSR2 testing on gen-9 anyway, we cannot work around it.

-DK

Quoted 88 lines
Quoted 88 lines
Quoted 88 lines
Quoted 88 lines
Quoted 88 lines
Quoted 12 lines

and we tried to enabled but it is not getting active, than we have a bug somewhere.

I don't know the current status of the psr debugfs anymore, but
I believe the test case should infer this information from there
somehow instead of re-implement the driver code here.

Quoted 4 lines
Quoted 2 lines

But, as a temporary measure to make CI happy and enable PSR2.

why is this only affecting PSR2 case?

PSR2 has a maximum resolution suported and the only resolution
that
CI
eDP panel supports is bigger than that.

Quoted 65 lines
Quoted 65 lines

Reviewed-by: Dhinakaran Pandiyan <
[email protected]>

Rodrigo, what's your opinion on this?

-DK

Quoted 59 lines

Cc: Dhinakaran Pandiyan <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Signed-off-by: José Roberto de Souza < [email protected]>

---
 tests/kms_psr.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
tests/kms_psr.c +0 -2
index 3e16a6bf..4792e158 100644
@@ -445,13 +445,30 @@ int main(int argc, char *argv[])
 		igt_require_f(sink_support(&data,
 PSR_MODE_1),
 			      "Sink does not support
 PSR\n");
 
-		data.supports_psr2 =
 sink_support(&data,
 PSR_MODE_2);
-
 		data.bufmgr =
 drm_intel_bufmgr_gem_init(data.drm_fd,
 4096);
 		igt_assert(data.bufmgr);
 		drm_intel_bufmgr_gem_enable_reuse(data.

bufmgr);

tests/kms_psr.c +2 -0
 		display_init(&data);
+
+		data.supports_psr2 =

sink_support(&data,
PSR_MODE_2);

tests/kms_psr.c +2 -0
+		if (data.supports_psr2) {
+			uint32_t devid =

intel_get_drm_devid(data.drm_fd);

tests/kms_psr.c +4 -0
+			uint16_t max_h = 0, max_v = 0;
+			int gen = intel_gen(devid);
+
+			if (gen >= 10 ||

IS_GEMINILAKE(devid))
{

tests/kms_psr.c +8 -0
+				max_h = 4096;
+				max_v = 2304;
+			} else if (gen == 9) {
+				max_h = 3640;
+				max_v = 2304;
+			}
+
+			if (data.mode->hdisplay > max_h

||

tests/kms_psr.c +1 -0
+			    data.mode->vdisplay >

max_v)

tests/kms_psr.c +1 -0
+				data.supports_psr2 =

false;

tests/kms_psr.c +1 -0
+		}
 	}
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

for (data.op_psr_mode = PSR_MODE_1;
data.op_psr_mode <=
PSR_MODE_2;

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#18 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,v4,1/4] test/psr: Skip PSR2 tests when panel resolution is bigger than PSR2 HW supports (rev2)

In reply to José Roberto de Souza
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,v4,1/4] test/psr: Skip PSR2 tests when panel resolution is bigger than PSR2 HW supports (rev2)
URL : https://patchwork.freedesktop.org/series/55659/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_5472_full -> IGTPW_2287_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/55659/revisions/2/mbox/

Known issues
------------

Here are the changes found in IGTPW_2287_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@i915_suspend@forcewake:
- shard-kbl: PASS -> INCOMPLETE [fdo#103665]

* igt@kms_available_modes_crc@available_mode_test_crc:

    - shard-apl:          PASS -> FAIL [fdo#106641]
    - shard-glk:          PASS -> FAIL [fdo#106641]
    - shard-kbl:          PASS -> FAIL [fdo#106641]

* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-b:
- shard-kbl: NOTRUN -> DMESG-WARN [fdo#107956]

* igt@kms_cursor_crc@cursor-256x256-random:
- shard-glk: PASS -> FAIL [fdo#103232] +2

* igt@kms_cursor_crc@cursor-256x256-suspend:
- shard-kbl: PASS -> DMESG-WARN [fdo#108566]

* igt@kms_cursor_crc@cursor-64x21-random:
- shard-apl: PASS -> FAIL [fdo#103232] +2

* igt@kms_cursor_crc@cursor-64x21-sliding:
- shard-glk: NOTRUN -> FAIL [fdo#103232]

* igt@kms_cursor_crc@cursor-64x64-dpms:
- shard-kbl: PASS -> FAIL [fdo#103232] +2

* igt@kms_plane@pixel-format-pipe-a-planes-source-clamping:
- shard-apl: PASS -> FAIL [fdo#108948]
- shard-kbl: PASS -> FAIL [fdo#108948]

* igt@kms_plane@pixel-format-pipe-b-planes-source-clamping:
- shard-glk: PASS -> FAIL [fdo#108948] +1

* igt@kms_plane@plane-position-covered-pipe-b-planes:
- shard-glk: NOTRUN -> FAIL [fdo#103166]

* igt@kms_plane_alpha_blend@pipe-c-alpha-basic:
- shard-glk: NOTRUN -> FAIL [fdo#108145]

* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-max:
- shard-glk: PASS -> FAIL [fdo#108145] +1

* igt@kms_plane_multiple@atomic-pipe-a-tiling-y:
- shard-glk: PASS -> FAIL [fdo#103166] +5

* igt@kms_plane_multiple@atomic-pipe-b-tiling-yf:
- shard-kbl: PASS -> FAIL [fdo#103166] +1

* igt@kms_plane_multiple@atomic-pipe-c-tiling-yf:
- shard-apl: PASS -> FAIL [fdo#103166] +6

#### Possible fixes ####

* igt@gem_pwrite@big-cpu-backwards:
- shard-snb: INCOMPLETE [fdo#105411] / [fdo#107469] -> PASS

* igt@kms_color@pipe-b-degamma:
- shard-apl: FAIL [fdo#104782] -> PASS

* igt@kms_cursor_crc@cursor-128x128-random:
- shard-apl: FAIL [fdo#103232] -> PASS +8

* igt@kms_cursor_crc@cursor-128x42-sliding:
- shard-kbl: FAIL [fdo#103232] -> PASS +1

* igt@kms_cursor_crc@cursor-256x256-sliding:
- shard-glk: FAIL [fdo#103232] -> PASS +1

* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-apl: FAIL [fdo#102887] / [fdo#105363] -> PASS

* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-c-planes:
- shard-kbl: INCOMPLETE [fdo#103665] -> PASS

* igt@kms_plane_lowres@pipe-a-tiling-none:
- shard-snb: {SKIP} [fdo#109271] -> PASS

* igt@kms_plane_multiple@atomic-pipe-a-tiling-none:
- shard-kbl: FAIL [fdo#103166] -> PASS +2

* igt@kms_plane_multiple@atomic-pipe-b-tiling-none:
- shard-apl: FAIL [fdo#103166] -> PASS +4

* igt@kms_plane_multiple@atomic-pipe-b-tiling-y:
- shard-glk: FAIL [fdo#103166] -> PASS

#### Warnings ####

* igt@i915_suspend@shrink:
- shard-glk: DMESG-WARN [fdo#109244] -> INCOMPLETE [fdo#103359] / [fdo#106886] / [k.org#198133]

* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- shard-apl: DMESG-FAIL [fdo#108950] -> DMESG-WARN [fdo#108337]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#102887]: https://bugs.freedesktop.org/show_bug.cgi?id=102887
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#104782]: https://bugs.freedesktop.org/show_bug.cgi?id=104782
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#106641]: https://bugs.freedesktop.org/show_bug.cgi?id=106641
[fdo#106886]: https://bugs.freedesktop.org/show_bug.cgi?id=106886
[fdo#107469]: https://bugs.freedesktop.org/show_bug.cgi?id=107469
[fdo#107956]: https://bugs.freedesktop.org/show_bug.cgi?id=107956
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108337]: https://bugs.freedesktop.org/show_bug.cgi?id=108337
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108948]: https://bugs.freedesktop.org/show_bug.cgi?id=108948
[fdo#108950]: https://bugs.freedesktop.org/show_bug.cgi?id=108950
[fdo#109244]: https://bugs.freedesktop.org/show_bug.cgi?id=109244
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133

Participating hosts (7 -> 5)
------------------------------

Missing (2): shard-skl shard-iclb

Build changes
-------------

* IGT: IGT_4786 -> IGTPW_2287
* Piglit: piglit_4509 -> None

CI_DRM_5472: c7fd80b9e4d5e789377f0f4a52a889c589226064 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2287: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2287/
IGT_4786: 85cf76182087c09604bcae2bbee9e58b33bcb4f2 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2287/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev