summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-09-13 16:49:49 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-09-20 00:50:18 -0400
commit3821811214d80647abc1d65f1cff4201c65d63e1 (patch)
tree1619ec7ff6d765abfb847490ac4ffd0da6a6ebf9 /drivers/gpu/nvgpu/include
parent1132fd2a12a48271f94e995c0466c48b8228c185 (diff)
gpu: nvgpu: Add DMA logging
Add logging prints for the DMA interface in nvgpu. These prints show size, aligned size, type of alloc (sysmem vs vidmem), and flags for the alloc. Bug 1956137 Change-Id: I3e15152959dbb256cb1679435a18ab6821f4cde3 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1559376 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/log.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/log.h b/drivers/gpu/nvgpu/include/nvgpu/log.h
index 11e6dacb..4cac3e70 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/log.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/log.h
@@ -70,6 +70,7 @@ enum nvgpu_log_categories {
70 gpu_dbg_kmem = BIT(19), /* Kmem tracking debugging. */ 70 gpu_dbg_kmem = BIT(19), /* Kmem tracking debugging. */
71 gpu_dbg_pd_cache = BIT(20), /* PD cache traces. */ 71 gpu_dbg_pd_cache = BIT(20), /* PD cache traces. */
72 gpu_dbg_alloc = BIT(21), /* Allocator debugging. */ 72 gpu_dbg_alloc = BIT(21), /* Allocator debugging. */
73 gpu_dbg_dma = BIT(22), /* DMA allocation prints. */
73 gpu_dbg_mem = BIT(31), /* memory accesses; very verbose. */ 74 gpu_dbg_mem = BIT(31), /* memory accesses; very verbose. */
74}; 75};
75 76