drm/tgm: tdm_pp: msc: check and adjust src/dest size parameter 98/221198/1 accepted/tizen/unified/20191230.120909 submit/tizen/20191230.065651
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 23 Dec 2019 01:21:38 +0000 (10:21 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 30 Dec 2019 05:23:00 +0000 (14:23 +0900)
commitb14d4a90e18773db94dac4fd21bafa078e1b54e0
tree3d25100aaae2fc7d177ae316a16decbd22932f05
parent25fd4e84076114e676c2b02c5d98a7eaa71fda1c
drm/tgm: tdm_pp: msc: check and adjust src/dest size parameter

In msc hw, for both src and dest, image x plus image w should be
equal or less than buffer size vsize and image y plus image shou.d
be equal or less than buffer size hsize. Otherwise, hw tries to
access out of buffer boundary and it causes msc sysmmu page fault.
Fix to check and to adjust src/dest size parameter as the hw
constraint.

Change-Id: Ie6e9d431955e0c369164f2b1f46cf9f17e0b1d8b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/gpu/drm/tgm/tdm_pp_msc.c