]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move cursor position and base handling into the platform specific functions
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 27 Mar 2017 18:55:37 +0000 (21:55 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 10 May 2017 16:07:00 +0000 (19:07 +0300)
commit06339d3c4206f338c347e60889f86519d9452259
treef6e259ce54d1b4e43793e12e9298b46dfdce3a84
parentd012b2aa0f64eed2f1958e5b99e87b1ce6473b04
drm/i915: Move cursor position and base handling into the platform specific functions

Supposedly on some platforms we can get extra atomicity guarantees for
CURPOS if we write it between the CURCNTR and CURBASE. Let's move the
CURPOS handling into the platform specific hooks to make the possible
without having to pass the calculated CURPOS around. And while at it,
do the same for the CURBASE to avoid passing that either.

v2: Use I915_WRITE_FW() and grab uncore.lock

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> #v1
Link: http://patchwork.freedesktop.org/patch/msgid/20170327185546.2977-7-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_display.c