Skip to content

Commit 161996a

Browse files
committed
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: Chris Wilson <chris@chris-wilson.co.uk> Cc: Matthew Auld <matthew.auld@intel.com> Cc: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190306082447.21563-1-chris@chris-wilson.co.uk
1 parent b146e5e commit 161996a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/selftests/i915_gem_context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ static int igt_vm_isolation(void *arg)
14331433

14341434
div64_u64_rem(i915_prandom_u64_state(&prng),
14351435
vm_total, &offset);
1436-
offset &= ~sizeof(u32);
1436+
offset &= -sizeof(u32);
14371437
offset += I915_GTT_PAGE_SIZE;
14381438

14391439
err = write_to_scratch(ctx_a, engine,

0 commit comments

Comments
 (0)