diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-07-06 20:22:03 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-07 10:05:40 -0400 |
commit | 57abaabb7688016feaecbf529a46ad143c1e65a2 (patch) | |
tree | b0482a63aac13eb840d0344d7345b5b2ef3d3dd6 /drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |
parent | 6065b8c3ac17497d6ed8382a8503f55ec07c8865 (diff) |
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 <alexw@nvidia.com>
Reviewed-on: https://git-master/r/1514903
GVS: Gerrit_Virtual_Submit
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Tested-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 0a84cabb..759e6a2b 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -1700,7 +1700,7 @@ static void update_gmmu_pte_locked(struct vm_gk20a *vm, | |||
1700 | pte_dbg(g, attrs, | 1700 | pte_dbg(g, attrs, |
1701 | "PTE: i=%-4u size=%-2u offs=%-4u | " | 1701 | "PTE: i=%-4u size=%-2u offs=%-4u | " |
1702 | "GPU %#-12llx phys %#-12llx " | 1702 | "GPU %#-12llx phys %#-12llx " |
1703 | "pgsz: %3dkb perm=%-2s kind=%#02x APT=%-6s %c%c%c%c " | 1703 | "pgsz: %3dkb perm=%-2s kind=%#02x APT=%-6s %c%c%c%c%c " |
1704 | "ctag=0x%08x " | 1704 | "ctag=0x%08x " |
1705 | "[0x%08x, 0x%08x]", | 1705 | "[0x%08x, 0x%08x]", |
1706 | pd_idx, l->entry_size, pd_offset, | 1706 | pd_idx, l->entry_size, pd_offset, |
@@ -1709,10 +1709,11 @@ static void update_gmmu_pte_locked(struct vm_gk20a *vm, | |||
1709 | nvgpu_gmmu_perm_str(attrs->rw_flag), | 1709 | nvgpu_gmmu_perm_str(attrs->rw_flag), |
1710 | attrs->kind_v, | 1710 | attrs->kind_v, |
1711 | nvgpu_aperture_str(attrs->aperture), | 1711 | nvgpu_aperture_str(attrs->aperture), |
1712 | attrs->valid ? 'V' : '-', | 1712 | attrs->cacheable ? 'C' : 'v', |
1713 | attrs->cacheable ? 'C' : '-', | ||
1714 | attrs->sparse ? 'S' : '-', | 1713 | attrs->sparse ? 'S' : '-', |
1715 | attrs->priv ? 'P' : '-', | 1714 | attrs->priv ? 'P' : '-', |
1715 | attrs->coherent ? 'c' : '-', | ||
1716 | attrs->valid ? 'V' : '-', | ||
1716 | (u32)attrs->ctag >> ctag_shift, | 1717 | (u32)attrs->ctag >> ctag_shift, |
1717 | pte_w[1], pte_w[0]); | 1718 | pte_w[1], pte_w[0]); |
1718 | 1719 | ||