diff options
author | Hyung Taek Ryoo <hryoo@nvidia.com> | 2012-04-16 11:33:49 -0700 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-04-23 07:40:24 -0700 |
commit | e929f231fb47ae745934386f53cfb7ea5b5a257b (patch) | |
tree | d7c52c85e00df4aed73cfc43c1980fb742650327 /include | |
parent | 4a8db663c62e6939e14386def1ac11b0e1777df2 (diff) |
video: tegra: nvavp: Add force clock stay on API
Add nvavp_force_clock_stay_on ioctl which provides way for user-mode driver
to stay on AVP clock state. This change is to fix LP0 resume fail during
Widevine playback. Since VDE/BSEV clocks are used by OTF driver in secure
world during closing sesssion, the change makes VDE/BSEV clocks running
while entering LP0.
Bug 960130
Bug 961015
Change-Id: I7eaaa9a33537a72b6ae0a016372bc513fef532e2
Reviewed-on: http://git-master/r/96302
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Tested-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tegra_nvavp.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/tegra_nvavp.h b/include/linux/tegra_nvavp.h index 971054440866..6774d0eaa7ef 100644 --- a/include/linux/tegra_nvavp.h +++ b/include/linux/tegra_nvavp.h @@ -64,6 +64,15 @@ struct nvavp_clock_args { __u32 rate; }; +enum nvavp_clock_stay_on_state { + NVAVP_CLOCK_STAY_ON_DISABLED = 0, + NVAVP_CLOCK_STAY_ON_ENABLED +}; + +struct nvavp_clock_stay_on_state_args { + enum nvavp_clock_stay_on_state state; +}; + #define NVAVP_IOCTL_MAGIC 'n' #define NVAVP_IOCTL_SET_NVMAP_FD _IOW(NVAVP_IOCTL_MAGIC, 0x60, \ @@ -78,8 +87,10 @@ struct nvavp_clock_args { struct nvavp_clock_args) #define NVAVP_IOCTL_WAKE_AVP _IOR(NVAVP_IOCTL_MAGIC, 0x66, \ __u32) +#define NVAVP_IOCTL_FORCE_CLOCK_STAY_ON _IOW(NVAVP_IOCTL_MAGIC, 0x67, \ + struct nvavp_clock_stay_on_state_args) #define NVAVP_IOCTL_MIN_NR _IOC_NR(NVAVP_IOCTL_SET_NVMAP_FD) -#define NVAVP_IOCTL_MAX_NR _IOC_NR(NVAVP_IOCTL_WAKE_AVP) +#define NVAVP_IOCTL_MAX_NR _IOC_NR(NVAVP_IOCTL_FORCE_CLOCK_STAY_ON) #endif /* __LINUX_TEGRA_NVAVP_H */ |