Skip to contentSkip to conversation

tests/xe_exec_threads: Skip Compute engine for legacy mode

PATCH In review Tejas Upadhyay 3 participants 7 messages Apr 1, 2024 – Apr 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/xe_exec_threads: Skip Compute engine for legacy mode

RCS/CCS are dependent engines as they are sharing reset domain. Whenever there is reset from CCS, all the exec queues running on RCS are victimised.

Lets skip parallel execution on CCS with RCS.

Fixes VLK-55941, VLK-52341
---
 tests/intel/xe_exec_threads.c | 8 ++++++++
 1 file changed, 8 insertions(+)
tests/intel/xe_exec_threads.c +8 -0
index e9588f9b9..b1c65e1c5 100644
@@ -996,6 +996,14 @@ static void threads(int fd, int flags)
 	}
 
 	xe_for_each_engine(fd, hwe) {
+		/* RCS/CCS sharing reset domain hence dependent engines.
+		 * When CCS is doing reset, all the contexts of RCS are
+		 * victimised, so skip the compute engine avoiding
+		 * parallel execution with RCS
+		 */
+		if (hwe->engine_class == DRM_XE_ENGINE_CLASS_COMPUTE)
+			continue;
+
 		threads_data[i].mutex = &mutex;
 		threads_data[i].cond = &cond;
 #define ADDRESS_SHIFT	39
Signature · 1 line
2.25.1
#1 lore raw

✗ CI.Patch_applied: failure for tests/xe_exec_threads: Skip Compute engine for legacy mode

== Series Details ==

== Series Details ==

Series: tests/xe_exec_threads: Skip Compute engine for legacy mode
URL : https://patchwork.freedesktop.org/series/131891/
State : failure

== Summary ==

=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: a585b1993215 drm-tip: 2024y-04m-01d-05h-29m-14s UTC integration manifest === git am output follows ===
error: tests/intel/xe_exec_threads.c: does not exist in index
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Applying: tests/xe_exec_threads: Skip Compute engine for legacy mode Patch failed at 0001 tests/xe_exec_threads: Skip Compute engine for legacy mode When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

#2 lore raw

✓ CI.xeBAT: success for tests/xe_exec_threads: Skip Compute engine for legacy mode

In reply to Tejas Upadhyay
== Series Details ==

== Series Details ==

Series: tests/xe_exec_threads: Skip Compute engine for legacy mode
URL : https://patchwork.freedesktop.org/series/131892/
State : success

== Summary ==

CI Bug Log - changes from XEIGT_7793_BAT -> XEIGTPW_10958_BAT
====================================================

Summary
-------

**SUCCESS**

No regressions found.

Participating hosts (5 -> 5)
------------------------------

No changes in participating hosts

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

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

### IGT changes ###

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@xe_exec_compute_mode@twice-bindexecqueue-rebind:
- {bat-lnl-1}: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7793/bat-lnl-1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10958/bat-lnl-1/igt@[email protected]

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

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

### IGT changes ###

#### Possible fixes ####

* igt@kms_frontbuffer_tracking@basic:
- bat-adlp-7: [FAIL][3] ([Intel XE#616]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7793/bat-adlp-7/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10958/bat-adlp-7/igt@[email protected]

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

[Intel XE#616]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/616

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

* IGT: IGT_7793 -> IGTPW_10958

IGTPW_10958: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10958/index.html
IGT_7793: d6485199d0e6400dc357e3c1da9df45e8188713c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-1021-a585b19932157f2c96293bf00288968ada86d435: a585b19932157f2c96293bf00288968ada86d435

== Logs ==

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

#3 lore raw

✗ Fi.CI.BAT: failure for tests/xe_exec_threads: Skip Compute engine for legacy mode

In reply to Tejas Upadhyay
== Series Details ==

== Series Details ==

Series: tests/xe_exec_threads: Skip Compute engine for legacy mode
URL : https://patchwork.freedesktop.org/series/131892/
State : failure

== Summary ==

CI Bug Log - changes from IGT_7793 -> IGTPW_10958
====================================================

Summary
-------

**FAILURE**

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

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

Participating hosts (31 -> 29)
------------------------------

Missing (2): bat-arls-1 fi-snb-2520m

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@active:
- bat-adls-6: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7793/bat-adls-6/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10958/bat-adls-6/igt@i915_selftest@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@i915_selftest@live@coherency:
- bat-dg2-9: [PASS][3] -> [ABORT][4] ([i915#10366])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7793/bat-dg2-9/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10958/bat-dg2-9/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@hangcheck:
- bat-adls-6: [PASS][5] -> [DMESG-WARN][6] ([i915#5591])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7793/bat-adls-6/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10958/bat-adls-6/igt@i915_selftest@[email protected]

#### Possible fixes ####

* igt@i915_pm_rpm@module-reload:
- {bat-mtlp-9}: [WARN][7] ([i915#10436]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7793/bat-mtlp-9/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10958/bat-mtlp-9/igt@[email protected]

* igt@i915_selftest@live@hangcheck:
- {bat-mtlp-9}: [DMESG-WARN][9] ([i915#9522]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7793/bat-mtlp-9/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10958/bat-mtlp-9/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).

[i915#10366]: https://gitlab.freedesktop.org/drm/intel/issues/10366
[i915#10436]: https://gitlab.freedesktop.org/drm/intel/issues/10436
[i915#5591]: https://gitlab.freedesktop.org/drm/intel/issues/5591
[i915#9522]: https://gitlab.freedesktop.org/drm/intel/issues/9522

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

* CI: CI-20190529 -> None
* IGT: IGT_7793 -> IGTPW_10958

CI-20190529: 20190529
CI_DRM_14511: a585b19932157f2c96293bf00288968ada86d435 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_10958: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10958/index.html
IGT_7793: d6485199d0e6400dc357e3c1da9df45e8188713c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

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

#4 lore raw
In reply to Tejas Upadhyay
Quoted 7 lines · Tejas Upadhyay

RCS/CCS are dependent engines as they are sharing reset domain. Whenever there is reset from CCS, all the exec queues running on RCS are victimised.

Lets skip parallel execution on CCS with RCS.

Fixes VLK-55941, VLK-52341

these shouldn't be here.

Also in the title of this commit, what do you mean by "legacy mode"? It seems you are just blocking CCS regardless of any flags.

Lucas De Marchi

Quoted 27 lines

---
tests/intel/xe_exec_threads.c | 8 ++++++++

1 file changed, 8 insertions(+)
tests/intel/xe_exec_threads.c +8 -0
index e9588f9b9..b1c65e1c5 100644
@@ -996,6 +996,14 @@ static void threads(int fd, int flags)
 	}
 
 	xe_for_each_engine(fd, hwe) {
+		/* RCS/CCS sharing reset domain hence dependent engines.
+		 * When CCS is doing reset, all the contexts of RCS are
+		 * victimised, so skip the compute engine avoiding
+		 * parallel execution with RCS
+		 */
+		if (hwe->engine_class == DRM_XE_ENGINE_CLASS_COMPUTE)
+			continue;
+
 		threads_data[i].mutex = &mutex;
 		threads_data[i].cond = &cond;
 #define ADDRESS_SHIFT	39
Signature · 1 line
2.25.1
#5 lore raw
Quoted 16 lines

-----Original Message-----
From: De Marchi, Lucas <[email protected]>
Sent: Monday, April 1, 2024 9:31 PM
To: Upadhyay, Tejas <[email protected]>
Cc: [email protected]; [email protected]; Brost, Matthew <[email protected]>
Subject: Re: [PATCH i-g-t] tests/xe_exec_threads: Skip Compute engine for legacy mode

Quoted 4 lines · Tejas Upadhyay

RCS/CCS are dependent engines as they are sharing reset domain. Whenever there is reset from CCS, all the exec queues running on RCS are victimised.

Quoted 8 lines
Quoted 3 lines

Lets skip parallel execution on CCS with RCS.

Fixes VLK-55941, VLK-52341

these shouldn't be here.

Also in the title of this commit, what do you mean by "legacy mode"? It seems you are just blocking CCS regardless of any flags.

Legacy meaning non-compute mode, skipping for compute indirectly meaning going in legacy mode and not compute mode.

Thanks,
Tejas

Quoted 31 lines

Lucas De Marchi

Quoted 10 lines

---
tests/intel/xe_exec_threads.c | 8 ++++++++

1 file changed, 8 insertions(+)
(quoted diff) +0 -0

b/tests/intel/xe_exec_threads.c index e9588f9b9..b1c65e1c5 100644

tests/intel/xe_exec_threads.c static void threads(int fd, int flags) · line 1004

Quoted 9 lines
tests/intel/xe_exec_threads.c +6 -0
@@ -996,6 +996,14 @@ static void threads(int fd, int flags)
 	}
 
 	xe_for_each_engine(fd, hwe) {
+		/* RCS/CCS sharing reset domain hence dependent engines.
+		 * When CCS is doing reset, all the contexts of RCS are
+		 * victimised, so skip the compute engine avoiding
+		 * parallel execution with RCS
+		 */
+		if (hwe->engine_class ==

DRM_XE_ENGINE_CLASS_COMPUTE)

Quoted 8 lines
tests/intel/xe_exec_threads.c +2 -1
+			continue;
+
 		threads_data[i].mutex = &mutex;
 		threads_data[i].cond = &cond;
 #define ADDRESS_SHIFT	39
--

2.25.1

#6 lore raw
In reply to Lucas De Marchi
Quoted 16 lines

-----Original Message-----
From: De Marchi, Lucas <[email protected]>
Sent: Monday, April 1, 2024 9:31 PM
To: Upadhyay, Tejas <[email protected]>
Cc: [email protected]; [email protected]; Brost, Matthew <[email protected]>
Subject: Re: [PATCH i-g-t] tests/xe_exec_threads: Skip Compute engine for legacy mode

Quoted 4 lines · Tejas Upadhyay

RCS/CCS are dependent engines as they are sharing reset domain. Whenever there is reset from CCS, all the exec queues running on RCS are victimised.

Quoted 8 lines
Quoted 3 lines

Lets skip parallel execution on CCS with RCS.

Fixes VLK-55941, VLK-52341

these shouldn't be here.

Also in the title of this commit, what do you mean by "legacy mode"? It seems you are just blocking CCS regardless of any flags.

Yeah, I missed few other things also like platform and checking availability of engines. I will float second version with handling all of that.

Thanks,
Tejas

Quoted 31 lines

Lucas De Marchi

Quoted 10 lines

---
tests/intel/xe_exec_threads.c | 8 ++++++++

1 file changed, 8 insertions(+)
(quoted diff) +0 -0

b/tests/intel/xe_exec_threads.c index e9588f9b9..b1c65e1c5 100644

tests/intel/xe_exec_threads.c static void threads(int fd, int flags) · line 1004

Quoted 9 lines
tests/intel/xe_exec_threads.c +6 -0
@@ -996,6 +996,14 @@ static void threads(int fd, int flags)
 	}
 
 	xe_for_each_engine(fd, hwe) {
+		/* RCS/CCS sharing reset domain hence dependent engines.
+		 * When CCS is doing reset, all the contexts of RCS are
+		 * victimised, so skip the compute engine avoiding
+		 * parallel execution with RCS
+		 */
+		if (hwe->engine_class ==

DRM_XE_ENGINE_CLASS_COMPUTE)

Quoted 8 lines
tests/intel/xe_exec_threads.c +2 -1
+			continue;
+
 		threads_data[i].mutex = &mutex;
 		threads_data[i].cond = &cond;
 #define ADDRESS_SHIFT	39
--

2.25.1