Home
last modified time | relevance | path

Searched hist:db43fd1624ed502beed604cd8e77aa921f9e555f (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/gpu/drm/exynos/
H A Dexynos_mixer.cdiff db43fd1624ed502beed604cd8e77aa921f9e555f Thu Dec 06 15:46:05 CET 2012 Prathyush K <prathyush.k@samsung.com> drm/exynos: clear windows in mixer dpms off

When mixer is turned off, we disable the clocks which will stop
the dma. Now if we remove the current framebuffer, we cannot
disable the overlay but the current framebuffer will still be freed.
When mixer resumes, the dma will continue from where it left off
and will throw a PAGE FAULT since the memory was freed.

This patch fixes the above problem by disabling the mixer windows
before disabling the mixer clocks. It also keeps track of which
windows were currently active by setting the 'resume' flag. When
mixer resumes, the window with a resume flag set is enabled again.

Now if a current fb is removed when mixer is off, mixer_win_disable
will set the 'resume' flag of that window to zero and return.
So when mixer resumes, that window will not be resumed.

Signed-off-by: Prathyush K <prathyush.k@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>