summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-09-13 19:45:52 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-09-20 00:52:56 -0400
commitb9082f076087d5420a5d7fe492ffefb2402397cc (patch)
tree0ebe87775c967b9dc3403222eb12fe72074ed9ff /drivers/gpu/nvgpu/gk20a/gk20a.h
parent3821811214d80647abc1d65f1cff4201c65d63e1 (diff)
gpu: nvgpu: Add per-GPU total to DMA memory prints
Track the total amount of DMA memory currently outstanding for each GPU. Print this total in the DMA debugging/logging prints. Bug 1956137 Change-Id: I929598e5aa388ee84db0badb4eb9f7c6cbe030c7 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1559518 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 8ac82428..48b34db7 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -1269,6 +1269,8 @@ struct gk20a {
1269 /* memory training sequence and mclk switch scripts */ 1269 /* memory training sequence and mclk switch scripts */
1270 u32 mem_config_idx; 1270 u32 mem_config_idx;
1271 1271
1272 u64 dma_memory_used;
1273
1272#if defined(CONFIG_TEGRA_GK20A_NVHOST) && defined(CONFIG_TEGRA_19x_GPU) 1274#if defined(CONFIG_TEGRA_GK20A_NVHOST) && defined(CONFIG_TEGRA_19x_GPU)
1273 phys_addr_t syncpt_unit_base; 1275 phys_addr_t syncpt_unit_base;
1274 size_t syncpt_unit_size; 1276 size_t syncpt_unit_size;