FROMLIST: drm/rockchip: vop: Disable planes when disabling CRTC
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 22 Mar 2016 15:08:04 +0000 (16:08 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 30 Mar 2016 02:01:47 +0000 (10:01 +0800)
commitcc01a559bd21ab31c059aec308705db3130739ec
tree76510edf0b7cd0e18c357749e51163670cb39cf0
parent232f21b8370a5f59e54979b8631b4eb4a832400d
FROMLIST: drm/rockchip: vop: Disable planes when disabling CRTC

When a VOP is re-enabled, it will start scanning right away the
framebuffers that were configured from the last time, even if those have
been destroyed already.

To prevent the VOP from trying to access freed memory, disable all its
windows when the CRTC is being disabled, then each window will get a
valid framebuffer address before it's enabled again.

Link: http://lkml.kernel.org/g/CAAObsKAv+05ih5U+=4kic_NsjGMhfxYheHR8xXXmacZs+p5SHw@mail.gmail.com
(am from https://patchwork.kernel.org/patch/8643631/)

Change-Id: Iaacb1624b4351a94d663ec73d9174b0fd4bc4b54
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c