From b9082f076087d5420a5d7fe492ffefb2402397cc Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Wed, 13 Sep 2017 16:45:52 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1559518 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') 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 { /* memory training sequence and mclk switch scripts */ u32 mem_config_idx; + u64 dma_memory_used; + #if defined(CONFIG_TEGRA_GK20A_NVHOST) && defined(CONFIG_TEGRA_19x_GPU) phys_addr_t syncpt_unit_base; size_t syncpt_unit_size; -- cgit v1.2.2