]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitebd466aa1010a86b6548b517b675b1c0bd37e1fb
tree60d0279dbbccea268131e4e4e72f84bfa9782d29
parent5c6bcdb59d1b6b26f381f9ed32cbd3800628d56a
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