All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips
@ 2020-08-06 13:29 Karthik B S
  2020-08-06 14:26 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Add test to validate asynchronous flips (rev2) Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Karthik B S @ 2020-08-06 13:29 UTC (permalink / raw)
  To: igt-dev; +Cc: michel, daniel.vetter

Asynchronous flips are issued using the page flip IOCTL.
The test consists of two subtests. The first subtest waits for
the page flip event to be received before giving the next flip,
and the second subtest doesn't wait for page flip events.

The test passes if the IOCTL is successful.

v2: -Add authors in the test file. (Paulo)
    -Reduce the run time and timeouts to suit IGT needs. (Paulo)
    -Replace igt_debug's with igt_assert's to catch slow flips. (Paulo)
    -Follow IGT coding style regarding spaces. (Paulo)
    -Make set up code part of igt_fixture. (Paulo)
    -Skip the test if async flips are not supported. (Paulo)
    -Replace suggested-by. (Paulo)
    -Added description for test and subtests.

v3: -Rename the test to kms_async_flips. (Paulo)
    -Modify the TODO comment. (Paulo)
    -Remove igt_debug in flip_handler. (Paulo)
    -Use drmIoctl() in has_async function. (Paulo)
    -Add more details in igt_assert in flip_handler. (Paulo)
    -Remove flag variable in flip_handler. (Paulo)
    -Call igt_assert in flip_handler after the warm up time.

v4: -Calculate the time stamp in flip_handler from userspace, as the
     kernel will return vbl timestamps and this cannot be used
     for async flips.
    -Add a new subtest to verify that the async flip time stamp
     lies in between the previous and next vblank time stamp. (Daniel)

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Karthik B S <karthik.b.s@intel.com>
---
 tests/Makefile.sources  |   1 +
 tests/kms_async_flips.c | 329 ++++++++++++++++++++++++++++++++++++++++
 tests/meson.build       |   1 +
 3 files changed, 331 insertions(+)
 create mode 100644 tests/kms_async_flips.c

diff --git a/tests/Makefile.sources b/tests/Makefile.sources
index 269b506d..081ccb83 100644
--- a/tests/Makefile.sources
+++ b/tests/Makefile.sources
@@ -32,6 +32,7 @@ TESTS_progs = \
 	feature_discovery \
 	kms_3d \
 	kms_addfb_basic \
+	kms_async_flips \
 	kms_atomic \
 	kms_atomic_interruptible \
 	kms_atomic_transition \
diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
new file mode 100644
index 00000000..a3ee0519
--- /dev/null
+++ b/tests/kms_async_flips.c
@@ -0,0 +1,329 @@
+/*
+ * Copyright © 2020 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.
+ *
+ * Authors:
+ *  Paulo Zanoni <paulo.r.zanoni@intel.com>
+ *  Karthik B S <karthik.b.s@intel.com>
+ */
+
+#include "igt.h"
+#include "igt_aux.h"
+#include <sys/ioctl.h>
+#include <sys/time.h>
+#include <poll.h>
+
+#define BUFS 4
+
+/*
+ * These constants can be tuned in case we start getting unexpected
+ * results in CI.
+ */
+
+#define WARM_UP_TIME 1
+#define RUN_TIME 2
+#define THRESHOLD 10
+
+IGT_TEST_DESCRIPTION("Test asynchrous page flips.");
+
+typedef struct {
+	int drm_fd;
+	uint32_t crtc_id;
+	struct igt_fb bufs[BUFS];
+	igt_display_t display;
+} data_t;
+
+uint32_t refresh_rate;
+bool warming_up;
+bool test_timestamp_flag;
+unsigned long flip_timestamp_us;
+
+static drmModeConnectorPtr find_connector_for_modeset(data_t *data)
+{
+	igt_output_t *output;
+	drmModeConnectorPtr ret = NULL;
+
+	for_each_connected_output(&data->display, output) {
+		if (output->config.connector->count_modes > 0) {
+			ret = output->config.connector;
+			break;
+		}
+	}
+
+	igt_assert_f(ret, "Connector NOT found\n");
+	return ret;
+}
+
+static void flip_handler(int fd_, unsigned int sequence, unsigned int tv_sec,
+			 unsigned int tv_usec, void *_data)
+{
+	static unsigned int last_ms;
+	unsigned int cur_ms, flip_interval;
+	struct timespec ts;
+
+	igt_assert(_data == NULL);
+
+	clock_gettime(CLOCK_MONOTONIC, &ts);
+
+	if (test_timestamp_flag) {
+		flip_timestamp_us = ts.tv_sec * 1000000 + ts.tv_nsec / 1000;
+	} else {
+		cur_ms =  ts.tv_sec * 1000 + ts.tv_nsec / 1000000;
+		flip_interval = cur_ms - last_ms;
+
+		/* Skip the assert check during warm up period*/
+		if (!warming_up) {
+			igt_assert_f(flip_interval < 1000.0f / (refresh_rate * THRESHOLD),
+				     "Flip interval not significantly smaller than vblank interval\n"
+				     "Flip interval: %dms, Refresh Rate = %dHz, Threshold = %d\n",
+				     flip_interval, refresh_rate, THRESHOLD);
+		}
+	}
+
+	last_ms = cur_ms;
+}
+
+static void wait_flip_event(data_t *data)
+{
+	int ret;
+	drmEventContext evctx;
+	struct pollfd pfd;
+
+	evctx.version = 2;
+	evctx.vblank_handler = NULL;
+	evctx.page_flip_handler = flip_handler;
+
+	pfd.fd = data->drm_fd;
+	pfd.events = POLLIN;
+	pfd.revents = 0;
+
+	ret = poll(&pfd, 1, 2000);
+
+	switch (ret) {
+	case 0:
+		igt_assert_f(0, "Flip Timeout\n");
+		break;
+	case 1:
+		ret = drmHandleEvent(data->drm_fd, &evctx);
+		igt_assert(ret == 0);
+		break;
+	default:
+		/* unexpected */
+		igt_assert(0);
+	}
+}
+
+static void make_fb(data_t *data, struct igt_fb *fb,
+		    drmModeConnectorPtr connector, int index)
+{
+	uint32_t width, height;
+	int rec_width;
+
+	width = connector->modes[0].hdisplay;
+	height = connector->modes[0].vdisplay;
+
+	rec_width = width / (BUFS * 2);
+
+	igt_create_fb(data->drm_fd, width, height, DRM_FORMAT_ARGB8888,
+		      LOCAL_I915_FORMAT_MOD_X_TILED, fb);
+	igt_draw_fill_fb(data->drm_fd, fb, 0x88);
+	igt_draw_rect_fb(data->drm_fd, NULL, NULL, fb, IGT_DRAW_MMAP_CPU,
+			 rec_width * 2 + rec_width * index,
+			 height / 4, rec_width,
+			 height / 2, rand());
+}
+
+static void has_monotonic_timestamp(int fd)
+{
+	struct drm_get_cap cap = { .capability = DRM_CAP_TIMESTAMP_MONOTONIC };
+
+	igt_assert(drmIoctl(fd, DRM_IOCTL_GET_CAP, &cap) == 0);
+
+	igt_require_f(cap.value, "Monotonic timestamps not supported\n");
+}
+
+static void test_async_flip(data_t *data, bool wait_for_flips)
+{
+	int ret, frame, warm_end_frame;
+	long long int fps;
+	struct timeval start, end, diff;
+
+	if (wait_for_flips)
+		has_monotonic_timestamp(data->drm_fd);
+
+	warming_up = true;
+
+	gettimeofday(&start, NULL);
+	frame = 1;
+	do {
+		int flags = DRM_MODE_PAGE_FLIP_ASYNC;
+
+		if (wait_for_flips)
+			flags |= DRM_MODE_PAGE_FLIP_EVENT;
+
+		ret = drmModePageFlip(data->drm_fd, data->crtc_id,
+				      data->bufs[frame % 4].fb_id,
+				      flags, NULL);
+
+		igt_assert(ret == 0 || ret == -EBUSY);
+
+		if (wait_for_flips)
+			wait_flip_event(data);
+
+		gettimeofday(&end, NULL);
+		timersub(&end, &start, &diff);
+
+		/* 1s of warm-up time for the freq to stabilize */
+		if (warming_up && diff.tv_sec >= WARM_UP_TIME) {
+			warming_up = false;
+			warm_end_frame = frame;
+			start = end;
+		}
+
+		frame++;
+	} while (diff.tv_sec < RUN_TIME);
+
+	fps = (frame - warm_end_frame) * 1000 / RUN_TIME;
+	igt_assert_f((fps / 1000) > (refresh_rate * THRESHOLD),
+		     "FPS should be significantly higher than the refresh rate\n");
+}
+
+static void get_vbl_timestamp_us(data_t *data, unsigned long *vbl_time, unsigned int *seq)
+{
+	drmVBlank wait_vbl;
+	uint32_t pipe_id_flag;
+	int pipe;
+
+	memset(&wait_vbl, 0, sizeof(wait_vbl));
+	pipe = kmstest_get_pipe_from_crtc_id(data->drm_fd, data->crtc_id);
+	pipe_id_flag = kmstest_get_vbl_flag(pipe);
+
+	wait_vbl.request.type = DRM_VBLANK_RELATIVE | pipe_id_flag;
+	wait_vbl.request.sequence = 1;
+
+	igt_assert(drmIoctl(data->drm_fd, DRM_IOCTL_WAIT_VBLANK, &wait_vbl) == 0);
+	*vbl_time = wait_vbl.reply.tval_sec * 1000000 + wait_vbl.reply.tval_usec;
+	*seq = wait_vbl.reply.sequence;
+}
+
+static void test_timestamp(data_t *data)
+{
+	int flags = DRM_MODE_PAGE_FLIP_ASYNC | DRM_MODE_PAGE_FLIP_EVENT;
+	unsigned long vbl_time, vbl_time1;
+	unsigned int seq, seq1;
+	int ret;
+
+	has_monotonic_timestamp(data->drm_fd);
+	test_timestamp_flag = true;
+
+	get_vbl_timestamp_us(data, &vbl_time, &seq);
+
+	ret = drmModePageFlip(data->drm_fd, data->crtc_id,
+			      data->bufs[0].fb_id,
+			      flags, NULL);
+
+	igt_assert(ret == 0);
+
+	wait_flip_event(data);
+
+	get_vbl_timestamp_us(data, &vbl_time1, &seq1);
+
+	igt_assert_f(seq1 == seq + 1, "Vblank sequence is expected to be incremented by one\n");
+
+	igt_info("vbl1_timestamp = %ldus\nflip_timestamp = %ldus\nvbl2_timestamp = %ldus\n",
+		 vbl_time, flip_timestamp_us, vbl_time1);
+
+	igt_assert_f(vbl_time < flip_timestamp_us && vbl_time1 > flip_timestamp_us,
+		     "Async flip time stamp is expected to be in between 2 vblank time stamps\n");
+
+	test_timestamp_flag = false;
+}
+
+static bool has_async(int fd)
+{
+	struct drm_get_cap cap = { .capability = DRM_CAP_ASYNC_PAGE_FLIP };
+
+	igt_assert(drmIoctl(fd, DRM_IOCTL_GET_CAP, &cap) == 0);
+	return cap.value;
+}
+
+igt_main
+{
+	data_t data;
+	drmModeResPtr res;
+	drmModeConnectorPtr connector;
+	int i, ret;
+	bool async_capable;
+
+	test_timestamp_flag = false;
+
+	igt_fixture {
+		data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
+		kmstest_set_vt_graphics_mode();
+		igt_display_require(&data.display, data.drm_fd);
+		igt_display_require_output(&data.display);
+
+		async_capable = has_async(data.drm_fd);
+		igt_require_f(async_capable, "Async Flip is not supported\n");
+	}
+
+	igt_describe("Make sure kernel is able to accept asynchronous flips at a fast pace.");
+	igt_subtest_group {
+		igt_fixture {
+			res = drmModeGetResources(data.drm_fd);
+			igt_assert(res);
+
+			kmstest_unset_all_crtcs(data.drm_fd, res);
+
+			connector = find_connector_for_modeset(&data);
+			data.crtc_id = kmstest_find_crtc_for_connector(data.drm_fd,
+								       res, connector, 0);
+
+			refresh_rate = connector->modes[0].vrefresh;
+
+			for (i = 0; i < BUFS; i++)
+				make_fb(&data, &data.bufs[i], connector, i);
+
+			ret = drmModeSetCrtc(data.drm_fd, data.crtc_id, data.bufs[0].fb_id, 0, 0,
+					     &connector->connector_id, 1, &connector->modes[0]);
+			igt_assert(ret == 0);
+		}
+
+		igt_describe("Wait for page flip events in between successive asynchronous flips");
+		igt_subtest("async-flip-with-page-flip-events")
+			test_async_flip(&data, true);
+		igt_describe("DO NOT wait for page flip events in between successive asynchronous flips");
+		igt_subtest("async-flip-without-page-flip-events")
+			test_async_flip(&data, false);
+
+		igt_describe("Verify that the async flip timestamp does not coincide with either previous or next vblank");
+		igt_subtest("test-time-stamp")
+			test_timestamp(&data);
+
+		igt_fixture {
+			for (i = 0; i < BUFS; i++)
+				igt_remove_fb(data.drm_fd, &data.bufs[i]);
+		}
+	}
+
+	igt_fixture
+		igt_display_fini(&data.display);
+}
diff --git a/tests/meson.build b/tests/meson.build
index 684de043..007ae30c 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -16,6 +16,7 @@ test_progs = [
 	'feature_discovery',
 	'kms_3d',
 	'kms_addfb_basic',
+	'kms_async_flips',
 	'kms_atomic',
 	'kms_atomic_interruptible',
 	'kms_atomic_transition',
-- 
2.22.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Add test to validate asynchronous flips (rev2)
  2020-08-06 13:29 [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips Karthik B S
@ 2020-08-06 14:26 ` Patchwork
  2020-08-06 14:49 ` [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips Michel Dänzer
  2020-08-06 18:44 ` [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_async_flips: Add test to validate asynchronous flips (rev2) Patchwork
  2 siblings, 0 replies; 11+ messages in thread
From: Patchwork @ 2020-08-06 14:26 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev


[-- Attachment #1.1: Type: text/plain, Size: 5400 bytes --]

== Series Details ==

Series: tests/kms_async_flips: Add test to validate asynchronous flips (rev2)
URL   : https://patchwork.freedesktop.org/series/79701/
State : success

== Summary ==

CI Bug Log - changes from IGT_5762 -> IGTPW_4861
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

  External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/index.html

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

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

### IGT changes ###

#### Issues hit ####

  * igt@kms_busy@basic@flip:
    - fi-kbl-x1275:       [PASS][1] -> [DMESG-WARN][2] ([i915#62] / [i915#92] / [i915#95])
   [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/fi-kbl-x1275/igt@kms_busy@basic@flip.html
   [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/fi-kbl-x1275/igt@kms_busy@basic@flip.html

  * igt@vgem_basic@setversion:
    - fi-tgl-y:           [PASS][3] -> [DMESG-WARN][4] ([i915#402]) +1 similar issue
   [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/fi-tgl-y/igt@vgem_basic@setversion.html
   [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/fi-tgl-y/igt@vgem_basic@setversion.html

  
#### Possible fixes ####

  * igt@i915_module_load@reload:
    - fi-apl-guc:         [DMESG-WARN][5] ([i915#1635] / [i915#1982]) -> [PASS][6] +1 similar issue
   [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/fi-apl-guc/igt@i915_module_load@reload.html
   [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/fi-apl-guc/igt@i915_module_load@reload.html

  * igt@i915_pm_rpm@basic-pci-d3-state:
    - fi-bsw-kefka:       [DMESG-WARN][7] ([i915#1982]) -> [PASS][8]
   [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/fi-bsw-kefka/igt@i915_pm_rpm@basic-pci-d3-state.html
   [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/fi-bsw-kefka/igt@i915_pm_rpm@basic-pci-d3-state.html

  * igt@i915_selftest@live@coherency:
    - fi-gdg-551:         [DMESG-FAIL][9] ([i915#1748]) -> [PASS][10]
   [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/fi-gdg-551/igt@i915_selftest@live@coherency.html
   [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/fi-gdg-551/igt@i915_selftest@live@coherency.html

  * igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
    - {fi-kbl-7560u}:     [DMESG-WARN][11] ([i915#1982]) -> [PASS][12]
   [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/fi-kbl-7560u/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic.html
   [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/fi-kbl-7560u/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic.html

  * igt@prime_self_import@basic-with_two_bos:
    - fi-tgl-y:           [DMESG-WARN][13] ([i915#402]) -> [PASS][14] +1 similar issue
   [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/fi-tgl-y/igt@prime_self_import@basic-with_two_bos.html
   [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/fi-tgl-y/igt@prime_self_import@basic-with_two_bos.html

  
#### Warnings ####

  * igt@kms_flip@basic-flip-vs-wf_vblank@a-dp1:
    - fi-kbl-x1275:       [DMESG-WARN][15] ([i915#62] / [i915#92]) -> [DMESG-WARN][16] ([i915#62] / [i915#92] / [i915#95]) +1 similar issue
   [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/fi-kbl-x1275/igt@kms_flip@basic-flip-vs-wf_vblank@a-dp1.html
   [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/fi-kbl-x1275/igt@kms_flip@basic-flip-vs-wf_vblank@a-dp1.html

  * igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence:
    - fi-kbl-x1275:       [DMESG-WARN][17] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][18] ([i915#62] / [i915#92]) +2 similar issues
   [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/fi-kbl-x1275/igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence.html
   [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/fi-kbl-x1275/igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence.html

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

  [i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
  [i915#1748]: https://gitlab.freedesktop.org/drm/intel/issues/1748
  [i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
  [i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
  [i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
  [i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
  [i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95


Participating hosts (45 -> 38)
------------------------------

  Missing    (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus 


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

  * CI: CI-20190529 -> None
  * IGT: IGT_5762 -> IGTPW_4861

  CI-20190529: 20190529
  CI_DRM_8848: f39035176cb854c6d620af7614a60a485ee26818 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_4861: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/index.html
  IGT_5762: ec3d9a843686a618612016de9249117dd8d862a8 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools



== Testlist changes ==

+igt@kms_async_flips@async-flip-without-page-flip-events
+igt@kms_async_flips@async-flip-with-page-flip-events
+igt@kms_async_flips@test-time-stamp

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/index.html

[-- Attachment #1.2: Type: text/html, Size: 7088 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips
  2020-08-06 13:29 [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips Karthik B S
  2020-08-06 14:26 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Add test to validate asynchronous flips (rev2) Patchwork
@ 2020-08-06 14:49 ` Michel Dänzer
  2020-08-07  8:54   ` Petri Latvala
  2020-08-07  9:31   ` Karthik B S
  2020-08-06 18:44 ` [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_async_flips: Add test to validate asynchronous flips (rev2) Patchwork
  2 siblings, 2 replies; 11+ messages in thread
From: Michel Dänzer @ 2020-08-06 14:49 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev, daniel.vetter

On 2020-08-06 3:29 p.m., Karthik B S wrote:
> Asynchronous flips are issued using the page flip IOCTL.
> The test consists of two subtests. The first subtest waits for
> the page flip event to be received before giving the next flip,
> and the second subtest doesn't wait for page flip events.

The latter sounds sketchy. It might get lucky most of the time, but if
the previous flip is still pending, the ioctl will fail with EBUSY.


Also, the test as is can only run on Intel GPUs.


-- 
Earthling Michel Dänzer               |               https://redhat.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_async_flips: Add test to validate asynchronous flips (rev2)
  2020-08-06 13:29 [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips Karthik B S
  2020-08-06 14:26 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Add test to validate asynchronous flips (rev2) Patchwork
  2020-08-06 14:49 ` [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips Michel Dänzer
@ 2020-08-06 18:44 ` Patchwork
  2 siblings, 0 replies; 11+ messages in thread
From: Patchwork @ 2020-08-06 18:44 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev


[-- Attachment #1.1: Type: text/plain, Size: 16866 bytes --]

== Series Details ==

Series: tests/kms_async_flips: Add test to validate asynchronous flips (rev2)
URL   : https://patchwork.freedesktop.org/series/79701/
State : success

== Summary ==

CI Bug Log - changes from IGT_5762_full -> IGTPW_4861_full
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

  External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/index.html

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

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

### IGT changes ###

#### Possible regressions ####

  * {igt@kms_async_flips@async-flip-without-page-flip-events} (NEW):
    - shard-iclb:         NOTRUN -> [SKIP][1] +2 similar issues
   [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-iclb7/igt@kms_async_flips@async-flip-without-page-flip-events.html

  * {igt@kms_async_flips@test-time-stamp} (NEW):
    - shard-tglb:         NOTRUN -> [SKIP][2] +2 similar issues
   [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-tglb1/igt@kms_async_flips@test-time-stamp.html

  
New tests
---------

  New tests have been introduced between IGT_5762_full and IGTPW_4861_full:

### New IGT tests (3) ###

  * igt@kms_async_flips@async-flip-with-page-flip-events:
    - Statuses : 7 skip(s)
    - Exec time: [0.0] s

  * igt@kms_async_flips@async-flip-without-page-flip-events:
    - Statuses : 7 skip(s)
    - Exec time: [0.0] s

  * igt@kms_async_flips@test-time-stamp:
    - Statuses : 7 skip(s)
    - Exec time: [0.0] s

  

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

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

### IGT changes ###

#### Issues hit ####

  * igt@gem_exec_whisper@basic-contexts-all:
    - shard-glk:          [PASS][3] -> [DMESG-WARN][4] ([i915#118] / [i915#95])
   [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-glk4/igt@gem_exec_whisper@basic-contexts-all.html
   [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-glk3/igt@gem_exec_whisper@basic-contexts-all.html

  * igt@i915_pm_rc6_residency@rc6-idle:
    - shard-hsw:          [PASS][5] -> [WARN][6] ([i915#1519])
   [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-hsw7/igt@i915_pm_rc6_residency@rc6-idle.html
   [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-hsw4/igt@i915_pm_rc6_residency@rc6-idle.html

  * igt@kms_big_fb@y-tiled-64bpp-rotate-0:
    - shard-glk:          [PASS][7] -> [DMESG-FAIL][8] ([i915#118] / [i915#95])
   [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-glk9/igt@kms_big_fb@y-tiled-64bpp-rotate-0.html
   [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-glk8/igt@kms_big_fb@y-tiled-64bpp-rotate-0.html

  * igt@kms_cursor_legacy@basic-flip-after-cursor-legacy:
    - shard-tglb:         [PASS][9] -> [DMESG-WARN][10] ([i915#1982]) +4 similar issues
   [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-tglb6/igt@kms_cursor_legacy@basic-flip-after-cursor-legacy.html
   [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-tglb3/igt@kms_cursor_legacy@basic-flip-after-cursor-legacy.html

  * igt@kms_cursor_legacy@flip-vs-cursor-crc-atomic:
    - shard-kbl:          [PASS][11] -> [DMESG-WARN][12] ([i915#1982])
   [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-kbl2/igt@kms_cursor_legacy@flip-vs-cursor-crc-atomic.html
   [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-kbl6/igt@kms_cursor_legacy@flip-vs-cursor-crc-atomic.html

  * igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
    - shard-kbl:          [PASS][13] -> [DMESG-WARN][14] ([i915#180]) +9 similar issues
   [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-kbl4/igt@kms_flip@flip-vs-suspend-interruptible@a-dp1.html
   [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-kbl2/igt@kms_flip@flip-vs-suspend-interruptible@a-dp1.html

  * igt@kms_psr2_su@frontbuffer:
    - shard-iclb:         [PASS][15] -> [SKIP][16] ([fdo#109642] / [fdo#111068])
   [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-iclb2/igt@kms_psr2_su@frontbuffer.html
   [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-iclb6/igt@kms_psr2_su@frontbuffer.html

  * igt@kms_psr@psr2_sprite_mmap_cpu:
    - shard-iclb:         [PASS][17] -> [SKIP][18] ([fdo#109441]) +2 similar issues
   [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_cpu.html
   [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-iclb4/igt@kms_psr@psr2_sprite_mmap_cpu.html

  * igt@kms_vblank@pipe-b-ts-continuation-dpms-suspend:
    - shard-tglb:         [PASS][19] -> [INCOMPLETE][20] ([i915#1602] / [i915#1887] / [i915#456])
   [19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-tglb3/igt@kms_vblank@pipe-b-ts-continuation-dpms-suspend.html
   [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-tglb7/igt@kms_vblank@pipe-b-ts-continuation-dpms-suspend.html

  * igt@prime_busy@hang-wait@bcs0:
    - shard-hsw:          [PASS][21] -> [FAIL][22] ([i915#2258]) +4 similar issues
   [21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-hsw7/igt@prime_busy@hang-wait@bcs0.html
   [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-hsw4/igt@prime_busy@hang-wait@bcs0.html

  
#### Possible fixes ####

  * igt@device_reset@unbind-reset-rebind:
    - shard-iclb:         [DMESG-WARN][23] ([i915#1982]) -> [PASS][24]
   [23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-iclb3/igt@device_reset@unbind-reset-rebind.html
   [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-iclb1/igt@device_reset@unbind-reset-rebind.html

  * igt@gem_exec_whisper@basic-queues-priority:
    - shard-glk:          [DMESG-WARN][25] ([i915#118] / [i915#95]) -> [PASS][26]
   [25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-glk4/igt@gem_exec_whisper@basic-queues-priority.html
   [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-glk5/igt@gem_exec_whisper@basic-queues-priority.html

  * igt@i915_pm_dc@dc5-psr:
    - shard-iclb:         [FAIL][27] ([i915#1899]) -> [PASS][28]
   [27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-iclb5/igt@i915_pm_dc@dc5-psr.html
   [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-iclb7/igt@i915_pm_dc@dc5-psr.html
    - shard-tglb:         [FAIL][29] ([i915#1899]) -> [PASS][30]
   [29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-tglb3/igt@i915_pm_dc@dc5-psr.html
   [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-tglb5/igt@i915_pm_dc@dc5-psr.html

  * igt@kms_big_fb@y-tiled-64bpp-rotate-180:
    - shard-glk:          [DMESG-FAIL][31] ([i915#118] / [i915#95]) -> [PASS][32] +1 similar issue
   [31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-glk8/igt@kms_big_fb@y-tiled-64bpp-rotate-180.html
   [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-glk3/igt@kms_big_fb@y-tiled-64bpp-rotate-180.html

  * igt@kms_color@pipe-a-ctm-max:
    - shard-kbl:          [FAIL][33] ([i915#168]) -> [PASS][34]
   [33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-kbl2/igt@kms_color@pipe-a-ctm-max.html
   [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-kbl1/igt@kms_color@pipe-a-ctm-max.html
    - shard-apl:          [FAIL][35] ([i915#1635] / [i915#168]) -> [PASS][36]
   [35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-apl3/igt@kms_color@pipe-a-ctm-max.html
   [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-apl6/igt@kms_color@pipe-a-ctm-max.html

  * igt@kms_flip@flip-vs-expired-vblank@a-hdmi-a2:
    - shard-glk:          [FAIL][37] ([i915#79]) -> [PASS][38]
   [37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-glk6/igt@kms_flip@flip-vs-expired-vblank@a-hdmi-a2.html
   [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-glk4/igt@kms_flip@flip-vs-expired-vblank@a-hdmi-a2.html

  * igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-pwrite:
    - shard-glk:          [FAIL][39] ([i915#49]) -> [PASS][40]
   [39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-glk6/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-pwrite.html
   [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-glk9/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-pwrite.html

  * igt@kms_frontbuffer_tracking@fbc-stridechange:
    - shard-glk:          [DMESG-WARN][41] ([i915#1982]) -> [PASS][42] +1 similar issue
   [41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-glk1/igt@kms_frontbuffer_tracking@fbc-stridechange.html
   [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-glk7/igt@kms_frontbuffer_tracking@fbc-stridechange.html

  * igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-mmap-wc:
    - shard-tglb:         [DMESG-WARN][43] ([i915#1982]) -> [PASS][44] +2 similar issues
   [43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-tglb5/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-mmap-wc.html
   [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-tglb3/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-mmap-wc.html

  * igt@kms_hdr@bpc-switch-suspend:
    - shard-kbl:          [DMESG-WARN][45] ([i915#180]) -> [PASS][46] +2 similar issues
   [45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-kbl2/igt@kms_hdr@bpc-switch-suspend.html
   [46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-kbl6/igt@kms_hdr@bpc-switch-suspend.html

  * igt@kms_panel_fitting@atomic-fastset:
    - shard-tglb:         [FAIL][47] ([i915#83]) -> [PASS][48]
   [47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-tglb2/igt@kms_panel_fitting@atomic-fastset.html
   [48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-tglb5/igt@kms_panel_fitting@atomic-fastset.html
    - shard-iclb:         [FAIL][49] ([i915#83]) -> [PASS][50]
   [49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-iclb7/igt@kms_panel_fitting@atomic-fastset.html
   [50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-iclb5/igt@kms_panel_fitting@atomic-fastset.html

  * igt@kms_psr2_su@page_flip:
    - shard-iclb:         [SKIP][51] ([fdo#109642] / [fdo#111068]) -> [PASS][52]
   [51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-iclb7/igt@kms_psr2_su@page_flip.html
   [52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-iclb2/igt@kms_psr2_su@page_flip.html

  * igt@kms_psr@psr2_cursor_plane_onoff:
    - shard-iclb:         [SKIP][53] ([fdo#109441]) -> [PASS][54]
   [53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-iclb6/igt@kms_psr@psr2_cursor_plane_onoff.html
   [54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-iclb2/igt@kms_psr@psr2_cursor_plane_onoff.html

  * igt@kms_universal_plane@universal-plane-pipe-c-functional:
    - shard-hsw:          [TIMEOUT][55] ([i915#1958]) -> [PASS][56] +2 similar issues
   [55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-hsw4/igt@kms_universal_plane@universal-plane-pipe-c-functional.html
   [56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-hsw1/igt@kms_universal_plane@universal-plane-pipe-c-functional.html

  * igt@kms_vblank@pipe-a-ts-continuation-modeset-hang:
    - shard-hsw:          [INCOMPLETE][57] -> [PASS][58]
   [57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-hsw7/igt@kms_vblank@pipe-a-ts-continuation-modeset-hang.html
   [58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-hsw4/igt@kms_vblank@pipe-a-ts-continuation-modeset-hang.html

  * igt@kms_vblank@pipe-b-ts-continuation-modeset-hang:
    - shard-apl:          [DMESG-WARN][59] ([i915#1635] / [i915#1982]) -> [PASS][60]
   [59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-apl8/igt@kms_vblank@pipe-b-ts-continuation-modeset-hang.html
   [60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-apl3/igt@kms_vblank@pipe-b-ts-continuation-modeset-hang.html

  
#### Warnings ####

  * igt@gem_exec_reloc@basic-concurrent16:
    - shard-snb:          [FAIL][61] ([i915#1930]) -> [TIMEOUT][62] ([i915#1958])
   [61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-snb5/igt@gem_exec_reloc@basic-concurrent16.html
   [62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-snb6/igt@gem_exec_reloc@basic-concurrent16.html

  * igt@i915_pm_dc@dc3co-vpb-simulation:
    - shard-iclb:         [SKIP][63] ([i915#588]) -> [SKIP][64] ([i915#658])
   [63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-iclb2/igt@i915_pm_dc@dc3co-vpb-simulation.html
   [64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-iclb4/igt@i915_pm_dc@dc3co-vpb-simulation.html

  * igt@kms_chamelium@common-hpd-after-suspend:
    - shard-hsw:          [TIMEOUT][65] ([i915#1958]) -> [SKIP][66] ([fdo#109271] / [fdo#111827])
   [65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-hsw4/igt@kms_chamelium@common-hpd-after-suspend.html
   [66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-hsw6/igt@kms_chamelium@common-hpd-after-suspend.html

  * igt@kms_dp_dsc@basic-dsc-enable-edp:
    - shard-iclb:         [SKIP][67] ([fdo#109349]) -> [DMESG-WARN][68] ([i915#1226])
   [67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-iclb3/igt@kms_dp_dsc@basic-dsc-enable-edp.html
   [68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-iclb2/igt@kms_dp_dsc@basic-dsc-enable-edp.html

  * igt@kms_flip@flip-vs-suspend@a-dp1:
    - shard-kbl:          [DMESG-WARN][69] ([i915#180]) -> [DMESG-WARN][70] ([i915#165])
   [69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-kbl4/igt@kms_flip@flip-vs-suspend@a-dp1.html
   [70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-kbl7/igt@kms_flip@flip-vs-suspend@a-dp1.html

  * igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-cur-indfb-draw-mmap-gtt:
    - shard-snb:          [SKIP][71] ([fdo#109271]) -> [TIMEOUT][72] ([i915#1958]) +2 similar issues
   [71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5762/shard-snb5/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-cur-indfb-draw-mmap-gtt.html
   [72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/shard-snb6/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-cur-indfb-draw-mmap-gtt.html

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

  [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
  [fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
  [fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
  [fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
  [fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
  [fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
  [i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
  [i915#1226]: https://gitlab.freedesktop.org/drm/intel/issues/1226
  [i915#1519]: https://gitlab.freedesktop.org/drm/intel/issues/1519
  [i915#1602]: https://gitlab.freedesktop.org/drm/intel/issues/1602
  [i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
  [i915#165]: https://gitlab.freedesktop.org/drm/intel/issues/165
  [i915#168]: https://gitlab.freedesktop.org/drm/intel/issues/168
  [i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
  [i915#1887]: https://gitlab.freedesktop.org/drm/intel/issues/1887
  [i915#1899]: https://gitlab.freedesktop.org/drm/intel/issues/1899
  [i915#1930]: https://gitlab.freedesktop.org/drm/intel/issues/1930
  [i915#1958]: https://gitlab.freedesktop.org/drm/intel/issues/1958
  [i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
  [i915#2258]: https://gitlab.freedesktop.org/drm/intel/issues/2258
  [i915#456]: https://gitlab.freedesktop.org/drm/intel/issues/456
  [i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
  [i915#588]: https://gitlab.freedesktop.org/drm/intel/issues/588
  [i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
  [i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
  [i915#83]: https://gitlab.freedesktop.org/drm/intel/issues/83
  [i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95


Participating hosts (8 -> 8)
------------------------------

  No changes in participating hosts


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

  * CI: CI-20190529 -> None
  * IGT: IGT_5762 -> IGTPW_4861

  CI-20190529: 20190529
  CI_DRM_8848: f39035176cb854c6d620af7614a60a485ee26818 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_4861: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/index.html
  IGT_5762: ec3d9a843686a618612016de9249117dd8d862a8 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4861/index.html

[-- Attachment #1.2: Type: text/html, Size: 20057 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips
  2020-08-06 14:49 ` [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips Michel Dänzer
@ 2020-08-07  8:54   ` Petri Latvala
  2020-08-07  9:41     ` Karthik B S
  2020-08-07  9:31   ` Karthik B S
  1 sibling, 1 reply; 11+ messages in thread
From: Petri Latvala @ 2020-08-07  8:54 UTC (permalink / raw)
  To: Michel Dänzer; +Cc: igt-dev, daniel.vetter

On Thu, Aug 06, 2020 at 04:49:19PM +0200, Michel Dänzer wrote:
> Also, the test as is can only run on Intel GPUs.


Karthik, is that the intention? (And if so, why?)

DRIVER_INTEL and the use of i915's X_TILED are the intel-specifics
that I spot, anything else in there?

Those need to be changed or the test moved to tests/i915/.

-- 
Petri Latvala
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips
  2020-08-06 14:49 ` [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips Michel Dänzer
  2020-08-07  8:54   ` Petri Latvala
@ 2020-08-07  9:31   ` Karthik B S
  2020-08-07 12:59     ` Michel Dänzer
  1 sibling, 1 reply; 11+ messages in thread
From: Karthik B S @ 2020-08-07  9:31 UTC (permalink / raw)
  To: Michel Dänzer; +Cc: igt-dev, daniel.vetter



On 8/6/2020 8:19 PM, Michel Dänzer wrote:
> On 2020-08-06 3:29 p.m., Karthik B S wrote:
>> Asynchronous flips are issued using the page flip IOCTL.
>> The test consists of two subtests. The first subtest waits for
>> the page flip event to be received before giving the next flip,
>> and the second subtest doesn't wait for page flip events.
> 
> The latter sounds sketchy. It might get lucky most of the time, but if
> the previous flip is still pending, the ioctl will fail with EBUSY.
> 

Thanks for the review.
I will update the test to retry on getting EBUSY until 1 vblank time and 
then fail if we're still getting EBUSY.
> 
> Also, the test as is can only run on Intel GPUs.
> 

I will update this in the next revision.

Thanks,
Karthik.B.S
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips
  2020-08-07  8:54   ` Petri Latvala
@ 2020-08-07  9:41     ` Karthik B S
  2020-09-04  7:53       ` Petri Latvala
  0 siblings, 1 reply; 11+ messages in thread
From: Karthik B S @ 2020-08-07  9:41 UTC (permalink / raw)
  To: Petri Latvala, Michel Dänzer; +Cc: igt-dev, daniel.vetter



On 8/7/2020 2:24 PM, Petri Latvala wrote:
> On Thu, Aug 06, 2020 at 04:49:19PM +0200, Michel Dänzer wrote:
>> Also, the test as is can only run on Intel GPUs.
> 
> 
> Karthik, is that the intention? (And if so, why?)

Hi Petri,

Thanks for the review.
No particular reason here.
Just that it has only been verified on Intel GPU, but is expected to 
work across any GPU where async flip has been enabled.
> 
> DRIVER_INTEL and the use of i915's X_TILED are the intel-specifics
> that I spot, anything else in there?
> 

I will make the required changes to make this generic in the next revision.

Thanks,
Karthik.B.S
> Those need to be changed or the test moved to tests/i915/.
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips
  2020-08-07  9:31   ` Karthik B S
@ 2020-08-07 12:59     ` Michel Dänzer
  2020-08-13 11:21       ` Karthik B S
  0 siblings, 1 reply; 11+ messages in thread
From: Michel Dänzer @ 2020-08-07 12:59 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev, daniel.vetter

On 2020-08-07 11:31 a.m., Karthik B S wrote:
> On 8/6/2020 8:19 PM, Michel Dänzer wrote:
>> On 2020-08-06 3:29 p.m., Karthik B S wrote:
>>> Asynchronous flips are issued using the page flip IOCTL.
>>> The test consists of two subtests. The first subtest waits for
>>> the page flip event to be received before giving the next flip,
>>> and the second subtest doesn't wait for page flip events.
>>
>> The latter sounds sketchy. It might get lucky most of the time, but if
>> the previous flip is still pending, the ioctl will fail with EBUSY.
>>
> 
> Thanks for the review.
> I will update the test to retry on getting EBUSY until 1 vblank time and
> then fail if we're still getting EBUSY.

That could still fail with AMD GPUs, where the vblank interrupt can fire
earlier than the flip completion interrupt.

I don't get the point of such a sub-test TBH. Userspace should always
use the flip completion event to know when a flip has completed and
another one can be submitted.


-- 
Earthling Michel Dänzer               |               https://redhat.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips
  2020-08-07 12:59     ` Michel Dänzer
@ 2020-08-13 11:21       ` Karthik B S
  0 siblings, 0 replies; 11+ messages in thread
From: Karthik B S @ 2020-08-13 11:21 UTC (permalink / raw)
  To: Michel Dänzer; +Cc: igt-dev, daniel.vetter



On 8/7/2020 6:29 PM, Michel Dänzer wrote:
> On 2020-08-07 11:31 a.m., Karthik B S wrote:
>> On 8/6/2020 8:19 PM, Michel Dänzer wrote:
>>> On 2020-08-06 3:29 p.m., Karthik B S wrote:
>>>> Asynchronous flips are issued using the page flip IOCTL.
>>>> The test consists of two subtests. The first subtest waits for
>>>> the page flip event to be received before giving the next flip,
>>>> and the second subtest doesn't wait for page flip events.
>>>
>>> The latter sounds sketchy. It might get lucky most of the time, but if
>>> the previous flip is still pending, the ioctl will fail with EBUSY.
>>>
>>
>> Thanks for the review.
>> I will update the test to retry on getting EBUSY until 1 vblank time and
>> then fail if we're still getting EBUSY.
> 
> That could still fail with AMD GPUs, where the vblank interrupt can fire
> earlier than the flip completion interrupt.
> 
> I don't get the point of such a sub-test TBH. Userspace should always
> use the flip completion event to know when a flip has completed and
> another one can be submitted.
> 
This sub-test was added as the API could be called without requesting 
for events as well.

Do you suggest we document somewhere that this API cannot be used like 
that or is there a possibility of this API still being called from 
userspace without requesting for events?

Thanks,
Karthik.B.S
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips
  2020-08-07  9:41     ` Karthik B S
@ 2020-09-04  7:53       ` Petri Latvala
  2020-09-04  9:40         ` Karthik B S
  0 siblings, 1 reply; 11+ messages in thread
From: Petri Latvala @ 2020-09-04  7:53 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev, daniel.vetter, Michel Dänzer

> On 8/7/2020 2:24 PM, Petri Latvala wrote:
> > DRIVER_INTEL and the use of i915's X_TILED are the intel-specifics
> > that I spot, anything else in there?

What I didn't spot is that kms_plane_multiple for example already uses
I915 X-tiled mod unconditionally and it seems to be fine for at least
AMDGPU... So it's DRIVER_INTEL only that needs changing for a generic
test.


-- 
Petri Latvala
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips
  2020-09-04  7:53       ` Petri Latvala
@ 2020-09-04  9:40         ` Karthik B S
  0 siblings, 0 replies; 11+ messages in thread
From: Karthik B S @ 2020-09-04  9:40 UTC (permalink / raw)
  To: Petri Latvala; +Cc: igt-dev, daniel.vetter, Michel Dänzer



On 9/4/2020 1:23 PM, Petri Latvala wrote:
>> On 8/7/2020 2:24 PM, Petri Latvala wrote:
>>> DRIVER_INTEL and the use of i915's X_TILED are the intel-specifics
>>> that I spot, anything else in there?
> 
> What I didn't spot is that kms_plane_multiple for example already uses
> I915 X-tiled mod unconditionally and it seems to be fine for at least
> AMDGPU... So it's DRIVER_INTEL only that needs changing for a generic
> test.
> 

Thanks Petri.
I'll change DRIVER_INTEL to DRIVER_ANY in the next version to make the 
test generic.

Thanks,
Karthik.B.S
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-09-04  9:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-06 13:29 [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips Karthik B S
2020-08-06 14:26 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Add test to validate asynchronous flips (rev2) Patchwork
2020-08-06 14:49 ` [igt-dev] [PATCH i-g-t v4] tests/kms_async_flips: Add test to validate asynchronous flips Michel Dänzer
2020-08-07  8:54   ` Petri Latvala
2020-08-07  9:41     ` Karthik B S
2020-09-04  7:53       ` Petri Latvala
2020-09-04  9:40         ` Karthik B S
2020-08-07  9:31   ` Karthik B S
2020-08-07 12:59     ` Michel Dänzer
2020-08-13 11:21       ` Karthik B S
2020-08-06 18:44 ` [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_async_flips: Add test to validate asynchronous flips (rev2) Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.