diff options
| author | Arto Merilainen <amerilainen@nvidia.com> | 2017-10-17 03:28:59 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-19 15:36:55 -0400 |
| commit | 8d4623b8b28054dfad649b0ffd8aed8e2595de32 (patch) | |
| tree | bdbf0eb632ffea7852a9924687584a42ccb7e43b /include/linux | |
| parent | 8ae44c1e585670db44aee55a1902320e0aa39546 (diff) | |
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 <amerilainen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1580285
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nvhost.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 { | |||
| 375 | 375 | ||
| 376 | /* number of frames mlock can be locked for */ | 376 | /* number of frames mlock can be locked for */ |
| 377 | u32 mlock_timeout_factor; | 377 | u32 mlock_timeout_factor; |
| 378 | |||
| 379 | /* eventlib id for the device */ | ||
| 380 | int eventlib_id; | ||
| 378 | }; | 381 | }; |
| 379 | 382 | ||
| 380 | 383 | ||
| @@ -634,6 +637,13 @@ static inline void nvhost_unregister_dump_device(struct platform_device *dev) | |||
| 634 | { | 637 | { |
| 635 | } | 638 | } |
| 636 | 639 | ||
| 640 | static inline void nvhost_eventlib_log_task(struct platform_device *pdev, | ||
| 641 | u32 syncpt_id, | ||
| 642 | u32 syncpt_thres, | ||
| 643 | u64 timestamp_start, | ||
| 644 | u64 timestamp_end) | ||
| 645 | { | ||
| 646 | } | ||
| 637 | #else | 647 | #else |
| 638 | 648 | ||
| 639 | #ifdef CONFIG_DEBUG_FS | 649 | #ifdef CONFIG_DEBUG_FS |
| @@ -736,6 +746,12 @@ u32 nvhost_syncpt_read_maxval(struct platform_device *dev, u32 id); | |||
| 736 | void nvhost_syncpt_set_minval(struct platform_device *dev, u32 id, u32 val); | 746 | void nvhost_syncpt_set_minval(struct platform_device *dev, u32 id, u32 val); |
| 737 | void nvhost_syncpt_set_maxval(struct platform_device *dev, u32 id, u32 val); | 747 | void nvhost_syncpt_set_maxval(struct platform_device *dev, u32 id, u32 val); |
| 738 | 748 | ||
| 749 | void nvhost_eventlib_log_task(struct platform_device *pdev, | ||
| 750 | u32 syncpt_id, | ||
| 751 | u32 syncpt_thres, | ||
| 752 | u64 timestamp_start, | ||
| 753 | u64 timestamp_end); | ||
| 754 | |||
| 739 | /* public host1x interrupt management APIs */ | 755 | /* public host1x interrupt management APIs */ |
| 740 | int nvhost_intr_register_notifier(struct platform_device *pdev, | 756 | int nvhost_intr_register_notifier(struct platform_device *pdev, |
| 741 | u32 id, u32 thresh, | 757 | u32 id, u32 thresh, |
