video: tegra: nvavp: Add a clock request ioctl
authorHyung Taek Ryoo <hryoo@nvidia.com>
Fri, 11 May 2012 18:19:00 +0000 (11:19 -0700)
committerLokesh Pathak <lpathak@nvidia.com>
Mon, 14 May 2012 10:35:02 +0000 (03:35 -0700)
commitfa2c352e1c7430f525265ea78301f41210555dcf
tree0e0146045784d102dd0eae1f5ff1dcbd622ed8b3
parentdfa3daebbc8dbe3ccc8e72400359dfce29053222
video: tegra: nvavp: Add a clock request ioctl

Add nvavp_force_clock_stay_on ioctl which provides way for user-mode driver
to request the VDE/BSEV clocks. This change is to fix a hang during DRM
session close. The AVP driver may have already turned
the clocks off since playback was paused prior to session teardown. This
situation can cause the OTF driver on secure side to hang if the VDE/BSEV
clocks are not explicitly enabled prior to calling session terminate.

Bug 960130
Bug 961015
Bug 979102

Change-Id: I3c09a6766f50a01ed04fbfd03e723ad9e978909f
Reviewed-on: http://git-master/r/102024
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
Tested-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
drivers/media/video/tegra/nvavp/nvavp_dev.c
include/linux/tegra_nvavp.h