]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/exynos/fimd: add clock rate checking
authorAndrzej Hajda <a.hajda@samsung.com>
Fri, 23 Sep 2016 10:43:29 +0000 (12:43 +0200)
committerInki Dae <daeinki@gmail.com>
Fri, 30 Sep 2016 15:39:36 +0000 (00:39 +0900)
commitc96fdfdeca5657740c50b09c46f073edd7a2d3a0
tree42415f9391b519c4e88effbbb7a25ac7be2aa986
parent14e022f3041d5b0406c7d7175e350e0bf420e625
drm/exynos/fimd: add clock rate checking

In case of some platforms fimd clocks can be configured to
very low values, as a result refresh rate can be very low and
driver/drm-core will timeout waiting for vblanks, it will result
in premature removal of framebuffers and will cause oopses.
The patch adds atomic_check callback to fimd to prevent setting
such modes.

Reported-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimd.c