[PATCH v2] drm/rockchip: vop: Disable planes when disabling CRTC

2016-03-28 Thread Mark yao
On 2016年03月22日 23:08, Tomeu Vizoso wrote: > 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

[PATCH v2] drm/rockchip: vop: Disable planes when disabling CRTC

2016-03-22 Thread Tomeu Vizoso
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