Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 161996a8 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915/selftests: Fix MI_STORE_DWORD_IMM alignment



MI_STORE_DWORD_IMM wants to write into a dword-aligned (4B) address, we
mistakenly cleared bit2 and not bits 0 and 1.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190306082447.21563-1-chris@chris-wilson.co.uk
parent b146e5ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1433,7 +1433,7 @@ static int igt_vm_isolation(void *arg)


			div64_u64_rem(i915_prandom_u64_state(&prng),
			div64_u64_rem(i915_prandom_u64_state(&prng),
				      vm_total, &offset);
				      vm_total, &offset);
			offset &= ~sizeof(u32);
			offset &= -sizeof(u32);
			offset += I915_GTT_PAGE_SIZE;
			offset += I915_GTT_PAGE_SIZE;


			err = write_to_scratch(ctx_a, engine,
			err = write_to_scratch(ctx_a, engine,