diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2013-04-04 15:31:50 +0300 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:37:37 -0700 |
commit | f206d09819ae1c5c784a35d19d190bc07c9e7402 (patch) | |
tree | 4ddc9fce7bb1168a2c0f286e4bd410ea0569d3be /include/trace | |
parent | 16ab6e7a0cc1221b3777139ce90b646a2c623ec6 (diff) |
video: tegra: host: Reimplement nvmap_pin in nvhost
Reimplement mapping buffer to device memory in nvhost. This allows
separating memory areas of devices from each other.
Adds also dma parameters for each host1x device.
Bug 1259839
Bug 1174439
Change-Id: I0029756d84c455faacbbe27791e0e8f1190352ee
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/251931
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/nvhost.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/trace/events/nvhost.h b/include/trace/events/nvhost.h index 68fa3bf6c83f..b9b58216bcb5 100644 --- a/include/trace/events/nvhost.h +++ b/include/trace/events/nvhost.h @@ -900,6 +900,45 @@ TRACE_EVENT(nvhost_gk20a_mmu_fault, __entry->engine, __entry->client, __entry->fault_type) ); +DECLARE_EVENT_CLASS(nvhost_map, + TP_PROTO(const char *devname, void *handle, int size, + dma_addr_t iova), + + TP_ARGS(devname, handle, size, iova), + + TP_STRUCT__entry( + __field(const char *, devname) + __field(void *, handle) + __field(int, size) + __field(dma_addr_t, iova) + ), + + TP_fast_assign( + __entry->devname = devname; + __entry->handle = handle; + __entry->size = size; + __entry->iova = iova; + ), + + TP_printk("dev=%s, handle=%p, size=%d, iova=%08x", + __entry->devname, __entry->handle, __entry->size, + __entry->iova) +); + +DEFINE_EVENT(nvhost_map, nvhost_nvmap_pin, + TP_PROTO(const char *devname, void *handle, int size, + dma_addr_t iova), + + TP_ARGS(devname, handle, size, iova) +); + +DEFINE_EVENT(nvhost_map, nvhost_nvmap_unpin, + TP_PROTO(const char *devname, void *handle, int size, + dma_addr_t iova), + + TP_ARGS(devname, handle, size, iova) +); + #endif /* _TRACE_NVHOST_H */ /* This part must be outside protection */ |