From: Vandana Kannan Date: Fri, 9 Jan 2015 20:55:59 +0000 (+0530) Subject: drm/i915: DRRS calls based on frontbuffer X-Git-Tag: fixes-v4.0-rc1~91^2~8^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a93fad0f7fb8a3ff12e8814b630648f6d187954c;p=pandora-kernel.git drm/i915: DRRS calls based on frontbuffer Calls have been added to invalidate/flush DRRS whenever invalidate/flush is called as part of frontbuffer tracking. Apart from calls as a result of GEM tracking to fb invalidate/flush, a call has been added to invalidate fb obj from crtc_page_flip as well. This is to track busyness through flip calls. The call to fb_obj_invalidate (in flip) is placed before queuing flip for this obj. drrs_invalidate() and drrs_flush() check for drrs.dp which would be NULL if it was setup in drrs_enable(). This covers for the condition when DRRS is not supported. v2: Removing the call to invalidate_drrs from page_flip. This has not been tested on Android yet, but, in case DRRS transtions do not work as expected, check by adding back this call in page_flip. Signed-off-by: Vandana Kannan Reviewed-by: Rodrigo Vivi Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed