[GIT PULL] drm/imx: fixes for early vblank event issue, array underflow error

Philipp Zabel p.zabel at pengutronix.de
Thu Mar 22 09:20:36 UTC 2018


Hi Dave,

please consider merging these fixes for an array underflow error in ipu-
prg and an issue where the vblank completion event would be signalled to
userspace too early due to a race condition.

regards
Philipp

The following changes since commit 0c8efd610b58cb23cefdfa12015799079aef94ae:

  Linux 4.16-rc5 (2018-03-11 17:25:09 -0700)

are available in the Git repository at:

  git://git.pengutronix.de/git/pza/linux.git tags/imx-drm-fixes-2018-03-22

for you to fetch changes up to 6a055b92de15af987b4027826d43aa103c65a3c4:

  drm/imx: move arming of the vblank event to atomic_flush (2018-03-15 17:52:41 +0100)

----------------------------------------------------------------
- fix an array underflow error by reordering the range check before the array
  subscript in ipu-prg.
- make some local functions static in ipuv3-plane.
- add a missing header for ipu_planes_assign_pre in ipuv3-plane.
- move arming of the vblank event from atomic_begin to atomic_flush, to avoid
  signalling atomic commit completion to userspace before plane atomic_update
  has finished, due to a race condition that is likely to be hit on i.MX6QP on
  PRE enabled channels.

----------------------------------------------------------------
Arnd Bergmann (1):
      gpu: ipu-v3: prg: avoid possible array underflow

Fabio Estevam (2):
      drm/imx: ipuv3-plane: Make functions static when possible
      drm/imx: ipuv3-plane: Include "imx-drm.h" header file

Lucas Stach (1):
      drm/imx: move arming of the vblank event to atomic_flush

 drivers/gpu/drm/imx/ipuv3-crtc.c  |  5 +++++
 drivers/gpu/drm/imx/ipuv3-plane.c | 10 ++++++----
 drivers/gpu/ipu-v3/ipu-prg.c      | 12 +++++++++---
 3 files changed, 20 insertions(+), 7 deletions(-)


More information about the dri-devel mailing list