[PATCH i-g-t] tests/intel/i915_hangman: Fix spin engine hang
Mikolaj Wasiak
mikolaj.wasiak at intel.com
Fri Nov 22 10:53:20 UTC 2024
Apply workaround when running background spins in hangman test.
Disable bcs0 background engine when testing ccs0 and vice-versa.
Signed-off-by: Mikolaj Wasiak <mikolaj.wasiak at intel.com>
---
tests/intel/i915_hangman.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tests/intel/i915_hangman.c b/tests/intel/i915_hangman.c
index a556eec53..e6b99c588 100644
--- a/tests/intel/i915_hangman.c
+++ b/tests/intel/i915_hangman.c
@@ -365,6 +365,12 @@ static void chk_err(int *dst, int err, int expected)
#define ERR_FENCE_END 3
#define ERR_FENCE_STAT 4
+static bool
+is_bcs_ccs(const struct intel_execution_engine2 *e) {
+ return I915_ENGINE_CLASS_COMPUTE == e->class ||
+ I915_ENGINE_CLASS_COPY == e->class;
+}
+
static void
test_engine_hang(const intel_ctx_t *ctx,
const struct intel_execution_engine2 *e, unsigned int flags)
@@ -388,6 +394,12 @@ test_engine_hang(const intel_ctx_t *ctx,
*/
num_ctx = 0;
for_each_ctx_engine(device, ctx, other) {
+ /* Wa_14014494547:DG2 */
+ if (IS_DG2(intel_get_drm_devid(device)) &&
+ is_bcs_ccs(e) &&
+ is_bcs_ccs(other))
+ continue;
+
local_ctx[num_ctx] = intel_ctx_create(device, &ctx->cfg);
context_unban(device, local_ctx[num_ctx]->id);
ahndN = get_reloc_ahnd(device, local_ctx[num_ctx]->id);
--
2.47.0
---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.
Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.
More information about the igt-dev
mailing list