From bdeb2f1104b1e5ee954530305703ce1c6f63d277 Mon Sep 17 00:00:00 2001 From: Arto Merilainen Date: Fri, 1 Dec 2017 15:26:57 +0200 Subject: video: tegra: host: Rework eventlib events This change updates eventlib events to follow the requested format: - An event is generated as part of submission - Rather than using "START" in the event identifier, the code uses "BEGIN" Bug 1996639 Change-Id: I5afc31332b0121a2287eda07f77d86304a0ba6ac Signed-off-by: Arto Merilainen Reviewed-on: https://git-master.nvidia.com/r/1610037 GVS: Gerrit_Virtual_Submit Reviewed-by: Mikko Perttunen --- include/uapi/linux/nvhost_events.h | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/nvhost_events.h b/include/uapi/linux/nvhost_events.h index 1935f6edd..4655537f1 100644 --- a/include/uapi/linux/nvhost_events.h +++ b/include/uapi/linux/nvhost_events.h @@ -25,8 +25,26 @@ enum { #define NVHOST_EVENT_PROVIDER_NAME "nvhost" +/* Marks that the task is submitted to hardware */ +struct nvhost_task_submit { + /* Engine class ID */ + u32 class_id; + + /* Syncpoint ID */ + u32 syncpt_id; + + /* Threshold for task completion */ + u32 syncpt_thresh; + + /* PID */ + u32 pid; + + /* TID */ + u32 tid; +} __packed; + /* Marks that the task is moving to execution */ -struct nvhost_task_start { +struct nvhost_task_begin { /* Engine class ID */ u32 class_id; @@ -50,18 +68,22 @@ struct nvhost_task_end { } __packed; enum { - /* struct nvhost_task_start */ - NVHOST_TASK_START = 0, + /* struct nvhost_task_submit */ + NVHOST_TASK_SUBMIT = 0, + + /* struct nvhost_task_begin */ + NVHOST_TASK_BEGIN = 1, /* struct nvhost_task_end */ - NVHOST_TASK_END = 1, + NVHOST_TASK_END = 2, - NVHOST_NUM_EVENT_TYPES = 2 + NVHOST_NUM_EVENT_TYPES = 3 }; union nvhost_event_union { - struct nvhost_task_start task_start; + struct nvhost_task_begin task_begin; struct nvhost_task_end task_end; + struct nvhost_task_submit task_submit; }; enum { -- cgit v1.2.2