* [PATCH i-g-t] tests/dumb_buffer: Add subtests for mixing dumb buffers with prime
@ 2024-06-28 19:03 Zack Rusin
2024-06-28 19:48 ` ✗ GitLab.Pipeline: warning for " Patchwork
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Zack Rusin @ 2024-06-28 19:03 UTC (permalink / raw)
To: igt-dev
Cc: ian.forbes, martin.krastev, maaz.mombasawala, kamil.konieczny,
Zack Rusin
New versions of KWin are extensively using dumb buffers with prime. Add
some basic tests to verify that mixing the dumb buffer interface
with prime ends up with a well formed buffer.
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
---
tests/dumb_buffer.c | 94 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 94 insertions(+)
diff --git a/tests/dumb_buffer.c b/tests/dumb_buffer.c
index 8e243459c..62e9b419d 100644
--- a/tests/dumb_buffer.c
+++ b/tests/dumb_buffer.c
@@ -69,6 +69,18 @@
* SUBTEST: map-uaf
*
* SUBTEST: map-valid
+ *
+ * SUBTEST: dmabuf-read
+ * Description: Make a dumb buffer, map it using the dumb buffer interface,
+ * export it via prime, mmap the prime buffer and check
+ * that its contents matches what we wrote to the dumb
+ * buffer.
+ *
+ * SUBTEST: dmabuf-write
+ * Description: Make a dumb buffer, map and write to it using the prime
+ * interface, than map it using the dumb buffer interface
+ * and check whether its contents matches what we wrote using
+ * the prime interface.
*/
IGT_TEST_DESCRIPTION("This is a test for the generic dumb buffer interface.");
@@ -388,6 +400,82 @@ static void always_clear(int fd, int timeout)
igt_info("Checked %'lu page allocations\n", checked);
}
+static const uint32_t pattern[] = {
+ 0xff000000, 0x00ff0000, 0x0000ff00, 0x000000ff,
+ 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000,
+ 0x00ffff00, 0xff0000ff, 0x00ff00ff, 0xff00ff00,
+ 0xff0000ff, 0x00ff00ff, 0x00ffff00, 0xff00ff00
+};
+
+static void dmabuf_read(int fd)
+{
+ struct drm_mode_create_dumb create = {
+ .width = 64,
+ .height = 64,
+ .bpp = 32,
+ };
+ int dma_buf_fd;
+ uint32_t *ptr;
+
+ dumb_create(fd, &create);
+ ptr = dumb_map(fd, create.handle, create.size, PROT_WRITE);
+ igt_assert(ptr != MAP_FAILED);
+ igt_assert(ptr != NULL);
+ igt_assert(create.size > sizeof(pattern));
+ memcpy(ptr, pattern, sizeof(pattern));
+ munmap(ptr, create.size);
+
+ dma_buf_fd = prime_handle_to_fd_for_mmap(fd, create.handle);
+
+ /* Skip if DRM_RDWR is not supported */
+ igt_skip_on(errno == EINVAL);
+
+ ptr = mmap(NULL, create.size, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd, 0);
+ igt_assert(ptr != MAP_FAILED);
+
+ /* Check pattern correctness */
+ igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0);
+
+ munmap(ptr, create.size);
+ close(dma_buf_fd);
+
+ dumb_destroy(fd, create.handle);
+}
+
+static void dmabuf_write(int fd)
+{
+ struct drm_mode_create_dumb create = {
+ .width = 64,
+ .height = 64,
+ .bpp = 32,
+ };
+ int dma_buf_fd;
+ uint32_t *ptr;
+
+ dumb_create(fd, &create);
+
+ dma_buf_fd = prime_handle_to_fd_for_mmap(fd, create.handle);
+ /* Skip if DRM_RDWR is not supported */
+ igt_skip_on(errno == EINVAL);
+
+ ptr = mmap(NULL, create.size, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd, 0);
+ igt_assert(ptr != MAP_FAILED);
+ memcpy(ptr, pattern, sizeof(pattern));
+ munmap(ptr, create.size);
+
+
+ ptr = dumb_map(fd, create.handle, create.size, PROT_READ);
+ igt_assert(ptr != MAP_FAILED);
+ igt_assert(ptr != NULL);
+ igt_assert(create.size > sizeof(pattern));
+ igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0);
+ munmap(ptr, create.size);
+
+ close(dma_buf_fd);
+
+ dumb_destroy(fd, create.handle);
+}
+
igt_main
{
int fd = -1;
@@ -414,6 +502,12 @@ igt_main
igt_subtest("create-clear")
always_clear(fd, 30);
+ igt_subtest("dmabuf-read")
+ dmabuf_read(fd);
+
+ igt_subtest("dmabuf-write")
+ dmabuf_write(fd);
+
igt_fixture {
drm_close_driver(fd);
}
--
2.40.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* ✗ GitLab.Pipeline: warning for tests/dumb_buffer: Add subtests for mixing dumb buffers with prime 2024-06-28 19:03 [PATCH i-g-t] tests/dumb_buffer: Add subtests for mixing dumb buffers with prime Zack Rusin @ 2024-06-28 19:48 ` Patchwork 2024-06-28 20:02 ` ✓ CI.xeBAT: success " Patchwork ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: Patchwork @ 2024-06-28 19:48 UTC (permalink / raw) To: Zack Rusin; +Cc: igt-dev == Series Details == Series: tests/dumb_buffer: Add subtests for mixing dumb buffers with prime URL : https://patchwork.freedesktop.org/series/135536/ State : warning == Summary == Pipeline status: FAILED. see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/1213000 for the overview. containers:igt has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/60505685): Reinitialized existing Git repository in /builds/gfx-ci/igt-ci-tags/.git/ Checking out fe05dbc8 as detached HEAD (ref is intel/IGTPW_11333)... Removing build/ Removing scripts/__pycache__/ Skipping Git submodules setup section_end:1719603952:get_sources section_start:1719603952:download_artifacts Downloading artifacts Downloading artifacts for build:tests-fedora (60505670)... Downloading artifacts from coordinator... ok host=gitlab.freedesktop.org id=60505670 responseStatus=200 OK token=glcbt-64 section_end:1719603960:download_artifacts section_start:1719603960:step_script Executing "step_script" stage of the job script Using docker image sha256:594aa868d31ee3304dee8cae8a3433c89a6fcfcf6c7d420c04cce22f60147176 for registry.freedesktop.org/wayland/ci-templates/buildah:2019-08-13.0 with digest registry.freedesktop.org/wayland/ci-templates/buildah@sha256:7dbcf22cd2c1c7d49db0dc7b4ab207c3d6a4a09bd81cc3b71a688d3727d8749f ... section_end:1719603975:step_script section_start:1719603975:cleanup_file_variables Cleaning up project directory and file based variables section_end:1719603976:cleanup_file_variables ERROR: Job failed (system failure): Error response from daemon: no such image: docker.io/library/sha256:594aa868d31ee3304dee8cae8a3433c89a6fcfcf6c7d420c04cce22f60147176: image not known (docker.go:645:0s) == Logs == For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/1213000 ^ permalink raw reply [flat|nested] 6+ messages in thread
* ✓ CI.xeBAT: success for tests/dumb_buffer: Add subtests for mixing dumb buffers with prime 2024-06-28 19:03 [PATCH i-g-t] tests/dumb_buffer: Add subtests for mixing dumb buffers with prime Zack Rusin 2024-06-28 19:48 ` ✗ GitLab.Pipeline: warning for " Patchwork @ 2024-06-28 20:02 ` Patchwork 2024-06-28 20:11 ` ✗ Fi.CI.BAT: failure " Patchwork ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: Patchwork @ 2024-06-28 20:02 UTC (permalink / raw) To: Zack Rusin; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 2218 bytes --] == Series Details == Series: tests/dumb_buffer: Add subtests for mixing dumb buffers with prime URL : https://patchwork.freedesktop.org/series/135536/ State : success == Summary == CI Bug Log - changes from XEIGT_7907_BAT -> XEIGTPW_11333_BAT ==================================================== Summary ------- **SUCCESS** No regressions found. Participating hosts (5 -> 5) ------------------------------ No changes in participating hosts Known issues ------------ Here are the changes found in XEIGTPW_11333_BAT that come from known issues: ### IGT changes ### #### Possible fixes #### * igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1: - {bat-lnl-1}: [FAIL][1] ([Intel XE#886]) -> [PASS][2] +1 other test pass [1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/bat-lnl-1/igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1.html [2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/bat-lnl-1/igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1.html * igt@kms_frontbuffer_tracking@basic: - bat-adlp-7: [DMESG-FAIL][3] ([Intel XE#324]) -> [PASS][4] [3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/bat-adlp-7/igt@kms_frontbuffer_tracking@basic.html [4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/bat-adlp-7/igt@kms_frontbuffer_tracking@basic.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [Intel XE#324]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/324 [Intel XE#886]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/886 Build changes ------------- * IGT: IGT_7907 -> IGTPW_11333 * Linux: xe-1538-42f35e623e6590cf8ec493373e4664ae4e32123c -> xe-1542-886eeb6d89b58f914ee5045fcac54b59a73d8299 IGTPW_11333: 11333 IGT_7907: 676b8e660cadae8ffb29a45b12ad5b53ef228b6a @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git xe-1538-42f35e623e6590cf8ec493373e4664ae4e32123c: 42f35e623e6590cf8ec493373e4664ae4e32123c xe-1542-886eeb6d89b58f914ee5045fcac54b59a73d8299: 886eeb6d89b58f914ee5045fcac54b59a73d8299 == Logs == For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/index.html [-- Attachment #2: Type: text/html, Size: 2840 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* ✗ Fi.CI.BAT: failure for tests/dumb_buffer: Add subtests for mixing dumb buffers with prime 2024-06-28 19:03 [PATCH i-g-t] tests/dumb_buffer: Add subtests for mixing dumb buffers with prime Zack Rusin 2024-06-28 19:48 ` ✗ GitLab.Pipeline: warning for " Patchwork 2024-06-28 20:02 ` ✓ CI.xeBAT: success " Patchwork @ 2024-06-28 20:11 ` Patchwork 2024-06-28 21:24 ` ✓ CI.xeFULL: success " Patchwork 2024-07-26 19:21 ` [PATCH i-g-t] " Kamil Konieczny 4 siblings, 0 replies; 6+ messages in thread From: Patchwork @ 2024-06-28 20:11 UTC (permalink / raw) To: Zack Rusin; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 18535 bytes --] == Series Details == Series: tests/dumb_buffer: Add subtests for mixing dumb buffers with prime URL : https://patchwork.freedesktop.org/series/135536/ State : failure == Summary == CI Bug Log - changes from IGT_7907 -> IGTPW_11333 ==================================================== Summary ------- **FAILURE** Serious unknown changes coming with IGTPW_11333 absolutely need to be verified manually. If you think the reported changes have nothing to do with the changes introduced in IGTPW_11333, please notify your bug team (I915-ci-infra@lists.freedesktop.org) to allow them to document this new failure mode, which will reduce false positives in CI. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/index.html Participating hosts (35 -> 38) ------------------------------ Additional (7): bat-adlp-9 bat-adlp-6 fi-elk-e7500 bat-jsl-3 bat-dg2-14 bat-dg2-13 bat-dg2-11 Missing (4): bat-kbl-2 bat-jsl-1 fi-snb-2520m fi-kbl-8809g Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_11333: ### IGT changes ### #### Possible regressions #### * igt@kms_chamelium_edid@dp-edid-read: - bat-dg2-13: NOTRUN -> [ABORT][1] [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-13/igt@kms_chamelium_edid@dp-edid-read.html Known issues ------------ Here are the changes found in IGTPW_11333 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@debugfs_test@basic-hwmon: - bat-adlp-9: NOTRUN -> [SKIP][2] ([i915#9318]) [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-9/igt@debugfs_test@basic-hwmon.html - bat-adlp-6: NOTRUN -> [SKIP][3] ([i915#9318]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-6/igt@debugfs_test@basic-hwmon.html - bat-jsl-3: NOTRUN -> [SKIP][4] ([i915#9318]) [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-jsl-3/igt@debugfs_test@basic-hwmon.html * igt@gem_huc_copy@huc-copy: - bat-jsl-3: NOTRUN -> [SKIP][5] ([i915#2190]) [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-jsl-3/igt@gem_huc_copy@huc-copy.html * igt@gem_lmem_swapping@basic: - bat-jsl-3: NOTRUN -> [SKIP][6] ([i915#4613]) +3 other tests skip [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-jsl-3/igt@gem_lmem_swapping@basic.html - bat-adlp-9: NOTRUN -> [SKIP][7] ([i915#4613]) +3 other tests skip [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-9/igt@gem_lmem_swapping@basic.html * igt@gem_lmem_swapping@random-engines: - bat-adlp-6: NOTRUN -> [SKIP][8] ([i915#4613]) +3 other tests skip [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-6/igt@gem_lmem_swapping@random-engines.html * igt@gem_mmap@basic: - bat-dg2-11: NOTRUN -> [SKIP][9] ([i915#4083]) [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@gem_mmap@basic.html - bat-dg2-14: NOTRUN -> [SKIP][10] ([i915#4083]) [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@gem_mmap@basic.html * igt@gem_render_tiled_blits@basic: - bat-dg2-14: NOTRUN -> [SKIP][11] ([i915#4079]) +1 other test skip [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@gem_render_tiled_blits@basic.html * igt@gem_tiled_fence_blits@basic: - bat-dg2-14: NOTRUN -> [SKIP][12] ([i915#4077]) +2 other tests skip [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@gem_tiled_fence_blits@basic.html - bat-dg2-11: NOTRUN -> [SKIP][13] ([i915#4077]) +2 other tests skip [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@gem_tiled_fence_blits@basic.html * igt@gem_tiled_pread_basic: - bat-adlp-6: NOTRUN -> [SKIP][14] ([i915#3282]) [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-6/igt@gem_tiled_pread_basic.html - bat-adlp-9: NOTRUN -> [SKIP][15] ([i915#3282]) [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-9/igt@gem_tiled_pread_basic.html - bat-dg2-11: NOTRUN -> [SKIP][16] ([i915#4079]) +1 other test skip [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@gem_tiled_pread_basic.html * igt@i915_pm_rps@basic-api: - bat-adlp-9: NOTRUN -> [SKIP][17] ([i915#6621]) [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-9/igt@i915_pm_rps@basic-api.html - bat-dg2-14: NOTRUN -> [SKIP][18] ([i915#6621]) [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@i915_pm_rps@basic-api.html - bat-adlp-6: NOTRUN -> [SKIP][19] ([i915#6621]) [19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-6/igt@i915_pm_rps@basic-api.html - bat-dg2-11: NOTRUN -> [SKIP][20] ([i915#6621]) [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@i915_pm_rps@basic-api.html * igt@kms_addfb_basic@addfb25-x-tiled-mismatch-legacy: - bat-dg2-11: NOTRUN -> [SKIP][21] ([i915#4212]) +7 other tests skip [21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@kms_addfb_basic@addfb25-x-tiled-mismatch-legacy.html * igt@kms_addfb_basic@addfb25-y-tiled-small-legacy: - bat-dg2-11: NOTRUN -> [SKIP][22] ([i915#5190]) [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@kms_addfb_basic@addfb25-y-tiled-small-legacy.html - bat-dg2-14: NOTRUN -> [SKIP][23] ([i915#5190]) [23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@kms_addfb_basic@addfb25-y-tiled-small-legacy.html * igt@kms_addfb_basic@basic-x-tiled-legacy: - bat-dg2-14: NOTRUN -> [SKIP][24] ([i915#4212]) +7 other tests skip [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@kms_addfb_basic@basic-x-tiled-legacy.html * igt@kms_addfb_basic@basic-y-tiled-legacy: - bat-dg2-11: NOTRUN -> [SKIP][25] ([i915#4215] / [i915#5190]) [25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@kms_addfb_basic@basic-y-tiled-legacy.html - bat-dg2-14: NOTRUN -> [SKIP][26] ([i915#4215] / [i915#5190]) [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@kms_addfb_basic@basic-y-tiled-legacy.html * igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic: - bat-adlp-9: NOTRUN -> [SKIP][27] ([i915#4103]) +1 other test skip [27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-9/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic.html - bat-dg2-11: NOTRUN -> [SKIP][28] ([i915#4103] / [i915#4213]) +1 other test skip [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic.html * igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy: - bat-dg2-14: NOTRUN -> [SKIP][29] ([i915#4103] / [i915#4213]) +1 other test skip [29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy.html - bat-jsl-3: NOTRUN -> [SKIP][30] ([i915#4103]) +1 other test skip [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-jsl-3/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy.html - bat-adlp-6: NOTRUN -> [SKIP][31] ([i915#4103]) +1 other test skip [31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-6/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy.html * igt@kms_dsc@dsc-basic: - bat-dg2-11: NOTRUN -> [SKIP][32] ([i915#3555] / [i915#3840]) [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@kms_dsc@dsc-basic.html - bat-dg2-14: NOTRUN -> [SKIP][33] ([i915#3555] / [i915#3840]) [33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@kms_dsc@dsc-basic.html - bat-adlp-6: NOTRUN -> [SKIP][34] ([i915#3555] / [i915#3840]) [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-6/igt@kms_dsc@dsc-basic.html - bat-jsl-3: NOTRUN -> [SKIP][35] ([i915#3555] / [i915#9886]) [35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-jsl-3/igt@kms_dsc@dsc-basic.html - bat-adlp-9: NOTRUN -> [SKIP][36] ([i915#3555] / [i915#3840]) [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-9/igt@kms_dsc@dsc-basic.html * igt@kms_force_connector_basic@force-load-detect: - bat-dg2-14: NOTRUN -> [SKIP][37] [37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@kms_force_connector_basic@force-load-detect.html - bat-jsl-3: NOTRUN -> [SKIP][38] [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-jsl-3/igt@kms_force_connector_basic@force-load-detect.html - bat-adlp-6: NOTRUN -> [SKIP][39] [39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-6/igt@kms_force_connector_basic@force-load-detect.html - bat-adlp-9: NOTRUN -> [SKIP][40] [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-9/igt@kms_force_connector_basic@force-load-detect.html - bat-dg2-11: NOTRUN -> [SKIP][41] [41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@kms_force_connector_basic@force-load-detect.html * igt@kms_force_connector_basic@prune-stale-modes: - bat-dg2-11: NOTRUN -> [SKIP][42] ([i915#5274]) [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@kms_force_connector_basic@prune-stale-modes.html - bat-dg2-14: NOTRUN -> [SKIP][43] ([i915#5274]) [43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@kms_force_connector_basic@prune-stale-modes.html * igt@kms_pm_backlight@basic-brightness: - bat-dg2-11: NOTRUN -> [SKIP][44] ([i915#5354]) [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@kms_pm_backlight@basic-brightness.html - bat-dg2-14: NOTRUN -> [SKIP][45] ([i915#5354]) [45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@kms_pm_backlight@basic-brightness.html - bat-adlp-9: NOTRUN -> [SKIP][46] ([i915#9812]) [46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-9/igt@kms_pm_backlight@basic-brightness.html * igt@kms_pm_rpm@basic-pci-d3-state: - fi-elk-e7500: NOTRUN -> [SKIP][47] +24 other tests skip [47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/fi-elk-e7500/igt@kms_pm_rpm@basic-pci-d3-state.html * igt@kms_psr@psr-sprite-plane-onoff: - bat-adlp-9: NOTRUN -> [SKIP][48] ([i915#1072] / [i915#9673] / [i915#9732]) +3 other tests skip [48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-9/igt@kms_psr@psr-sprite-plane-onoff.html - bat-dg2-11: NOTRUN -> [SKIP][49] ([i915#1072] / [i915#9732]) +3 other tests skip [49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@kms_psr@psr-sprite-plane-onoff.html - bat-dg2-14: NOTRUN -> [SKIP][50] ([i915#1072] / [i915#9732]) +3 other tests skip [50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@kms_psr@psr-sprite-plane-onoff.html * igt@kms_setmode@basic-clone-single-crtc: - bat-adlp-9: NOTRUN -> [SKIP][51] ([i915#3555]) [51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-9/igt@kms_setmode@basic-clone-single-crtc.html - bat-dg2-14: NOTRUN -> [SKIP][52] ([i915#3555]) [52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@kms_setmode@basic-clone-single-crtc.html - bat-adlp-6: NOTRUN -> [SKIP][53] ([i915#3555]) [53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-6/igt@kms_setmode@basic-clone-single-crtc.html - bat-jsl-3: NOTRUN -> [SKIP][54] ([i915#3555]) [54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-jsl-3/igt@kms_setmode@basic-clone-single-crtc.html - bat-dg2-11: NOTRUN -> [SKIP][55] ([i915#3555]) [55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@kms_setmode@basic-clone-single-crtc.html * igt@prime_vgem@basic-fence-flip: - bat-dg2-11: NOTRUN -> [SKIP][56] ([i915#3708]) [56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@prime_vgem@basic-fence-flip.html - bat-dg2-14: NOTRUN -> [SKIP][57] ([i915#3708]) [57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@prime_vgem@basic-fence-flip.html * igt@prime_vgem@basic-fence-mmap: - bat-dg2-11: NOTRUN -> [SKIP][58] ([i915#3708] / [i915#4077]) +1 other test skip [58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@prime_vgem@basic-fence-mmap.html - bat-dg2-14: NOTRUN -> [SKIP][59] ([i915#3708] / [i915#4077]) +1 other test skip [59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@prime_vgem@basic-fence-mmap.html * igt@prime_vgem@basic-fence-read: - bat-adlp-9: NOTRUN -> [SKIP][60] ([i915#3291] / [i915#3708]) +2 other tests skip [60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-9/igt@prime_vgem@basic-fence-read.html - bat-adlp-6: NOTRUN -> [SKIP][61] ([i915#3291] / [i915#3708]) +2 other tests skip [61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-adlp-6/igt@prime_vgem@basic-fence-read.html * igt@prime_vgem@basic-read: - bat-dg2-11: NOTRUN -> [SKIP][62] ([i915#3291] / [i915#3708]) +2 other tests skip [62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-11/igt@prime_vgem@basic-read.html - bat-dg2-14: NOTRUN -> [SKIP][63] ([i915#3291] / [i915#3708]) +2 other tests skip [63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/bat-dg2-14/igt@prime_vgem@basic-read.html #### Possible fixes #### * igt@debugfs_test@read_all_entries: - fi-kbl-7567u: [DMESG-WARN][64] -> [PASS][65] +5 other tests pass [64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7907/fi-kbl-7567u/igt@debugfs_test@read_all_entries.html [65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/fi-kbl-7567u/igt@debugfs_test@read_all_entries.html * igt@i915_pm_rpm@module-reload: - fi-kbl-7567u: [DMESG-WARN][66] ([i915#10062] / [i915#180] / [i915#1982] / [i915#9925]) -> [PASS][67] [66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7907/fi-kbl-7567u/igt@i915_pm_rpm@module-reload.html [67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/fi-kbl-7567u/igt@i915_pm_rpm@module-reload.html * igt@i915_selftest@live@sanitycheck: - fi-kbl-7567u: [DMESG-WARN][68] ([i915#11328]) -> [PASS][69] +74 other tests pass [68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7907/fi-kbl-7567u/igt@i915_selftest@live@sanitycheck.html [69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/fi-kbl-7567u/igt@i915_selftest@live@sanitycheck.html * igt@kms_busy@basic@flip: - fi-kbl-7567u: [DMESG-WARN][70] ([i915#180]) -> [PASS][71] [70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7907/fi-kbl-7567u/igt@kms_busy@basic@flip.html [71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/fi-kbl-7567u/igt@kms_busy@basic@flip.html * igt@kms_pm_rpm@basic-pci-d3-state: - fi-kbl-7567u: [DMESG-WARN][72] ([i915#10062] / [i915#180] / [i915#9925]) -> [PASS][73] +39 other tests pass [72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7907/fi-kbl-7567u/igt@kms_pm_rpm@basic-pci-d3-state.html [73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/fi-kbl-7567u/igt@kms_pm_rpm@basic-pci-d3-state.html [i915#10062]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10062 [i915#1072]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1072 [i915#11328]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11328 [i915#180]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/180 [i915#1982]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1982 [i915#2190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2190 [i915#3282]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3282 [i915#3291]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3291 [i915#3555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3555 [i915#3708]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3708 [i915#3840]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3840 [i915#4077]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4077 [i915#4079]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4079 [i915#4083]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4083 [i915#4103]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4103 [i915#4212]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4212 [i915#4213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4213 [i915#4215]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4215 [i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613 [i915#5190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5190 [i915#5274]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5274 [i915#5354]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5354 [i915#6621]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6621 [i915#9318]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9318 [i915#9673]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9673 [i915#9732]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9732 [i915#9812]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9812 [i915#9886]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9886 [i915#9925]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9925 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_7907 -> IGTPW_11333 CI-20190529: 20190529 CI_DRM_15013: 0318a12ff6fb8c321458aa2b373e9322896ee951 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_11333: 11333 IGT_7907: 676b8e660cadae8ffb29a45b12ad5b53ef228b6a @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11333/index.html [-- Attachment #2: Type: text/html, Size: 24170 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* ✓ CI.xeFULL: success for tests/dumb_buffer: Add subtests for mixing dumb buffers with prime 2024-06-28 19:03 [PATCH i-g-t] tests/dumb_buffer: Add subtests for mixing dumb buffers with prime Zack Rusin ` (2 preceding siblings ...) 2024-06-28 20:11 ` ✗ Fi.CI.BAT: failure " Patchwork @ 2024-06-28 21:24 ` Patchwork 2024-07-26 19:21 ` [PATCH i-g-t] " Kamil Konieczny 4 siblings, 0 replies; 6+ messages in thread From: Patchwork @ 2024-06-28 21:24 UTC (permalink / raw) To: Zack Rusin; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 24218 bytes --] == Series Details == Series: tests/dumb_buffer: Add subtests for mixing dumb buffers with prime URL : https://patchwork.freedesktop.org/series/135536/ State : success == Summary == CI Bug Log - changes from XEIGT_7907_full -> XEIGTPW_11333_full ==================================================== Summary ------- **SUCCESS** No regressions found. Participating hosts (3 -> 3) ------------------------------ No changes in participating hosts Possible new issues ------------------- Here are the unknown changes that may have been introduced in XEIGTPW_11333_full: ### IGT changes ### #### Suppressed #### The following results come from untrusted machines, tests, or statuses. They do not affect the overall result. * {igt@kms_bw@connected-linear-tiling-4-displays-2160x1440p}: - {shard-lnl}: NOTRUN -> [SKIP][1] +1 other test skip [1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-lnl-7/igt@kms_bw@connected-linear-tiling-4-displays-2160x1440p.html Known issues ------------ Here are the changes found in XEIGTPW_11333_full that come from known issues: ### IGT changes ### #### Issues hit #### * igt@kms_big_fb@4-tiled-32bpp-rotate-270: - shard-dg2-set2: NOTRUN -> [SKIP][2] ([Intel XE#1201] / [Intel XE#316]) +1 other test skip [2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-434/igt@kms_big_fb@4-tiled-32bpp-rotate-270.html * igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-async-flip: - shard-dg2-set2: NOTRUN -> [SKIP][3] ([Intel XE#1124] / [Intel XE#1201]) +3 other tests skip [3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-436/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-async-flip.html * igt@kms_ccs@bad-pixel-format-y-tiled-gen12-mc-ccs@pipe-d-dp-4: - shard-dg2-set2: NOTRUN -> [SKIP][4] ([Intel XE#1201] / [Intel XE#455] / [Intel XE#787]) +13 other tests skip [4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-435/igt@kms_ccs@bad-pixel-format-y-tiled-gen12-mc-ccs@pipe-d-dp-4.html * igt@kms_ccs@ccs-on-another-bo-y-tiled-ccs@pipe-b-dp-4: - shard-dg2-set2: NOTRUN -> [SKIP][5] ([Intel XE#1201] / [Intel XE#787]) +48 other tests skip [5]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-433/igt@kms_ccs@ccs-on-another-bo-y-tiled-ccs@pipe-b-dp-4.html * igt@kms_cdclk@mode-transition-all-outputs: - shard-dg2-set2: NOTRUN -> [SKIP][6] ([Intel XE#1201] / [Intel XE#314]) [6]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@kms_cdclk@mode-transition-all-outputs.html * igt@kms_chamelium_color@ctm-blue-to-red: - shard-dg2-set2: NOTRUN -> [SKIP][7] ([Intel XE#1201] / [Intel XE#306]) [7]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-433/igt@kms_chamelium_color@ctm-blue-to-red.html * igt@kms_chamelium_frames@hdmi-frame-dump: - shard-dg2-set2: NOTRUN -> [SKIP][8] ([Intel XE#1201] / [Intel XE#373]) +2 other tests skip [8]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-436/igt@kms_chamelium_frames@hdmi-frame-dump.html * igt@kms_content_protection@dp-mst-lic-type-0: - shard-dg2-set2: NOTRUN -> [SKIP][9] ([Intel XE#1201] / [Intel XE#307]) [9]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-435/igt@kms_content_protection@dp-mst-lic-type-0.html * igt@kms_cursor_crc@cursor-rapid-movement-512x512: - shard-dg2-set2: NOTRUN -> [SKIP][10] ([Intel XE#1201] / [Intel XE#308]) [10]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@kms_cursor_crc@cursor-rapid-movement-512x512.html * igt@kms_flip@flip-vs-suspend-interruptible@b-dp4: - shard-dg2-set2: [PASS][11] -> [INCOMPLETE][12] ([Intel XE#1195]) [11]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-433/igt@kms_flip@flip-vs-suspend-interruptible@b-dp4.html [12]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-466/igt@kms_flip@flip-vs-suspend-interruptible@b-dp4.html * igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode: - shard-dg2-set2: NOTRUN -> [SKIP][13] ([Intel XE#1201] / [Intel XE#455]) +6 other tests skip [13]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-466/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode.html * igt@kms_frontbuffer_tracking@drrs-2p-primscrn-cur-indfb-draw-mmap-wc: - shard-dg2-set2: NOTRUN -> [SKIP][14] ([Intel XE#1201] / [Intel XE#651]) +10 other tests skip [14]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-466/igt@kms_frontbuffer_tracking@drrs-2p-primscrn-cur-indfb-draw-mmap-wc.html * igt@kms_frontbuffer_tracking@psr-shrfb-scaledprimary: - shard-dg2-set2: NOTRUN -> [SKIP][15] ([Intel XE#1201] / [Intel XE#653]) +9 other tests skip [15]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-434/igt@kms_frontbuffer_tracking@psr-shrfb-scaledprimary.html * igt@kms_hdmi_inject@inject-audio: - shard-dg2-set2: NOTRUN -> [SKIP][16] ([Intel XE#1201] / [Intel XE#417]) [16]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-434/igt@kms_hdmi_inject@inject-audio.html * igt@kms_plane_scaling@plane-downscale-factor-0-25-with-rotation: - shard-dg2-set2: NOTRUN -> [SKIP][17] ([Intel XE#1201] / [Intel XE#455] / [Intel XE#498]) +1 other test skip [17]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-466/igt@kms_plane_scaling@plane-downscale-factor-0-25-with-rotation.html * igt@kms_plane_scaling@plane-downscale-factor-0-25-with-rotation@pipe-b-hdmi-a-6: - shard-dg2-set2: NOTRUN -> [SKIP][18] ([Intel XE#1201] / [Intel XE#498]) +2 other tests skip [18]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-466/igt@kms_plane_scaling@plane-downscale-factor-0-25-with-rotation@pipe-b-hdmi-a-6.html * igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-20x20@pipe-a-hdmi-a-6: - shard-dg2-set2: NOTRUN -> [SKIP][19] ([Intel XE#1201] / [Intel XE#305]) +2 other tests skip [19]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-434/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-20x20@pipe-a-hdmi-a-6.html * igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-20x20@pipe-d-hdmi-a-6: - shard-dg2-set2: NOTRUN -> [SKIP][20] ([Intel XE#1201] / [Intel XE#305] / [Intel XE#455]) +1 other test skip [20]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-434/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-20x20@pipe-d-hdmi-a-6.html * igt@kms_psr2_sf@fbc-cursor-plane-move-continuous-exceed-sf: - shard-dg2-set2: NOTRUN -> [SKIP][21] ([Intel XE#1201] / [Intel XE#1489]) +1 other test skip [21]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@kms_psr2_sf@fbc-cursor-plane-move-continuous-exceed-sf.html * igt@kms_psr@fbc-psr2-sprite-plane-move: - shard-dg2-set2: NOTRUN -> [SKIP][22] ([Intel XE#1201] / [Intel XE#929]) +5 other tests skip [22]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-466/igt@kms_psr@fbc-psr2-sprite-plane-move.html * igt@kms_vblank@ts-continuation-dpms-suspend: - shard-dg2-set2: [PASS][23] -> [DMESG-WARN][24] ([Intel XE#1214] / [Intel XE#1551]) +1 other test dmesg-warn [23]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-436/igt@kms_vblank@ts-continuation-dpms-suspend.html [24]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@kms_vblank@ts-continuation-dpms-suspend.html * igt@sriov_basic@bind-unbind-vf: - shard-dg2-set2: NOTRUN -> [SKIP][25] ([Intel XE#1091] / [Intel XE#1201]) [25]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@sriov_basic@bind-unbind-vf.html * igt@xe_compute@ccs-mode-basic: - shard-dg2-set2: NOTRUN -> [FAIL][26] ([Intel XE#1050]) [26]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-436/igt@xe_compute@ccs-mode-basic.html * igt@xe_copy_basic@mem-set-linear-0x369: - shard-dg2-set2: NOTRUN -> [SKIP][27] ([Intel XE#1126] / [Intel XE#1201]) [27]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@xe_copy_basic@mem-set-linear-0x369.html * igt@xe_evict@evict-beng-large-multi-vm-cm: - shard-dg2-set2: [PASS][28] -> [FAIL][29] ([Intel XE#1600]) [28]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-463/igt@xe_evict@evict-beng-large-multi-vm-cm.html [29]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-436/igt@xe_evict@evict-beng-large-multi-vm-cm.html * igt@xe_evict@evict-threads-large: - shard-dg2-set2: [PASS][30] -> [TIMEOUT][31] ([Intel XE#1473] / [Intel XE#392]) [30]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-464/igt@xe_evict@evict-threads-large.html [31]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-464/igt@xe_evict@evict-threads-large.html * igt@xe_exec_fault_mode@once-basic-imm: - shard-dg2-set2: NOTRUN -> [SKIP][32] ([Intel XE#1201] / [Intel XE#288]) +7 other tests skip [32]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-435/igt@xe_exec_fault_mode@once-basic-imm.html * igt@xe_pm@s3-basic-exec: - shard-dg2-set2: [PASS][33] -> [DMESG-WARN][34] ([Intel XE#1214] / [Intel XE#1551] / [Intel XE#569]) [33]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-436/igt@xe_pm@s3-basic-exec.html [34]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-436/igt@xe_pm@s3-basic-exec.html * igt@xe_query@multigpu-query-topology-l3-bank-mask: - shard-dg2-set2: NOTRUN -> [SKIP][35] ([Intel XE#1201] / [Intel XE#944]) [35]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@xe_query@multigpu-query-topology-l3-bank-mask.html #### Possible fixes #### * igt@kms_async_flips@async-flip-with-page-flip-events: - shard-dg2-set2: [DMESG-WARN][36] ([Intel XE#1214]) -> [PASS][37] [36]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-466/igt@kms_async_flips@async-flip-with-page-flip-events.html [37]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-464/igt@kms_async_flips@async-flip-with-page-flip-events.html * igt@kms_atomic_transition@modeset-transition-nonblocking@1x-outputs: - {shard-lnl}: [FAIL][38] ([Intel XE#1701]) -> [PASS][39] +1 other test pass [38]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-lnl-1/igt@kms_atomic_transition@modeset-transition-nonblocking@1x-outputs.html [39]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-lnl-8/igt@kms_atomic_transition@modeset-transition-nonblocking@1x-outputs.html * igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0-hflip: - {shard-lnl}: [FAIL][40] ([Intel XE#1659]) -> [PASS][41] [40]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-lnl-2/igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0-hflip.html [41]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-lnl-7/igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0-hflip.html * igt@kms_plane_scaling@intel-max-src-size@pipe-a-dp-4: - shard-dg2-set2: [FAIL][42] ([Intel XE#361]) -> [PASS][43] +1 other test pass [42]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-433/igt@kms_plane_scaling@intel-max-src-size@pipe-a-dp-4.html [43]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@kms_plane_scaling@intel-max-src-size@pipe-a-dp-4.html * igt@kms_psr@psr2-suspend: - {shard-lnl}: [DMESG-WARN][44] ([Intel XE#2052]) -> [PASS][45] +3 other tests pass [44]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-lnl-7/igt@kms_psr@psr2-suspend.html [45]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-lnl-1/igt@kms_psr@psr2-suspend.html * igt@kms_sequence@get-forked-busy: - shard-dg2-set2: [INCOMPLETE][46] ([Intel XE#1195]) -> [PASS][47] +3 other tests pass [46]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-466/igt@kms_sequence@get-forked-busy.html [47]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-436/igt@kms_sequence@get-forked-busy.html * igt@kms_universal_plane@cursor-fb-leak: - shard-dg2-set2: [FAIL][48] ([Intel XE#771] / [Intel XE#899]) -> [PASS][49] [48]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-463/igt@kms_universal_plane@cursor-fb-leak.html [49]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@kms_universal_plane@cursor-fb-leak.html * igt@kms_universal_plane@cursor-fb-leak@pipe-a-hdmi-a-6: - shard-dg2-set2: [FAIL][50] ([Intel XE#899]) -> [PASS][51] [50]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-463/igt@kms_universal_plane@cursor-fb-leak@pipe-a-hdmi-a-6.html [51]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@kms_universal_plane@cursor-fb-leak@pipe-a-hdmi-a-6.html * igt@xe_evict@evict-beng-cm-threads-large: - shard-dg2-set2: [INCOMPLETE][52] ([Intel XE#1195] / [Intel XE#1473]) -> [PASS][53] [52]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-436/igt@xe_evict@evict-beng-cm-threads-large.html [53]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-436/igt@xe_evict@evict-beng-cm-threads-large.html * igt@xe_evict@evict-beng-mixed-threads-large: - shard-dg2-set2: [TIMEOUT][54] ([Intel XE#1473] / [Intel XE#392]) -> [PASS][55] [54]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-466/igt@xe_evict@evict-beng-mixed-threads-large.html [55]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-435/igt@xe_evict@evict-beng-mixed-threads-large.html * igt@xe_evict@evict-beng-threads-large: - shard-dg2-set2: [TIMEOUT][56] ([Intel XE#1473]) -> [PASS][57] [56]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-464/igt@xe_evict@evict-beng-threads-large.html [57]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-464/igt@xe_evict@evict-beng-threads-large.html * igt@xe_evict@evict-large-multi-vm-cm: - shard-dg2-set2: [FAIL][58] ([Intel XE#1600]) -> [PASS][59] [58]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-436/igt@xe_evict@evict-large-multi-vm-cm.html [59]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-466/igt@xe_evict@evict-large-multi-vm-cm.html * igt@xe_gt_freq@freq_fixed_idle: - {shard-lnl}: [SKIP][60] ([Intel XE#1462]) -> [PASS][61] [60]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-lnl-4/igt@xe_gt_freq@freq_fixed_idle.html [61]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-lnl-7/igt@xe_gt_freq@freq_fixed_idle.html * igt@xe_live_ktest@xe_dma_buf: - shard-dg2-set2: [SKIP][62] ([Intel XE#1192] / [Intel XE#1201]) -> [PASS][63] [62]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-466/igt@xe_live_ktest@xe_dma_buf.html [63]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@xe_live_ktest@xe_dma_buf.html #### Warnings #### * igt@kms_flip@flip-vs-suspend-interruptible: - shard-dg2-set2: [DMESG-WARN][64] ([Intel XE#1214] / [Intel XE#1551]) -> [INCOMPLETE][65] ([Intel XE#1195] / [Intel XE#1551] / [Intel XE#2049]) [64]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-433/igt@kms_flip@flip-vs-suspend-interruptible.html [65]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-466/igt@kms_flip@flip-vs-suspend-interruptible.html * igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b: - shard-dg2-set2: [FAIL][66] ([Intel XE#616]) -> [DMESG-FAIL][67] ([Intel XE#1551]) +1 other test dmesg-fail [66]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-466/igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b.html [67]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-435/igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b.html * igt@kms_tiled_display@basic-test-pattern: - shard-dg2-set2: [FAIL][68] ([Intel XE#1729]) -> [SKIP][69] ([Intel XE#1201] / [Intel XE#362]) [68]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-435/igt@kms_tiled_display@basic-test-pattern.html [69]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@kms_tiled_display@basic-test-pattern.html * igt@xe_evict@evict-cm-threads-large: - shard-dg2-set2: [INCOMPLETE][70] ([Intel XE#1195] / [Intel XE#1473] / [Intel XE#392]) -> [INCOMPLETE][71] ([Intel XE#1195] / [Intel XE#1473]) [70]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-466/igt@xe_evict@evict-cm-threads-large.html [71]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-463/igt@xe_evict@evict-cm-threads-large.html * igt@xe_exec_reset@parallel-gt-reset: - shard-dg2-set2: [TIMEOUT][72] ([Intel XE#2105]) -> [INCOMPLETE][73] ([Intel XE#1195]) [72]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7907/shard-dg2-433/igt@xe_exec_reset@parallel-gt-reset.html [73]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/shard-dg2-466/igt@xe_exec_reset@parallel-gt-reset.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [Intel XE#1050]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1050 [Intel XE#1061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1061 [Intel XE#1091]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1091 [Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124 [Intel XE#1126]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1126 [Intel XE#1131]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1131 [Intel XE#1138]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1138 [Intel XE#1192]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1192 [Intel XE#1195]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1195 [Intel XE#1201]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1201 [Intel XE#1214]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1214 [Intel XE#1330]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1330 [Intel XE#1358]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1358 [Intel XE#1392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1392 [Intel XE#1397]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1397 [Intel XE#1399]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1399 [Intel XE#1401]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1401 [Intel XE#1406]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1406 [Intel XE#1407]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1407 [Intel XE#1413]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1413 [Intel XE#1416]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1416 [Intel XE#1421]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1421 [Intel XE#1424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1424 [Intel XE#1437]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1437 [Intel XE#1462]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1462 [Intel XE#1465]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1465 [Intel XE#1468]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1468 [Intel XE#1473]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1473 [Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489 [Intel XE#1551]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1551 [Intel XE#1600]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1600 [Intel XE#1607]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1607 [Intel XE#1659]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1659 [Intel XE#1701]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1701 [Intel XE#1729]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1729 [Intel XE#1745]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1745 [Intel XE#1760]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1760 [Intel XE#2049]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2049 [Intel XE#2052]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2052 [Intel XE#2105]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2105 [Intel XE#288]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/288 [Intel XE#305]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/305 [Intel XE#306]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/306 [Intel XE#307]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/307 [Intel XE#308]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/308 [Intel XE#309]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/309 [Intel XE#314]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/314 [Intel XE#316]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/316 [Intel XE#323]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/323 [Intel XE#346]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/346 [Intel XE#352]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/352 [Intel XE#361]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/361 [Intel XE#362]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/362 [Intel XE#366]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/366 [Intel XE#373]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/373 [Intel XE#378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/378 [Intel XE#379]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/379 [Intel XE#392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/392 [Intel XE#417]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/417 [Intel XE#455]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/455 [Intel XE#498]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/498 [Intel XE#560]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/560 [Intel XE#569]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/569 [Intel XE#584]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/584 [Intel XE#599]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/599 [Intel XE#605]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/605 [Intel XE#616]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/616 [Intel XE#651]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/651 [Intel XE#653]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/653 [Intel XE#656]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/656 [Intel XE#660]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/660 [Intel XE#688]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/688 [Intel XE#718]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/718 [Intel XE#756]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/756 [Intel XE#771]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/771 [Intel XE#787]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/787 [Intel XE#870]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/870 [Intel XE#899]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/899 [Intel XE#911]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/911 [Intel XE#929]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/929 [Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944 Build changes ------------- * IGT: IGT_7907 -> IGTPW_11333 * Linux: xe-1538-42f35e623e6590cf8ec493373e4664ae4e32123c -> xe-1542-886eeb6d89b58f914ee5045fcac54b59a73d8299 IGTPW_11333: 11333 IGT_7907: 676b8e660cadae8ffb29a45b12ad5b53ef228b6a @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git xe-1538-42f35e623e6590cf8ec493373e4664ae4e32123c: 42f35e623e6590cf8ec493373e4664ae4e32123c xe-1542-886eeb6d89b58f914ee5045fcac54b59a73d8299: 886eeb6d89b58f914ee5045fcac54b59a73d8299 == Logs == For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11333/index.html [-- Attachment #2: Type: text/html, Size: 26594 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH i-g-t] tests/dumb_buffer: Add subtests for mixing dumb buffers with prime 2024-06-28 19:03 [PATCH i-g-t] tests/dumb_buffer: Add subtests for mixing dumb buffers with prime Zack Rusin ` (3 preceding siblings ...) 2024-06-28 21:24 ` ✓ CI.xeFULL: success " Patchwork @ 2024-07-26 19:21 ` Kamil Konieczny 4 siblings, 0 replies; 6+ messages in thread From: Kamil Konieczny @ 2024-07-26 19:21 UTC (permalink / raw) To: igt-dev Cc: Zack Rusin, ian.forbes, martin.krastev, maaz.mombasawala, Juha-Pekka Heikkila, Bhanuprakash Modem Hi Zack, On 2024-06-28 at 15:03:18 -0400, Zack Rusin wrote: > New versions of KWin are extensively using dumb buffers with prime. Add > some basic tests to verify that mixing the dumb buffer interface > with prime ends up with a well formed buffer. > > Signed-off-by: Zack Rusin <zack.rusin@broadcom.com> Adding Juha-Pekka and Bhanu to Cc: +Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> +Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Regards, Kamil > --- > tests/dumb_buffer.c | 94 +++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 94 insertions(+) > > diff --git a/tests/dumb_buffer.c b/tests/dumb_buffer.c > index 8e243459c..62e9b419d 100644 > --- a/tests/dumb_buffer.c > +++ b/tests/dumb_buffer.c > @@ -69,6 +69,18 @@ > * SUBTEST: map-uaf > * > * SUBTEST: map-valid > + * > + * SUBTEST: dmabuf-read > + * Description: Make a dumb buffer, map it using the dumb buffer interface, > + * export it via prime, mmap the prime buffer and check > + * that its contents matches what we wrote to the dumb > + * buffer. > + * > + * SUBTEST: dmabuf-write > + * Description: Make a dumb buffer, map and write to it using the prime > + * interface, than map it using the dumb buffer interface > + * and check whether its contents matches what we wrote using > + * the prime interface. > */ > > IGT_TEST_DESCRIPTION("This is a test for the generic dumb buffer interface."); > @@ -388,6 +400,82 @@ static void always_clear(int fd, int timeout) > igt_info("Checked %'lu page allocations\n", checked); > } > > +static const uint32_t pattern[] = { > + 0xff000000, 0x00ff0000, 0x0000ff00, 0x000000ff, > + 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000, > + 0x00ffff00, 0xff0000ff, 0x00ff00ff, 0xff00ff00, > + 0xff0000ff, 0x00ff00ff, 0x00ffff00, 0xff00ff00 > +}; > + > +static void dmabuf_read(int fd) > +{ > + struct drm_mode_create_dumb create = { > + .width = 64, > + .height = 64, > + .bpp = 32, > + }; > + int dma_buf_fd; > + uint32_t *ptr; > + > + dumb_create(fd, &create); > + ptr = dumb_map(fd, create.handle, create.size, PROT_WRITE); > + igt_assert(ptr != MAP_FAILED); > + igt_assert(ptr != NULL); > + igt_assert(create.size > sizeof(pattern)); > + memcpy(ptr, pattern, sizeof(pattern)); > + munmap(ptr, create.size); > + > + dma_buf_fd = prime_handle_to_fd_for_mmap(fd, create.handle); > + > + /* Skip if DRM_RDWR is not supported */ > + igt_skip_on(errno == EINVAL); > + > + ptr = mmap(NULL, create.size, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd, 0); > + igt_assert(ptr != MAP_FAILED); > + > + /* Check pattern correctness */ > + igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); > + > + munmap(ptr, create.size); > + close(dma_buf_fd); > + > + dumb_destroy(fd, create.handle); > +} > + > +static void dmabuf_write(int fd) > +{ > + struct drm_mode_create_dumb create = { > + .width = 64, > + .height = 64, > + .bpp = 32, > + }; > + int dma_buf_fd; > + uint32_t *ptr; > + > + dumb_create(fd, &create); > + > + dma_buf_fd = prime_handle_to_fd_for_mmap(fd, create.handle); > + /* Skip if DRM_RDWR is not supported */ > + igt_skip_on(errno == EINVAL); > + > + ptr = mmap(NULL, create.size, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd, 0); > + igt_assert(ptr != MAP_FAILED); > + memcpy(ptr, pattern, sizeof(pattern)); > + munmap(ptr, create.size); > + > + > + ptr = dumb_map(fd, create.handle, create.size, PROT_READ); > + igt_assert(ptr != MAP_FAILED); > + igt_assert(ptr != NULL); > + igt_assert(create.size > sizeof(pattern)); > + igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); > + munmap(ptr, create.size); > + > + close(dma_buf_fd); > + > + dumb_destroy(fd, create.handle); > +} > + > igt_main > { > int fd = -1; > @@ -414,6 +502,12 @@ igt_main > igt_subtest("create-clear") > always_clear(fd, 30); > > + igt_subtest("dmabuf-read") > + dmabuf_read(fd); > + > + igt_subtest("dmabuf-write") > + dmabuf_write(fd); > + > igt_fixture { > drm_close_driver(fd); > } > -- > 2.40.1 > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-07-26 19:21 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-06-28 19:03 [PATCH i-g-t] tests/dumb_buffer: Add subtests for mixing dumb buffers with prime Zack Rusin 2024-06-28 19:48 ` ✗ GitLab.Pipeline: warning for " Patchwork 2024-06-28 20:02 ` ✓ CI.xeBAT: success " Patchwork 2024-06-28 20:11 ` ✗ Fi.CI.BAT: failure " Patchwork 2024-06-28 21:24 ` ✓ CI.xeFULL: success " Patchwork 2024-07-26 19:21 ` [PATCH i-g-t] " Kamil Konieczny
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox