mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
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
This commit is contained in:
@@ -7,6 +7,13 @@
|
||||
#ifndef _INTEL_GPU_COMMANDS_H_
|
||||
#define _INTEL_GPU_COMMANDS_H_
|
||||
|
||||
/*
|
||||
* Target address alignments required for GPU access e.g.
|
||||
* MI_STORE_DWORD_IMM.
|
||||
*/
|
||||
#define alignof_dword 4
|
||||
#define alignof_qword 8
|
||||
|
||||
/*
|
||||
* Instruction field definitions used by the command parser
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user