drm/exynos: mixer: avoid Oops in vp_video_buffer()
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Fri, 2 Feb 2018 15:11:23 +0000 (16:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2018 19:01:35 +0000 (04:01 +0900)
commitd072dc76c0ebd16748b18a375af7857e8bd7f11f
treea56128363c7e2230927883517ae118f430a99e21
parentd3180bbbae7d1d1e6e0e54e716c998cb6212e032
drm/exynos: mixer: avoid Oops in vp_video_buffer()

[ Upstream commit 0ccc1c8f0282e237a0bd6dca7cdac4ed5e318ee7 ]

If an interlaced video mode is selected, a IOMMU pagefault is
triggered by vp_video_buffer().

Fix the most apparent bugs:
- pitch value for chroma plane
- divide by two of height and vpos of source and destination

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
[ a.hajda: Halved also destination height and vpos, updated commit message ]
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/exynos/exynos_mixer.c