osd: fix hotplug hdmi causes system crash [1/1]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Wed, 10 Apr 2019 04:21:38 +0000 (12:21 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 16 Apr 2019 06:14:41 +0000 (23:14 -0700)
commit799ba4c6f73c3f141a4b93c1f51fd770df3ca305
tree56570da53a2cee02b5ecffe025d8ba8923758a39
parentdd62dac8c78238f7b2c8417c548a7943db005898
osd: fix hotplug hdmi causes system crash [1/1]

PD#SWPL-7009

Problem:
hotplug hdmi causes system crash
when unplug hdmi display mode is null, hwc hasn't received
event and post frame normal but osd vsync lost, which caused
wait hw vsync timeout(1s), and fd leak.

Solution:
when process every frame, if display mode is null, exit frame process
just process fence.

Verify:
verified on Raven, franklin

Change-Id: Icbe7cd76776e46a6ed79c6cee3ea05772cc5f9d2
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
drivers/amlogic/media/osd/osd_hw.c