OSDN Git Service

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)
commit5410345f7acb4e84825e7e02f68480c95f3b7b15
tree11f8fd4a178af1e9f85d734afd919713d01a5e51
parent9361329d57129ab2e7a47e11962088dd540be47d
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