From a9c2a2defd265d8f979887487691950bd624eef4 Mon Sep 17 00:00:00 2001 From: Adeel Raza Date: Tue, 19 Feb 2019 15:24:53 -0800 Subject: [PATCH] gpu: nvgpu: mm: don't print lp vma if unified va If a VM has a unified user virtual address space, then only a single debug print is needed for displaying the user aperture base address/size. If however, the VM doesn't have a unified virtual address space, then 2 debug prints are needed to display the base address/size of the small and large page apertures. Change-Id: I909bef249cfe7cd5a7e1545102aa87bab01d8df2 Signed-off-by: Adeel Raza Reviewed-on: https://git-master.nvidia.com/r/2023282 Reviewed-by: Alex Waterman Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: svc-misra-checker GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/mm/vm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/common/mm/vm.c b/drivers/gpu/nvgpu/common/mm/vm.c index b7acf90ff..c934aa772 100644 --- a/drivers/gpu/nvgpu/common/mm/vm.c +++ b/drivers/gpu/nvgpu/common/mm/vm.c @@ -374,8 +374,10 @@ int nvgpu_vm_do_init(struct mm_gk20a *mm, nvgpu_log_info(g, "user_vma [0x%llx,0x%llx)", user_vma_start, user_vma_limit); - nvgpu_log_info(g, "user_lp_vma [0x%llx,0x%llx)", - user_lp_vma_start, user_lp_vma_limit); + if (!unified_va) { + nvgpu_log_info(g, "user_lp_vma [0x%llx,0x%llx)", + user_lp_vma_start, user_lp_vma_limit); + } nvgpu_log_info(g, "kernel_vma [0x%llx,0x%llx)", kernel_vma_start, kernel_vma_limit);