Skip to contentSkip to conversation

xe/xe_query: add media GT presence checker

PATCH In review Lukasz Laguna 3 participants 5 messages Nov 22, 2023

lore
Share & tools
lore
#0 lore raw

cover xe/xe_query: add media GT presence checker

Lukasz Laguna (1):
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
#1 lore raw

PATCH 1/1 xe/xe_query: add media GT presence checker

Add helper checking if platform is equipped with media GT.

---
 lib/xe/xe_query.c | 20 ++++++++++++++++++++
 lib/xe/xe_query.h |  1 +
 2 files changed, 21 insertions(+)
lib/xe/xe_query.c +20 -0
index afd443be3..1759d1e93 100644
@@ -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
index 38e9aa440..66a62eeb8 100644
@@ -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
#2 lore raw

Hi Lukasz,
On 2023-11-22 at 14:00:21 +0100, Lukasz Laguna wrote:

please add "lib/" to subject,

[PATCH i-g-t 1/1] xe/xe_query: add media GT presence checker ----------------- ^

This should be:

[PATCH i-g-t 1/1] lib/xe/xe_query: add media GT presence checker

Regards,
Kamil

Quoted 54 lines

Add helper checking if platform is equipped with media GT.

---
 lib/xe/xe_query.c | 20 ++++++++++++++++++++
 lib/xe/xe_query.h |  1 +
 2 files changed, 21 insertions(+)
lib/xe/xe_query.c +20 -0
index afd443be3..1759d1e93 100644
@@ -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
index 38e9aa440..66a62eeb8 100644
@@ -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
#3 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for xe/xe_query: add media GT presence checker

In reply to Lukasz Laguna
== Series Details ==

== Series Details ==

Series: xe/xe_query: add media GT presence checker
URL : https://patchwork.freedesktop.org/series/126762/
State : failure

== Summary ==

CI Bug Log - changes from IGT_7596 -> IGTPW_10243
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_10243 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in IGTPW_10243, 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_10243/index.html

Participating hosts (37 -> 38)
------------------------------

