video: tegra: host: add prefence signal support

[1] Adds support for prefence signal support
[2] Facilitates handling of SOF feature request from higher
    levels
[3] Update ioctl structure for emu_submit to allow prefence
    with signal action

Jira DLA-1992
Jira DLA-1993

Change-Id: Id0fe8a7a3ff46227121ec5342197b1da2a3f346d
Signed-off-by: Arvind M <am@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2121530
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Arvind M
2019-05-16 17:28:22 +05:30
committed by Laxman Dewangan
parent 67863abdbe
commit ccfa8a0b47
4 changed files with 229 additions and 31 deletions

View File

@@ -3,7 +3,7 @@
*
* Tegra NvDLA Driver
*
* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
@@ -160,15 +160,17 @@ struct nvdla_ioctl_submit_task {
* struct nvdla_ioctl_emu_submit_task structure for single emulator task
* information
*
* @num_prefences number of pre-fences in task
* @num_postfences number of post-fences in task
* @reserved reserved for padding and future use
* @postfences pointer to post-fence struct table
* @prefences pointer to pre-fence struct table
* @postfences pointer to post-fence struct table
*
*/
struct nvdla_ioctl_emu_submit_task {
__u32 num_prefences;
__u32 num_postfences;
__u32 reserved;
__u64 prefences;
__u64 postfences;
};