From c165791a7b92372d85fa209e414cde8904b94ffc Mon Sep 17 00:00:00 2001 From: Arvind M Date: Thu, 16 May 2019 17:28:22 +0530 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/2121530 Reviewed-by: Shridhar Rasal Reviewed-by: Bharat Nihalani GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/uapi/linux/nvdev_fence.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/nvdev_fence.h b/include/uapi/linux/nvdev_fence.h index 37d81be4..5877a388 100644 --- a/include/uapi/linux/nvdev_fence.h +++ b/include/uapi/linux/nvdev_fence.h @@ -3,7 +3,7 @@ * * Tegra PVA/DLA fence support * - * Copyright (c) 2018, NVIDIA Corporation. All rights reserved. + * Copyright (c) 2018-2019, NVIDIA Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,6 +34,7 @@ enum nvdev_fence_kind { * struct nvdev_fence structure for passing fence information * * @type: Type of the fence (syncpoint, sync fd or semaphore) + * @type: fence action (wait or signal) * @syncpoint_index: Syncpoint id * @syncpoint_value: Value of syncpoint id * @sync_fd: Linux sync FD handle @@ -47,6 +48,9 @@ struct nvdev_fence { #define NVDEV_FENCE_TYPE_SYNC_FD 1 #define NVDEV_FENCE_TYPE_SEMAPHORE 2 #define NVDEV_FENCE_TYPE_SEMAPHORE_TS 3 + __u32 action; +#define NVDEV_FENCE_WAIT 0 +#define NVDEV_FENCE_SIGNAL 1 __u32 syncpoint_index; __u32 syncpoint_value; __u32 sync_fd;