summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorArto Merilainen <amerilainen@nvidia.com>2017-12-01 08:26:57 -0500
committerAdeel Raza <araza@nvidia.com>2017-12-05 12:13:16 -0500
commitbdeb2f1104b1e5ee954530305703ce1c6f63d277 (patch)
tree038b4e2f09bf1b8a7dc1815e76998f5223911bf1 /include/uapi/linux
parent90afc4fd287cca5887e800dfbfb437a002828ee9 (diff)
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 <amerilainen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1610037 GVS: Gerrit_Virtual_Submit Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/nvhost_events.h34
1 files changed, 28 insertions, 6 deletions
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 {
25 25
26#define NVHOST_EVENT_PROVIDER_NAME "nvhost" 26#define NVHOST_EVENT_PROVIDER_NAME "nvhost"
27 27
28/* Marks that the task is submitted to hardware */
29struct nvhost_task_submit {
30 /* Engine class ID */
31 u32 class_id;
32
33 /* Syncpoint ID */
34 u32 syncpt_id;
35
36 /* Threshold for task completion */
37 u32 syncpt_thresh;
38
39 /* PID */
40 u32 pid;
41
42 /* TID */
43 u32 tid;
44} __packed;
45
28/* Marks that the task is moving to execution */ 46/* Marks that the task is moving to execution */
29struct nvhost_task_start { 47struct nvhost_task_begin {
30 /* Engine class ID */ 48 /* Engine class ID */
31 u32 class_id; 49 u32 class_id;
32 50
@@ -50,18 +68,22 @@ struct nvhost_task_end {
50} __packed; 68} __packed;
51 69
52enum { 70enum {
53 /* struct nvhost_task_start */ 71 /* struct nvhost_task_submit */
54 NVHOST_TASK_START = 0, 72 NVHOST_TASK_SUBMIT = 0,
73
74 /* struct nvhost_task_begin */
75 NVHOST_TASK_BEGIN = 1,
55 76
56 /* struct nvhost_task_end */ 77 /* struct nvhost_task_end */
57 NVHOST_TASK_END = 1, 78 NVHOST_TASK_END = 2,
58 79
59 NVHOST_NUM_EVENT_TYPES = 2 80 NVHOST_NUM_EVENT_TYPES = 3
60}; 81};
61 82
62union nvhost_event_union { 83union nvhost_event_union {
63 struct nvhost_task_start task_start; 84 struct nvhost_task_begin task_begin;
64 struct nvhost_task_end task_end; 85 struct nvhost_task_end task_end;
86 struct nvhost_task_submit task_submit;
65}; 87};
66 88
67enum { 89enum {