* [igt-dev] [RFC/CI] prime_vgem: Add mmap forwarding tests
@ 2023-09-25 13:15 Tvrtko Ursulin
2023-09-25 14:57 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2023-09-25 15:34 ` [igt-dev] ✓ CI.xeBAT: success " Patchwork
0 siblings, 2 replies; 3+ messages in thread
From: Tvrtko Ursulin @ 2023-09-25 13:15 UTC (permalink / raw)
To: igt-dev, Intel-gfx
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
...
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
tests/prime_vgem.c | 45 +++++++++++++++++++++++++++++++++++++++++----
1 file changed, 41 insertions(+), 4 deletions(-)
diff --git a/tests/prime_vgem.c b/tests/prime_vgem.c
index 876e04ed02a1..29eb7eccad61 100644
--- a/tests/prime_vgem.c
+++ b/tests/prime_vgem.c
@@ -72,6 +72,21 @@
* Feature: gtt, prime
* Run type: BAT
*
+ * SUBTEST: forwarded-wc
+ * Description: Examine access path through imported buffer mmap forwarding
+ * Feature: mmap, prime
+ * Run type: FULL
+ *
+ * SUBTEST: forwarded-uc
+ * Description: Examine access path through imported buffer mmap forwarding
+ * Feature: mmap, prime
+ * Run type: FULL
+ *
+ * SUBTEST: forwarded-wb
+ * Description: Examine access path through imported buffer mmap forwarding
+ * Feature: mmap, prime
+ * Run type: FULL
+ *
* SUBTEST: basic-read
* Description: Examine read access path.
* Feature: gtt, prime
@@ -420,7 +435,7 @@ static void test_write(int vgem, int i915)
munmap(ptr, scratch.size);
}
-static void test_gtt(int vgem, int i915)
+static void test_mmap_offset(int vgem, int i915, unsigned int flags)
{
struct vgem_bo scratch;
uint32_t handle;
@@ -436,7 +451,16 @@ static void test_gtt(int vgem, int i915)
handle = prime_fd_to_handle(i915, dmabuf);
close(dmabuf);
- ptr = gem_mmap__gtt(i915, handle, scratch.size, PROT_WRITE);
+ ptr = __gem_mmap_offset(i915, handle, 0, scratch.size, PROT_WRITE,
+ flags);
+ if (flags == I915_MMAP_OFFSET_GTT) {
+ /* Only allowed to fail if no aperture. */
+ igt_require(ptr || !gem_mappable_aperture_size(i915));
+
+ } else {
+ /* Skip on old kernels. */
+ igt_require(ptr);
+ }
for (i = 0; i < 1024; i++)
ptr[1024*i] = i;
munmap(ptr, scratch.size);
@@ -448,7 +472,8 @@ static void test_gtt(int vgem, int i915)
}
munmap(ptr, scratch.size);
- ptr = gem_mmap__gtt(i915, handle, scratch.size, PROT_READ);
+ ptr = __gem_mmap_offset(i915, handle, 0, scratch.size, PROT_READ,
+ flags);
for (i = 0; i < 1024; i++)
igt_assert_eq(ptr[1024*i], ~i);
munmap(ptr, scratch.size);
@@ -1225,9 +1250,21 @@ igt_main
igt_describe("Examine access path through GTT.");
igt_subtest("basic-gtt") {
gem_require_mappable_ggtt(i915);
- test_gtt(vgem, i915);
+ test_mmap_offset(vgem, i915, I915_MMAP_OFFSET_GTT);
}
+ igt_describe("Examine access path through mmap forwarding.");
+ igt_subtest("forwarded-wc")
+ test_mmap_offset(vgem, i915, I915_MMAP_OFFSET_WC);
+
+ igt_describe("Examine access path through mmap forwarding.");
+ igt_subtest("forwarded-uc")
+ test_mmap_offset(vgem, i915, I915_MMAP_OFFSET_UC);
+
+ igt_describe("Examine access path through mmap forwarding.");
+ igt_subtest("forwarded-wb")
+ test_mmap_offset(vgem, i915, I915_MMAP_OFFSET_WB);
+
igt_describe("Examine blitter access path.");
igt_subtest("basic-blt")
test_blt(vgem, i915);
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* [igt-dev] ✗ Fi.CI.BAT: failure for prime_vgem: Add mmap forwarding tests
2023-09-25 13:15 [igt-dev] [RFC/CI] prime_vgem: Add mmap forwarding tests Tvrtko Ursulin
@ 2023-09-25 14:57 ` Patchwork
2023-09-25 15:34 ` [igt-dev] ✓ CI.xeBAT: success " Patchwork
1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2023-09-25 14:57 UTC (permalink / raw)
To: Tvrtko Ursulin; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 7860 bytes --]
== Series Details ==
Series: prime_vgem: Add mmap forwarding tests
URL : https://patchwork.freedesktop.org/series/124191/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_13676 -> IGTPW_9863
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_9863 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_9863, please notify your bug team (lgci.bug.filing@intel.com) 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_9863/index.html
Participating hosts (38 -> 38)
------------------------------
Additional (1): fi-ilk-650
Missing (1): fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_9863:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@hangcheck:
- bat-dg1-5: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13676/bat-dg1-5/igt@i915_selftest@live@hangcheck.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/bat-dg1-5/igt@i915_selftest@live@hangcheck.html
- fi-skl-guc: [PASS][3] -> [DMESG-FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13676/fi-skl-guc/igt@i915_selftest@live@hangcheck.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/fi-skl-guc/igt@i915_selftest@live@hangcheck.html
Known issues
------------
Here are the changes found in IGTPW_9863 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s3@lmem0:
- bat-atsm-1: NOTRUN -> [DMESG-WARN][5] ([i915#8841]) +4 other tests dmesg-warn
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/bat-atsm-1/igt@gem_exec_suspend@basic-s3@lmem0.html
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-ilk-650: NOTRUN -> [SKIP][6] ([fdo#109271]) +21 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/fi-ilk-650/igt@i915_pm_rpm@basic-pci-d3-state.html
* igt@i915_suspend@basic-s3-without-i915:
- bat-atsm-1: NOTRUN -> [SKIP][7] ([i915#6645])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/bat-atsm-1/igt@i915_suspend@basic-s3-without-i915.html
* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- fi-hsw-4770: NOTRUN -> [SKIP][8] ([fdo#109271]) +12 other tests skip
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/fi-hsw-4770/igt@kms_addfb_basic@addfb25-y-tiled-small-legacy.html
* igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1:
- bat-rplp-1: [PASS][9] -> [ABORT][10] ([i915#8668])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13676/bat-rplp-1/igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/bat-rplp-1/igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1.html
* igt@kms_pipe_crc_basic@suspend-read-crc:
- bat-adlm-1: NOTRUN -> [SKIP][11] ([i915#1845])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/bat-adlm-1/igt@kms_pipe_crc_basic@suspend-read-crc.html
- bat-atsm-1: NOTRUN -> [SKIP][12] ([i915#1836])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/bat-atsm-1/igt@kms_pipe_crc_basic@suspend-read-crc.html
* igt@kms_pipe_crc_basic@suspend-read-crc@pipe-c-vga-1:
- fi-hsw-4770: NOTRUN -> [DMESG-WARN][13] ([i915#8841]) +6 other tests dmesg-warn
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/fi-hsw-4770/igt@kms_pipe_crc_basic@suspend-read-crc@pipe-c-vga-1.html
* igt@kms_psr@sprite_plane_onoff:
- fi-hsw-4770: NOTRUN -> [SKIP][14] ([fdo#109271] / [i915#1072]) +3 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/fi-hsw-4770/igt@kms_psr@sprite_plane_onoff.html
#### Possible fixes ####
* igt@i915_selftest@live@gt_heartbeat:
- fi-glk-j4005: [DMESG-FAIL][15] ([i915#5334]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13676/fi-glk-j4005/igt@i915_selftest@live@gt_heartbeat.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/fi-glk-j4005/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@gt_lrc:
- bat-dg2-11: [INCOMPLETE][17] ([i915#7609] / [i915#7913]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13676/bat-dg2-11/igt@i915_selftest@live@gt_lrc.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/bat-dg2-11/igt@i915_selftest@live@gt_lrc.html
* igt@i915_selftest@live@hangcheck:
- bat-atsm-1: [INCOMPLETE][19] ([i915#7913]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13676/bat-atsm-1/igt@i915_selftest@live@hangcheck.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/bat-atsm-1/igt@i915_selftest@live@hangcheck.html
- bat-dg2-9: [ABORT][21] ([i915#7913]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13676/bat-dg2-9/igt@i915_selftest@live@hangcheck.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/bat-dg2-9/igt@i915_selftest@live@hangcheck.html
- bat-adlm-1: [INCOMPLETE][23] -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13676/bat-adlm-1/igt@i915_selftest@live@hangcheck.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/bat-adlm-1/igt@i915_selftest@live@hangcheck.html
* igt@i915_selftest@live@workarounds:
- bat-adlp-9: [INCOMPLETE][25] ([i915#7913]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13676/bat-adlp-9/igt@i915_selftest@live@workarounds.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/bat-adlp-9/igt@i915_selftest@live@workarounds.html
* igt@kms_chamelium_edid@hdmi-edid-read:
- {bat-dg2-13}: [DMESG-WARN][27] ([i915#7952]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13676/bat-dg2-13/igt@kms_chamelium_edid@hdmi-edid-read.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/bat-dg2-13/igt@kms_chamelium_edid@hdmi-edid-read.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
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1836]: https://gitlab.freedesktop.org/drm/intel/issues/1836
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
[i915#7609]: https://gitlab.freedesktop.org/drm/intel/issues/7609
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7952]: https://gitlab.freedesktop.org/drm/intel/issues/7952
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
[i915#8841]: https://gitlab.freedesktop.org/drm/intel/issues/8841
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7501 -> IGTPW_9863
CI-20190529: 20190529
CI_DRM_13676: ac2a5eb0159954ef31edf33ac4346e7153b883f5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_9863: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/index.html
IGT_7501: f95083bb410e7a5521cca9c6908760a2de6f6591 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Testlist changes
----------------
+igt@prime_vgem@forwarded-uc
+igt@prime_vgem@forwarded-wb
+igt@prime_vgem@forwarded-wc
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/index.html
[-- Attachment #2: Type: text/html, Size: 9325 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* [igt-dev] ✓ CI.xeBAT: success for prime_vgem: Add mmap forwarding tests
2023-09-25 13:15 [igt-dev] [RFC/CI] prime_vgem: Add mmap forwarding tests Tvrtko Ursulin
2023-09-25 14:57 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
@ 2023-09-25 15:34 ` Patchwork
1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2023-09-25 15:34 UTC (permalink / raw)
To: Tvrtko Ursulin; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 908 bytes --]
== Series Details ==
Series: prime_vgem: Add mmap forwarding tests
URL : https://patchwork.freedesktop.org/series/124191/
State : success
== Summary ==
CI Bug Log - changes from XEIGT_7501_BAT -> XEIGTPW_9863_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (4 -> 4)
------------------------------
No changes in participating hosts
Changes
-------
No changes found
Build changes
-------------
* IGT: IGT_7501 -> IGTPW_9863
IGTPW_9863: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9863/index.html
IGT_7501: f95083bb410e7a5521cca9c6908760a2de6f6591 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-394-6378241543c29ce3a7df5828323f1684b4bb19e3: 6378241543c29ce3a7df5828323f1684b4bb19e3
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_9863/index.html
[-- Attachment #2: Type: text/html, Size: 1452 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-25 15:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-25 13:15 [igt-dev] [RFC/CI] prime_vgem: Add mmap forwarding tests Tvrtko Ursulin
2023-09-25 14:57 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2023-09-25 15:34 ` [igt-dev] ✓ CI.xeBAT: success " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox