From dfa3030e767dca384f5d159c6993d5ee25b416d7 Mon Sep 17 00:00:00 2001 From: Mayuresh Kulkarni Date: Mon, 9 Apr 2012 12:21:24 +0530 Subject: video: tegra: host: rewrite nvhost_job_pin/unpin APIs - remove usage of custom interface of nvmap to patch the relocs and and pin the gathers/relocs - convert code that references nvmap_handle to nvmap_handle_ref - add logic to pin and map only unique gathers and relocs - rename nvhost_channel_gather to nvhost_job_gather, because it's used in nvhost_job code only Bug 965206 Change-Id: Iaa7fbac9e4a7b08c0a7c1e184b8dd3566e1edfe2 Signed-off-by: Mayuresh Kulkarni Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/95299 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Juha Tukkinen --- include/trace/events/nvhost.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'include/trace') diff --git a/include/trace/events/nvhost.h b/include/trace/events/nvhost.h index 4bb79e30fc19..6358fedf4482 100644 --- a/include/trace/events/nvhost.h +++ b/include/trace/events/nvhost.h @@ -194,20 +194,30 @@ TRACE_EVENT(nvhost_cdma_push_gather, ); TRACE_EVENT(nvhost_channel_write_reloc, - TP_PROTO(const char *name), + TP_PROTO(const char *name, u32 cmdbuf_mem, u32 cmdbuf_offset, + u32 target, u32 target_offset), - TP_ARGS(name), + TP_ARGS(name, cmdbuf_mem, cmdbuf_offset, target, target_offset), TP_STRUCT__entry( __field(const char *, name) + __field(u32, cmdbuf_mem) + __field(u32, cmdbuf_offset) + __field(u32, target) + __field(u32, target_offset) ), TP_fast_assign( __entry->name = name; + __entry->cmdbuf_mem = cmdbuf_mem; + __entry->cmdbuf_offset = cmdbuf_offset; + __entry->target = target; + __entry->target_offset = target_offset; ), - TP_printk("name=%s", - __entry->name) + TP_printk("name=%s, cmdbuf_mem=%08x, cmdbuf_offset=%04x, target=%08x, target_offset=%04x", + __entry->name, __entry->cmdbuf_mem, __entry->cmdbuf_offset, + __entry->target, __entry->target_offset) ); TRACE_EVENT(nvhost_channel_write_waitchks, -- cgit v1.2.3