From ce3925c2da53d1e6024780727f0d62b587e89c75 Mon Sep 17 00:00:00 2001 From: Srikar Srimath Tirumala Date: Thu, 31 May 2018 21:05:50 -0700 Subject: video: tegra: host: eventlib support for falcons * Replace the VIC method for timestamp logging with generic falcon timestamping method. * Expose the new falcon timestamping method to other falcon cores. * Enable task timestamping for nvenc. Bug 200312229 JIRA HOSTX-336 JIRA HOSTX-337 Change-Id: I6724f47db0cfca2fc962a7a479a1c370f37c2e31 Signed-off-by: Srikar Srimath Tirumala Reviewed-on: https://git-master.nvidia.com/r/1736581 Reviewed-by: svc-mobile-coverity Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Mikko Perttunen Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/nvhost.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/linux') diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h index 43aaa32cd..9421f36f2 100644 --- a/include/linux/nvhost.h +++ b/include/linux/nvhost.h @@ -270,8 +270,7 @@ struct nvhost_device_data { /* Called each time we enter the class */ int (*init_class_context)(struct platform_device *dev, - struct nvhost_cdma *cdma, - dma_addr_t timestamp_addr); + struct nvhost_cdma *cdma); /* * Reset the unit. Used for timeout recovery, resetting the unit on @@ -373,8 +372,9 @@ struct nvhost_device_data { /* eventlib id for the device */ int eventlib_id; - /* supports delivering task timestamps (falcon) */ - bool supports_task_timestamps; + /* deliver task timestamps for falcon */ + void (*enable_timestamps)(struct platform_device *pdev, + struct nvhost_cdma *cdma, dma_addr_t timestamp_addr); }; -- cgit v1.2.2