]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00236879 Enhance VPU driver to handle API call sequence abnormal abort
authorHongzhang Yang <Hongzhang.Yang@freescale.com>
Thu, 13 Dec 2012 08:44:16 +0000 (16:44 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:48 +0000 (08:35 +0200)
commit141fb4765c9d352ecd926d763133cd2b1d77868e
tree3a927c96cdb6e65d730fbef4f6588897988fc229
parent999053202f95553adb77b400aded2fa1a9002638
ENGR00236879 Enhance VPU driver to handle API call sequence abnormal abort

Some application may exit without calling neccessay API to wrap up VPU
after it receives error message.

This could lead to system hang because driver will power off VPU
(vpu_release) while VPU may still be busy.

We require application to strictly follow the API call sequence even in
error handling case. Meanwhile, we enhance VPU driver to protect against
such abnormal abort, to prevent system hang at least.

If the last instance is closed, VPU will gate off or power off only if
VPU is idle.

Signed-off-by: Hongzhang Yang <Hongzhang.Yang@freescale.com>
drivers/mxc/vpu/mxc_vpu.c