]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dsi: Enable software vblank counter
authorVandita Kulkarni <vandita.kulkarni@intel.com>
Thu, 24 Sep 2020 12:42:09 +0000 (18:12 +0530)
committerJani Nikula <jani.nikula@intel.com>
Mon, 28 Sep 2020 17:02:24 +0000 (20:02 +0300)
commit33267703df1562a625a76a654927e1fbd4b6d0ce
treee0adcab83fddb49509743ec7ac7da616e5a98862
parent26fb0d552dc89cae2b76cc10ea87b889c4b32123
drm/i915/dsi: Enable software vblank counter

In case of DSI cmd mode, we get hw vblank counter updated after the TE
comes in, if we try to read the hw vblank counter in te handler we
wouldnt have the udpated vblank counter yet. This will lead to a state
where we would send the vblank event to the user space in the next te,
though the frame update would have completed in the first TE duration
itself. Hence switch to using software timestamp based vblank counter.

v2: Use mode_flags from crtc_state (Ville)

Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200924124209.17916-6-vandita.kulkarni@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/i915_irq.c