Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arjun Melkaveri <arjun.melkaveri@intel.com>
To: arjun.melkaveri@intel.com, ramalingam.c@intel.com,
	ashutosh.dixit@intel.com, igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom
Date: Fri,  1 Apr 2022 12:55:04 +0530	[thread overview]
Message-ID: <20220401072504.6375-1-arjun.melkaveri@intel.com> (raw)

ctx was not initialized with all physical engines,
after device reopening.
This change would resolve assert issue seen in __do_evict.

Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Arjun Melkaveri <arjun.melkaveri@intel.com>
---
 tests/i915/gem_lmem_swapping.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/i915/gem_lmem_swapping.c b/tests/i915/gem_lmem_swapping.c
index 43f0688f..fb260bcb 100644
--- a/tests/i915/gem_lmem_swapping.c
+++ b/tests/i915/gem_lmem_swapping.c
@@ -428,6 +428,9 @@ static void test_smem_oom(int i915,
 
 		fill_params(i915, &params, region, 0, 1, true);
 
+		ctx = intel_ctx_create_all_physical(fd);
+		__gem_context_set_persistence(fd, ctx->id, false);
+
 		igt_install_exit_handler(smem_oom_exit_handler);
 		__do_evict(fd, ctx, &region->region, &params,
 			   params.seed + child + 1);
-- 
2.25.1

             reply	other threads:[~2022-04-01  7:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-01  7:25 Arjun Melkaveri [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-04-01  7:28 [igt-dev] [PATCH i-g-t] tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom Arjun Melkaveri
2022-04-01  8:29 ` Ramalingam C
2022-04-01  8:55   ` Melkaveri, Arjun
2022-04-01  9:09     ` Ramalingam C
2022-04-01  9:10 ` Matthew Auld
2022-04-01 17:52   ` Dixit, Ashutosh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220401072504.6375-1-arjun.melkaveri@intel.com \
    --to=arjun.melkaveri@intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=ramalingam.c@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox