drm/mm: Do DRM_MM_CREATE_TOP adj_start calculation after color_adjust
authorMichel Thierry <michel.thierry@intel.com>
Sun, 16 Aug 2015 03:02:28 +0000 (04:02 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Sep 2015 11:45:47 +0000 (13:45 +0200)
commitfafecc01bcce4a21c0644c79de833e659882d33a
tree36fdc6ec2ff73e01d23724a872201050692109d8
parentbcfe0c0954f3336c44993e5ce444e09ad6087637
drm/mm: Do DRM_MM_CREATE_TOP adj_start calculation after color_adjust

The adj_start calculation for DRM_MM_CREATE_TOP should happen after
mm->color_adjust. There was an inconsistency between
drm_mm_insert_helper_range
and drm_mm_insert_helper, as the later was already updating after
color_adjust.

Didn't spot it before, as color_adjust is only done in systems without
LLC. But I'm not aware of anybody using this test case yet.

Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_mm.c