Avoid caching ioctl during fork
PATCH 1/1 Avoid caching ioctl during fork
Both gem_exec_flush and gem_ctx_engines require the SET_CACHING ioctl for some subtests. The ioctl itself, called by gem_set_caching, is wrapped in an igt_require, forcing a skip when the ioctl fails. MTL currently fails this check with -EOPNOTSUPP 100% of the time.
Normally, the ioctl failing and causing a test skip wouldn't be a problem. Howerver, the failing call to the ioctl is made within a forked child process in some cases, which causes an error to occur. By checking whether or not caching is supported before these cases occur, the resulting error can be downgraded to a graceful skip.
v2: The gem_ctx_engines subtest does not require using gem_set_caching if the domain is moved from CPU to WC, so the ioctl was removed from the execution path.
v3: Replace gem_mmap__cpu with gem_mmap__device_coherent instead of gem_mmap__wc in gem_ctx_engines.c
v4: Fix formatting
References: VLK-34086
Author: Jonathan Cavitt <[email protected]>
--- tests/i915/gem_ctx_engines.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
tests/i915/gem_ctx_engines.c +4 -7
@@ -492,12 +492,10 @@ static void independent(int i915, const intel_ctx_t *base_ctx, } param.ctx_id =gem_context_create (i915);gem_context_set_param (i915, ¶m); - -if (!gem_has_lmem (i915)) -gem_set_caching (i915, results.handle,I915_CACHING_CACHED ); - map =gem_mmap__cpu (i915, results.handle,0 ,4096 ,PROT_READ ); + + map =gem_mmap__device_coherent (i915, results.handle,0 ,4096 ,PROT_READ );gem_set_domain (i915, results.handle, -I915_GEM_DOMAIN_CPU ,I915_GEM_DOMAIN_CPU ); +I915_GEM_DOMAIN_WC ,I915_GEM_DOMAIN_WC );for (int i =0 ; i <I915_EXEC_RING_MASK +1 ; i++) {struct drm_i915_gem_exec_object2 obj[2 ] = {
@@ -515,8 +513,7 @@ static void independent(int i915, const intel_ctx_t *base_ctx,uint32_t *cs;int j =0 ; - cs =gem_mmap__cpu (i915, obj[1 ].handle,0 ,4096 ,PROT_WRITE ); - + cs =gem_mmap__device_coherent (i915, obj[1 ].handle,0 ,4096 ,PROT_WRITE ); cs[j] =0x24 <<23 |1 ;/* SRM */ if (has_64bit_reloc) cs[j]++;
Signature · 1 line
2.25.1
Patchwork
CI[igt-dev] ✗ GitLab.Pipeline: warning for Avoid caching ioctl during fork (rev3)
== Series Details ==
== Series Details ==
Series: Avoid caching ioctl during fork (rev3)
URL : https://patchwork.freedesktop.org/series/109753/
State : warning
== Summary ==
Pipeline status: FAILED.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/715461 for the overview.
test:ninja-test-mips has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/30005445):
Ok: 23
Expected Fail: 4
Fail: 293
Unexpected Pass: 0 Skipped: 0 Timeout: 0
Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt section_end:1666169876:step_script
section_start:1666169876:upload_artifacts_on_failure
Uploading artifacts for failed job
Uploading artifacts...
build: found 1789 matching files and directories
Uploading artifacts as "archive" to coordinator... 201 Created id=30005445 responseStatus=201 Created token=j2Jsb1zG section_end:1666169887:upload_artifacts_on_failure
section_start:1666169887:cleanup_file_variables
Cleaning up project directory and file based variables section_end:1666169887:cleanup_file_variables
ERROR: Job failed: exit code 1
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/715461
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for Avoid caching ioctl during fork (rev3)
In reply to vikassri07== Series Details ==
== Series Details ==
Series: Avoid caching ioctl during fork (rev3)
URL : https://patchwork.freedesktop.org/series/109753/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12259 -> IGTPW_7978
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_7978 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_7978, please notify your bug team 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_7978/index.html
Participating hosts (41 -> 39)
------------------------------
Additional (1): bat-adlm-1
Missing (3): fi-kbl-soraka fi-hsw-4770 fi-hsw-g3258
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_7978:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@requests:
- bat-adlp-4: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12259/bat-adlp-4/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/bat-adlp-4/igt@i915_selftest@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_selftest@live@gem_contexts:
- {fi-ehl-2}: [PASS][3] -> [DMESG-FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12259/fi-ehl-2/igt@i915_selftest@live@gem_contexts.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/fi-ehl-2/igt@i915_selftest@live@gem_contexts.html
Known issues
------------
Here are the changes found in IGTPW_7978 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_gttfill@basic:
- fi-pnv-d510: [PASS][5] -> [FAIL][6] ([i915#7229])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12259/fi-pnv-d510/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/fi-pnv-d510/igt@[email protected]
* igt@gem_lmem_swapping@verify-random:
- fi-bdw-5557u: NOTRUN -> [SKIP][7] ([fdo#109271]) +13 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/fi-bdw-5557u/igt@[email protected]
* igt@kms_chamelium@dp-edid-read:
- fi-bdw-5557u: NOTRUN -> [SKIP][8] ([fdo#109271] / [fdo#111827]) +8 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/fi-bdw-5557u/igt@[email protected]
#### Possible fixes ####
* igt@debugfs_test@read_all_entries:
- {fi-tgl-mst}: [DMESG-WARN][9] ([i915#6434]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12259/fi-tgl-mst/igt@debugfs_test@read_all_entries.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/fi-tgl-mst/igt@debugfs_test@read_all_entries.html
* igt@gem_exec_suspend@basic-s0@smem:
- {bat-rpls-1}: [DMESG-WARN][11] -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12259/bat-rpls-1/igt@gem_exec_suspend@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/bat-rpls-1/igt@gem_exec_suspend@[email protected]
* igt@gem_huc_copy@huc-copy:
- {bat-dg2-8}: [FAIL][13] ([i915#7029]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12259/bat-dg2-8/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/bat-dg2-8/igt@[email protected]
* igt@i915_selftest@live@gem_contexts:
- {fi-tgl-mst}: [DMESG-FAIL][15] ([i915#7270]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12259/fi-tgl-mst/igt@i915_selftest@live@gem_contexts.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/fi-tgl-mst/igt@i915_selftest@live@gem_contexts.html
- {bat-dg2-11}: [DMESG-FAIL][17] ([i915#7270]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12259/bat-dg2-11/igt@i915_selftest@live@gem_contexts.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/bat-dg2-11/igt@i915_selftest@live@gem_contexts.html
- {bat-jsl-1}: [DMESG-FAIL][19] ([i915#7270]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12259/bat-jsl-1/igt@i915_selftest@live@gem_contexts.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/bat-jsl-1/igt@i915_selftest@live@gem_contexts.html
* igt@i915_selftest@live@requests:
- {bat-adln-1}: [DMESG-FAIL][21] ([i915#7269]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12259/bat-adln-1/igt@i915_selftest@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/bat-adln-1/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@reset:
- {bat-rpls-2}: [DMESG-FAIL][23] ([i915#4983]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12259/bat-rpls-2/igt@i915_selftest@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/bat-rpls-2/igt@i915_selftest@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc@pipe-d-dp-3:
- {bat-dg2-11}: [FAIL][25] ([i915#6818]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12259/bat-dg2-11/igt@kms_pipe_crc_basic@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/bat-dg2-11/igt@kms_pipe_crc_basic@[email protected]
{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#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4258]: https://gitlab.freedesktop.org/drm/intel/issues/4258
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6434]: https://gitlab.freedesktop.org/drm/intel/issues/6434
[i915#6471]: https://gitlab.freedesktop.org/drm/intel/issues/6471
[i915#6559]: https://gitlab.freedesktop.org/drm/intel/issues/6559
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6818]: https://gitlab.freedesktop.org/drm/intel/issues/6818
[i915#7029]: https://gitlab.freedesktop.org/drm/intel/issues/7029
[i915#7229]: https://gitlab.freedesktop.org/drm/intel/issues/7229
[i915#7269]: https://gitlab.freedesktop.org/drm/intel/issues/7269
[i915#7270]: https://gitlab.freedesktop.org/drm/intel/issues/7270
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7019 -> IGTPW_7978
CI-20190529: 20190529
CI_DRM_12259: af4d5174f9efe29241ffa082a7417fde95ca2f28 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7978: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/index.html
IGT_7019: fdbafce2b74e84739bb1d81223ae6f01fb442980 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7978/index.html