]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ingenic: Set DMA descriptor chain register when starting CRTC
authorPaul Cercueil <paul@crapouillou.net>
Tue, 26 Oct 2021 18:12:38 +0000 (19:12 +0100)
committerPaul Cercueil <paul@crapouillou.net>
Fri, 29 Oct 2021 20:30:07 +0000 (21:30 +0100)
commita65f8300d4434e07997ea1d55f5154001b418932
tree11f8fd4a178af1e9f85d734afd919713d01a5e51
parent5ebaf527178365aa3dbcf0e3930991ded8960bcb
drm/ingenic: Set DMA descriptor chain register when starting CRTC

Setting the DMA descriptor chain register in the probe function has been
fine until now, because we only ever had one descriptor per foreground.

As the driver will soon have real descriptor chains, and the DMA
descriptor chain register updates itself to point to the current
descriptor being processed, this register needs to be reset after a full
modeset to point to the first descriptor of the chain.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20211026181240.213806-5-paul@crapouillou.net
Tested-by: Nikolaus Schaller <hns@goldelico.com>
Reviewed-by: Christophe Branchereau <cbranchereau@gmail.com>
drivers/gpu/drm/ingenic/ingenic-drm-drv.c