lib/xe/xe_query: add media GT presence checker
cover lib/xe/xe_query: add media GT presence checker
Lukasz Laguna (1):
lib/xe/xe_query: add media GT presence checker
lib/xe/xe_query.c | 20 ++++++++++++++++++++ lib/xe/xe_query.h | 1 + 2 files changed, 21 insertions(+)
Signature · 1 line
2.40.0
PATCH 1/1 lib/xe/xe_query: add media GT presence checker
Add helper checking if platform is equipped with media GT.
v2: add "lib/" prefix to subject (Kamil)
--- lib/xe/xe_query.c | 20 ++++++++++++++++++++ lib/xe/xe_query.h | 1 + 2 files changed, 21 insertions(+)
lib/xe/xe_query.c +20 -0
@@ -711,6 +711,26 @@ bool xe_has_engine_class(int fd, uint16_t engine_class)return false; } +/** +* xe_has_media_gt: +* @fd: xe device fd +* +* Returns true if device @fd has media GT otherwise false. +*/ +bool xe_has_media_gt (int fd) +{ +struct xe_device *xe_dev; + + xe_dev =find_in_cache (fd); +igt_assert (xe_dev); + +for (int i =0 ; i < xe_dev->gt_list->num_gt; i++) +if (xe_dev->gt_list->gt_list[i].type ==DRM_XE_QUERY_GT_TYPE_MEDIA ) +return true; + +return false; +} + igt_constructor {xe_device_cache_init ();
lib/xe/xe_query.h +1 -0
@@ -99,6 +99,7 @@ uint16_t xe_dev_id(int fd);bool xe_supports_faults (int fd);const char *xe_engine_class_string (uint32_t engine_class);bool xe_has_engine_class (int fd,uint16_t engine_class); +bool xe_has_media_gt (int fd);struct xe_device *xe_device_get (int fd);void xe_device_put (int fd);
Signature · 1 line
2.40.0
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for lib/xe/xe_query: add media GT presence checker
In reply to Lukasz Laguna== Series Details ==
== Series Details ==
Series: lib/xe/xe_query: add media GT presence checker
URL : https://patchwork.freedesktop.org/series/126810/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_13914 -> IGTPW_10252
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_10252 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_10252, please notify your bug team ([email protected]) 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_10252/index.html
Participating hosts (36 -> 37)
------------------------------
Additional (4): bat-kbl-2 bat-dg2-9 bat-mtlp-8 fi-pnv-d510
Missing (3): bat-jsl-1 fi-snb-2520m fi-bsw-n3050
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_10252:
### IGT changes ###
#### Possible regressions ####
* igt@i915_suspend@basic-s2idle-without-i915:
- bat-atsm-1: [PASS][1] -> [WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13914/bat-atsm-1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-atsm-1/igt@[email protected]
* igt@kms_force_connector_basic@force-connector-state:
- bat-dg1-7: [PASS][3] -> [ABORT][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13914/bat-dg1-7/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg1-7/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_10252 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@debugfs_test@basic-hwmon:
- bat-mtlp-8: NOTRUN -> [SKIP][5] ([i915#9318])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
* igt@fbdev@info:
- bat-kbl-2: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#1849])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-kbl-2/igt@[email protected]
* igt@gem_exec_parallel@engines@fds:
- fi-pnv-d510: NOTRUN -> [SKIP][7] ([fdo#109271]) +25 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/fi-pnv-d510/igt@gem_exec_parallel@[email protected]
* igt@gem_exec_suspend@basic-s0@lmem0:
- bat-dg2-9: NOTRUN -> [INCOMPLETE][8] ([i915#9275])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@gem_exec_suspend@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- bat-kbl-2: NOTRUN -> [SKIP][9] ([fdo#109271]) +20 other tests skip
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-kbl-2/igt@[email protected]
- bat-mtlp-8: NOTRUN -> [SKIP][10] ([i915#4613]) +3 other tests skip
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
* igt@gem_mmap@basic:
- bat-mtlp-8: NOTRUN -> [SKIP][11] ([i915#4083])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
- bat-dg2-9: NOTRUN -> [SKIP][12] ([i915#4083])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
* igt@gem_mmap_gtt@basic:
- bat-dg2-9: NOTRUN -> [SKIP][13] ([i915#4077]) +2 other tests skip
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
* igt@gem_render_tiled_blits@basic:
- bat-mtlp-8: NOTRUN -> [SKIP][14] ([i915#4079]) +1 other test skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
* igt@gem_tiled_fence_blits@basic:
- bat-mtlp-8: NOTRUN -> [SKIP][15] ([i915#4077]) +2 other tests skip
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
* igt@gem_tiled_pread_basic:
- bat-dg2-9: NOTRUN -> [SKIP][16] ([i915#4079]) +1 other test skip
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@gem_tiled_pread_basic.html
* igt@i915_pm_rps@basic-api:
- bat-mtlp-8: NOTRUN -> [SKIP][17] ([i915#6621])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
- bat-dg2-9: NOTRUN -> [SKIP][18] ([i915#6621])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
* igt@i915_suspend@basic-s3-without-i915:
- bat-mtlp-8: NOTRUN -> [SKIP][19] ([i915#6645])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- bat-dg2-9: NOTRUN -> [SKIP][20] ([i915#5190])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
- bat-mtlp-8: NOTRUN -> [SKIP][21] ([i915#5190])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
* igt@kms_addfb_basic@basic-y-tiled-legacy:
- bat-mtlp-8: NOTRUN -> [SKIP][22] ([i915#4212]) +8 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
- bat-dg2-9: NOTRUN -> [SKIP][23] ([i915#4215] / [i915#5190])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
* igt@kms_addfb_basic@framebuffer-vs-set-tiling:
- bat-dg2-9: NOTRUN -> [SKIP][24] ([i915#4212]) +6 other tests skip
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
* igt@kms_addfb_basic@tile-pitch-mismatch:
- bat-dg2-9: NOTRUN -> [SKIP][25] ([i915#4212] / [i915#5608])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-mtlp-8: NOTRUN -> [SKIP][26] ([i915#4213]) +1 other test skip
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
- bat-dg2-9: NOTRUN -> [SKIP][27] ([i915#4103] / [i915#4213] / [i915#5608]) +1 other test skip
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
* igt@kms_dsc@dsc-basic:
- bat-mtlp-8: NOTRUN -> [SKIP][28] ([i915#3555] / [i915#3840] / [i915#4098] / [i915#9159])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- bat-mtlp-8: NOTRUN -> [SKIP][29] ([fdo#109285])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
- bat-dg2-9: NOTRUN -> [SKIP][30] ([fdo#109285])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
* igt@kms_force_connector_basic@prune-stale-modes:
- bat-dg2-9: NOTRUN -> [SKIP][31] ([i915#5274])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
- bat-mtlp-8: NOTRUN -> [SKIP][32] ([i915#5274])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
* igt@kms_hdmi_inject@inject-audio:
- fi-kbl-guc: [PASS][33] -> [FAIL][34] ([IGT#3])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13914/fi-kbl-guc/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/fi-kbl-guc/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-frame-sequence:
- bat-kbl-2: NOTRUN -> [SKIP][35] ([fdo#109271] / [i915#1845]) +14 other tests skip
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-kbl-2/igt@[email protected]
- bat-dg2-11: NOTRUN -> [SKIP][36] ([i915#1845] / [i915#9197])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-11/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1:
- bat-rplp-1: [PASS][37] -> [ABORT][38] ([i915#8668])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13914/bat-rplp-1/igt@kms_pipe_crc_basic@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-rplp-1/igt@kms_pipe_crc_basic@[email protected]
* igt@kms_setmode@basic-clone-single-crtc:
- bat-dg2-9: NOTRUN -> [SKIP][39] ([i915#3555] / [i915#4098])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
- bat-mtlp-8: NOTRUN -> [SKIP][40] ([i915#3555] / [i915#8809])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
* igt@prime_vgem@basic-fence-flip:
- bat-dg2-9: NOTRUN -> [SKIP][41] ([i915#3708])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
* igt@prime_vgem@basic-fence-mmap:
- bat-dg2-9: NOTRUN -> [SKIP][42] ([i915#3708] / [i915#4077]) +1 other test skip
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
* igt@prime_vgem@basic-fence-read:
- bat-mtlp-8: NOTRUN -> [SKIP][43] ([i915#3708]) +2 other tests skip
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
* igt@prime_vgem@basic-gtt:
- bat-mtlp-8: NOTRUN -> [SKIP][44] ([i915#3708] / [i915#4077]) +1 other test skip
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-mtlp-8/igt@[email protected]
* igt@prime_vgem@basic-write:
- bat-dg2-9: NOTRUN -> [SKIP][45] ([i915#3291] / [i915#3708]) +2 other tests skip
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-9/igt@[email protected]
#### Possible fixes ####
* igt@debugfs_test@read_all_entries:
- bat-adlp-11: [DMESG-WARN][46] ([i915#6868]) -> [PASS][47]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13914/bat-adlp-11/igt@debugfs_test@read_all_entries.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-adlp-11/igt@debugfs_test@read_all_entries.html
* igt@i915_selftest@live@workarounds:
- bat-dg2-11: [DMESG-FAIL][48] -> [PASS][49]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13914/bat-dg2-11/igt@i915_selftest@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/bat-dg2-11/igt@i915_selftest@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#3]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/3
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#5608]: https://gitlab.freedesktop.org/drm/intel/issues/5608
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
[i915#6868]: https://gitlab.freedesktop.org/drm/intel/issues/6868
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
[i915#8809]: https://gitlab.freedesktop.org/drm/intel/issues/8809
[i915#9159]: https://gitlab.freedesktop.org/drm/intel/issues/9159
[i915#9197]: https://gitlab.freedesktop.org/drm/intel/issues/9197
[i915#9275]: https://gitlab.freedesktop.org/drm/intel/issues/9275
[i915#9318]: https://gitlab.freedesktop.org/drm/intel/issues/9318
[i915#9673]: https://gitlab.freedesktop.org/drm/intel/issues/9673
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7597 -> IGTPW_10252
CI-20190529: 20190529
CI_DRM_13914: 0b1d4056dbe497edc6d866ca5b3f54c5927bd7c0 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_10252: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/index.html
IGT_7597: 380983dbd9bb2f7eea5e917e8fed0569bfe8cf9c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/index.html
Patchwork
CI[igt-dev] ✓ CI.xeBAT: success for lib/xe/xe_query: add media GT presence checker
In reply to Lukasz Laguna== Series Details ==
== Series Details ==
Series: lib/xe/xe_query: add media GT presence checker
URL : https://patchwork.freedesktop.org/series/126810/
State : success
== Summary ==
CI Bug Log - changes from XEIGT_7597_BAT -> XEIGTPW_10252_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (4 -> 4)
------------------------------
No changes in participating hosts
Known issues
------------
Here are the changes found in XEIGTPW_10252_BAT that come from known issues:
### IGT changes ###
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[Intel XE#524]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/524
Build changes
-------------
* IGT: IGT_7597 -> IGTPW_10252
IGTPW_10252: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10252/index.html
IGT_7597: 380983dbd9bb2f7eea5e917e8fed0569bfe8cf9c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-516-59f2e73469cace9c78aab7506284ae446d57b8bc: 59f2e73469cace9c78aab7506284ae446d57b8bc
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10252/index.html