Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id BD4D36E042 for ; Tue, 10 Aug 2021 10:54:06 +0000 (UTC) From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= Date: Tue, 10 Aug 2021 12:52:59 +0200 Message-Id: <20210810105323.31375-31-zbigniew.kempczynski@intel.com> In-Reply-To: <20210810105323.31375-1-zbigniew.kempczynski@intel.com> References: <20210810105323.31375-1-zbigniew.kempczynski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v7 30/54] tests/gem_mmap_wc: Adopt to use allocator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org List-ID: For newer gens we're not able to rely on relocations. Adopt to use offsets acquired from the allocator. Signed-off-by: Zbigniew KempczyƄski Cc: Petri Latvala Cc: Ashutosh Dixit Reviewed-by: Ashutosh Dixit --- tests/i915/gem_mmap_wc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/i915/gem_mmap_wc.c b/tests/i915/gem_mmap_wc.c index abb89b8eb..6dc7bae49 100644 --- a/tests/i915/gem_mmap_wc.c +++ b/tests/i915/gem_mmap_wc.c @@ -459,8 +459,9 @@ test_pf_nonblock(int i915) { igt_spin_t *spin; uint32_t *ptr; + uint64_t ahnd = get_reloc_ahnd(i915, 0); - spin = igt_spin_new(i915); + spin = igt_spin_new(i915, .ahnd = ahnd); igt_set_timeout(1, "initial pagefaulting did not complete within 1s"); @@ -471,6 +472,7 @@ test_pf_nonblock(int i915) igt_reset_timeout(); igt_spin_free(i915, spin); + put_ahnd(ahnd); } static int mmap_ioctl(int i915, struct drm_i915_gem_mmap *arg) -- 2.26.0