drm: Promote drm_mm alignment to u64
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Dec 2016 08:36:24 +0000 (08:36 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Dec 2016 13:16:58 +0000 (14:16 +0100)
commit7173320758e5dfcd7a47a51d3fe2b21c43d9633c
tree60d0279dbbccea268131e4e4e72f84bfa9782d29
parentd1bac3a78111c82befc8c8fc185b2d90a64ed4b6
drm: Promote drm_mm alignment to u64

In places (e.g. i915.ko), the alignment is exported to userspace as u64
and there now exists hardware for which we can indeed utilize a u64
alignment. As such, we need to keep 64bit integers throughout when
handling alignment.

Testcase: igt/drm_mm/align64
Testcase: igt/gem_exec_alignment
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161222083641.2691-22-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_mm.c
drivers/gpu/drm/selftests/test-drm_mm.c
include/drm/drm_mm.h