From 57abaabb7688016feaecbf529a46ad143c1e65a2 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Thu, 6 Jul 2017 17:22:03 -0700 Subject: gpu: nvgpu: Cleanup GMMU debug printing Ensure that all debug prints are consistent from chip to chip and function to function. The following maps letters in the debug print to their meaning: C Mapping is cachable v Mapping is volatile S Mapping is sparse P Mapping is private (VPR/WPR) c Mapping is coherent V Mapping is valid JIRA NVGPU-30 Change-Id: Ia890af88677c3e6d3fdd8c4fe266158c35b8afcd Signed-off-by: Alex Waterman Reviewed-on: https://git-master/r/1514903 GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade Tested-by: Deepak Nibade Reviewed-by: Vijayakumar Subbu --- drivers/gpu/nvgpu/gp10b/mm_gp10b.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gp10b') diff --git a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c index bdc30143..612d59f7 100644 --- a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c @@ -288,7 +288,7 @@ static void update_gmmu_pte_locked(struct vm_gk20a *vm, "vm=%s " "PTE: i=%-4u size=%-2u offs=%-4u | " "GPU %#-12llx phys %#-12llx " - "pgsz: %3dkb perm=%-2s kind=%#02x APT=%-6s %c%c%c%c " + "pgsz: %3dkb perm=%-2s kind=%#02x APT=%-6s %c%c%c%c%c " "ctag=0x%08x " "[0x%08x, 0x%08x]", vm->name, @@ -298,10 +298,11 @@ static void update_gmmu_pte_locked(struct vm_gk20a *vm, nvgpu_gmmu_perm_str(attrs->rw_flag), attrs->kind_v, nvgpu_aperture_str(attrs->aperture), - attrs->valid ? 'V' : '-', - attrs->cacheable ? 'C' : '-', + attrs->cacheable ? 'C' : 'v', attrs->sparse ? 'S' : '-', attrs->priv ? 'P' : '-', + attrs->coherent ? 'c' : '-', + attrs->valid ? 'V' : '-', (u32)attrs->ctag / g->ops.fb.compression_page_size(g), pte_w[1], pte_w[0]); -- cgit v1.2.2