Additional (2): bat-rpls-1 bat-kbl-2
Missing (1): fi-snb-2520m

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@workarounds:
- bat-dg2-9: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7596/bat-dg2-9/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-dg2-9/igt@i915_selftest@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@debugfs_test@basic-hwmon:
- bat-jsl-1: NOTRUN -> [SKIP][3] ([i915#9318])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-jsl-1/igt@[email protected]
- bat-rpls-1: NOTRUN -> [SKIP][4] ([i915#9318])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@[email protected]

* igt@fbdev@info:
- bat-rpls-1: NOTRUN -> [SKIP][5] ([i915#1849] / [i915#2582])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@[email protected]
- bat-kbl-2: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#1849])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-kbl-2/igt@[email protected]

* igt@fbdev@write:
- bat-rpls-1: NOTRUN -> [SKIP][7] ([i915#2582]) +3 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- bat-jsl-1: NOTRUN -> [SKIP][8] ([i915#2190])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-jsl-1/igt@[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_10243/bat-kbl-2/igt@[email protected]

* igt@gem_lmem_swapping@random-engines:
- bat-rpls-1: NOTRUN -> [SKIP][10] ([i915#4613]) +3 other tests skip
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@[email protected]

* igt@gem_lmem_swapping@verify-random:
- bat-jsl-1: NOTRUN -> [SKIP][11] ([i915#4613]) +3 other tests skip
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-jsl-1/igt@[email protected]

* igt@gem_tiled_pread_basic:
- bat-rpls-1: NOTRUN -> [SKIP][12] ([i915#3282])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@gem_tiled_pread_basic.html

* igt@i915_pm_rps@basic-api:
- bat-rpls-1: NOTRUN -> [SKIP][13] ([i915#6621])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@[email protected]

* igt@i915_selftest@live@gt_lrc:
- bat-rpls-1: NOTRUN -> [INCOMPLETE][14] ([i915#9667])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@i915_selftest@live@gt_lrc.html

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-jsl-1: NOTRUN -> [SKIP][15] ([i915#4103]) +1 other test skip
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-jsl-1/igt@[email protected]

* igt@kms_cursor_legacy@basic-flip-after-cursor-legacy:
- bat-rpls-1: NOTRUN -> [SKIP][16] ([i915#1845]) +16 other tests skip
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@[email protected]

* igt@kms_dsc@dsc-basic:
- bat-jsl-1: NOTRUN -> [SKIP][17] ([i915#3555]) +1 other test skip
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-jsl-1/igt@[email protected]

* igt@kms_flip@basic-flip-vs-modeset:
- bat-rpls-1: NOTRUN -> [SKIP][18] ([i915#3637]) +3 other tests skip
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- bat-jsl-1: NOTRUN -> [SKIP][19] ([fdo#109285])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-jsl-1/igt@[email protected]
- bat-rpls-1: NOTRUN -> [SKIP][20] ([fdo#109285])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- bat-rpls-1: NOTRUN -> [SKIP][21] ([i915#1849] / [i915#5354])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@[email protected]

* igt@kms_pipe_crc_basic@read-crc-frame-sequence:
- bat-kbl-2: NOTRUN -> [SKIP][22] ([fdo#109271] / [i915#1845]) +14 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-kbl-2/igt@[email protected]

* igt@kms_setmode@basic-clone-single-crtc:
- bat-rpls-1: NOTRUN -> [SKIP][23] ([i915#3555])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@[email protected]

* igt@prime_vgem@basic-fence-flip:
- bat-rpls-1: NOTRUN -> [SKIP][24] ([fdo#109295] / [i915#1845] / [i915#3708])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@[email protected]

* igt@prime_vgem@basic-write:
- bat-rpls-1: NOTRUN -> [SKIP][25] ([fdo#109295] / [i915#3708]) +2 other tests skip
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-rpls-1/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@gem_contexts:
- bat-mtlp-8: [DMESG-FAIL][26] ([i915#9579]) -> [PASS][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7596/bat-mtlp-8/igt@i915_selftest@live@gem_contexts.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/bat-mtlp-8/igt@i915_selftest@live@gem_contexts.html

* igt@i915_selftest@live@gt_heartbeat:
- fi-apl-guc: [DMESG-FAIL][28] ([i915#5334]) -> [PASS][29]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7596/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html

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

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[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#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#9318]: https://gitlab.freedesktop.org/drm/intel/issues/9318
[i915#9579]: https://gitlab.freedesktop.org/drm/intel/issues/9579
[i915#9667]: https://gitlab.freedesktop.org/drm/intel/issues/9667
[i915#9673]: https://gitlab.freedesktop.org/drm/intel/issues/9673

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

* CI: CI-20190529 -> None
* IGT: IGT_7596 -> IGTPW_10243

CI-20190529: 20190529
CI_DRM_13910: a6fa1fefc44d92897a3be86430dde647f665f3a3 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_10243: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/index.html
IGT_7596: 9179b4310586865a1308634c22f19f7ebca98f61 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

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

#4 lore raw

[igt-dev] ✓ CI.xeBAT: success for xe/xe_query: add media GT presence checker

In reply to Lukasz Laguna
== Series Details ==

== Series Details ==

Series: xe/xe_query: add media GT presence checker
URL : https://patchwork.freedesktop.org/series/126762/
State : success

== Summary ==

CI Bug Log - changes from XEIGT_7596_BAT -> XEIGTPW_10243_BAT
====================================================

Summary
-------

**SUCCESS**

No regressions found.

Participating hosts (4 -> 4)
------------------------------

No changes in participating hosts

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

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

### IGT changes ###

#### Issues hit ####

* igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1:
- bat-adlp-7: [PASS][1] -> [FAIL][2] ([Intel XE#480]) +1 other test fail
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7596/bat-adlp-7/igt@kms_flip@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10243/bat-adlp-7/igt@kms_flip@[email protected]

* igt@kms_flip@basic-flip-vs-wf_vblank@d-dp3:
- bat-dg2-oem2: [PASS][3] -> [FAIL][4] ([Intel XE#480]) +1 other test fail
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7596/bat-dg2-oem2/igt@kms_flip@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10243/bat-dg2-oem2/igt@kms_flip@[email protected]

#### Possible fixes ####

* igt@core_hotunplug@unbind-rebind:
- bat-adlp-7: [DMESG-WARN][5] ([Intel XE#939]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7596/bat-adlp-7/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10243/bat-adlp-7/igt@[email protected]
- bat-dg2-oem2: [DMESG-WARN][7] ([Intel XE#939]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7596/bat-dg2-oem2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10243/bat-dg2-oem2/igt@[email protected]

* igt@xe_guc_pc@freq_basic_api:
- bat-adlp-7: [FAIL][9] ([Intel XE#935]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7596/bat-adlp-7/igt@xe_guc_pc@freq_basic_api.html
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10243/bat-adlp-7/igt@xe_guc_pc@freq_basic_api.html
- bat-pvc-2: [FAIL][11] ([Intel XE#935]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7596/bat-pvc-2/igt@xe_guc_pc@freq_basic_api.html
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10243/bat-pvc-2/igt@xe_guc_pc@freq_basic_api.html
- bat-dg2-oem2: [FAIL][13] ([Intel XE#935]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7596/bat-dg2-oem2/igt@xe_guc_pc@freq_basic_api.html
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10243/bat-dg2-oem2/igt@xe_guc_pc@freq_basic_api.html
- bat-atsm-2: [FAIL][15] ([Intel XE#935]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7596/bat-atsm-2/igt@xe_guc_pc@freq_basic_api.html
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10243/bat-atsm-2/igt@xe_guc_pc@freq_basic_api.html

* igt@xe_guc_pc@freq_fixed_idle:
- bat-atsm-2: [FAIL][17] ([Intel XE#940]) -> [PASS][18] +1 other test pass
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7596/bat-atsm-2/igt@xe_guc_pc@freq_fixed_idle.html
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10243/bat-atsm-2/igt@xe_guc_pc@freq_fixed_idle.html
- bat-dg2-oem2: [FAIL][19] ([Intel XE#940]) -> [PASS][20] +1 other test pass
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7596/bat-dg2-oem2/igt@xe_guc_pc@freq_fixed_idle.html
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10243/bat-dg2-oem2/igt@xe_guc_pc@freq_fixed_idle.html

* igt@xe_guc_pc@freq_range_idle:
- bat-adlp-7: [FAIL][21] ([Intel XE#940]) -> [PASS][22] +1 other test pass
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7596/bat-adlp-7/igt@xe_guc_pc@freq_range_idle.html
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10243/bat-adlp-7/igt@xe_guc_pc@freq_range_idle.html

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

[Intel XE#480]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/480
[Intel XE#524]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/524
[Intel XE#935]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/935
[Intel XE#939]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/939
[Intel XE#940]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/940

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

* IGT: IGT_7596 -> IGTPW_10243
* Linux: xe-515-a9ee4928479a5449991149cc38747e8e20376db9 -> xe-516-59f2e73469cace9c78aab7506284ae446d57b8bc

IGTPW_10243: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10243/index.html
IGT_7596: 9179b4310586865a1308634c22f19f7ebca98f61 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-515-a9ee4928479a5449991149cc38747e8e20376db9: a9ee4928479a5449991149cc38747e8e20376db9 xe-516-59f2e73469cace9c78aab7506284ae446d57b8bc: 59f2e73469cace9c78aab7506284ae446d57b8bc

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10243/index.html