diff options
author | Mayuresh Kulkarni <mkulkarni@nvidia.com> | 2012-04-09 12:21:24 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-05-24 14:43:25 -0700 |
commit | dfa3030e767dca384f5d159c6993d5ee25b416d7 (patch) | |
tree | cd37c5ddf6083a7bb207376148d23e559f7137c6 /include/trace/events/nvhost.h | |
parent | 8e9dc6ce7d8cafba0e65123b2f76320309e8388c (diff) |
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 <mkulkarni@nvidia.com>
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/95299
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'include/trace/events/nvhost.h')
-rw-r--r-- | include/trace/events/nvhost.h | 18 |
1 files changed, 14 insertions, 4 deletions
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, |