From 8d4623b8b28054dfad649b0ffd8aed8e2595de32 Mon Sep 17 00:00:00 2001 From: Arto Merilainen Date: Tue, 17 Oct 2017 10:28:59 +0300 Subject: video: tegra: host: Add eventlib support This change adds support for eventlib completion events. Eventlib is a library that is intended to interface with Tegra System Profiler to deliver information about e.g. task start and completion events. Bug 1996639 Change-Id: Ia5efcfb7ce54b7ee7822d6d5a153369b5a4ae535 Signed-off-by: Arto Merilainen Reviewed-on: https://git-master.nvidia.com/r/1580285 Reviewed-by: Mikko Perttunen --- include/linux/nvhost.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include/linux') diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h index 96ac4b170..a8185c7d8 100644 --- a/include/linux/nvhost.h +++ b/include/linux/nvhost.h @@ -375,6 +375,9 @@ struct nvhost_device_data { /* number of frames mlock can be locked for */ u32 mlock_timeout_factor; + + /* eventlib id for the device */ + int eventlib_id; }; @@ -634,6 +637,13 @@ static inline void nvhost_unregister_dump_device(struct platform_device *dev) { } +static inline void nvhost_eventlib_log_task(struct platform_device *pdev, + u32 syncpt_id, + u32 syncpt_thres, + u64 timestamp_start, + u64 timestamp_end) +{ +} #else #ifdef CONFIG_DEBUG_FS @@ -736,6 +746,12 @@ u32 nvhost_syncpt_read_maxval(struct platform_device *dev, u32 id); void nvhost_syncpt_set_minval(struct platform_device *dev, u32 id, u32 val); void nvhost_syncpt_set_maxval(struct platform_device *dev, u32 id, u32 val); +void nvhost_eventlib_log_task(struct platform_device *pdev, + u32 syncpt_id, + u32 syncpt_thres, + u64 timestamp_start, + u64 timestamp_end); + /* public host1x interrupt management APIs */ int nvhost_intr_register_notifier(struct platform_device *pdev, u32 id, u32 thresh, -- cgit v1.2.2