drm/i915/selftests: Ensure we don't clamp a random offset to 32b
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 10 Jul 2019 16:14:13 +0000 (17:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 11 Jul 2019 09:06:37 +0000 (10:06 +0100)
commitbf1315b830a4ea2e3842400982cf66f15b40b7ec
treef25d39b1e4d4bff75e40e31a0abec4f84033a556
parent47c4bdd6d3ea771f31ab2ef48219d713e808970f
drm/i915/selftests: Ensure we don't clamp a random offset to 32b

Specify that we do want a 64b value for sizeof(u32) as we want to
compute the mask of the upper 62bits.

v2: Use round_down() for automatic type promotion

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190710161413.7115-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
drivers/gpu/drm/i915/gt/intel_gpu_commands.h