Set DRM_UNLOCKED flag to TTM synccpu and waitidle ioctl.
authorElaine Wang <elaine.wang@intel.com>
Thu, 22 Mar 2012 05:42:16 +0000 (13:42 +0800)
committerbuildbot <buildbot@intel.com>
Tue, 27 Mar 2012 09:28:02 +0000 (02:28 -0700)
commitaaee8d9ea9cbbdcc3801cfabaa19076892d869ca
tree6250719655ed85a0cf24ce33d56aa7e32eb35092
parent441708c71f23d8cf7ad96813638192fde9b94062
Set DRM_UNLOCKED flag to TTM synccpu and waitidle ioctl.

BZ: 26344

H.264 1080p encoding time is too long, it takes about 30ms to encode one frame.

The graphic sync vblank drm ioctl and video waitidle ioctl might take much time
than others and prevent other drm ioctls from running, which cause encoder performance
drop a lot while decoding a clip and displaying it. This patch set DRM_UNLOCKED flag
to TTM synccpu, waitidle and cmdbuf ioctl and also add reserve buffer object
protection for psb_pl_synccpu_ioctl. The psb_cmdbuf_ioctl function already has
a mutex_lock itself.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Change-Id: I58f7ecd69c7f828b90a49e23383584a59a351a89
Reviewed-on: http://android.intel.com:8080/40105
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Tu, Yun <yun.tu@intel.com>
Reviewed-by: Hu, Jason <jason.hu@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/staging/mrst/drv/psb_drv.c
drivers/staging/mrst/imgv/psb_ttm_placement_user.c