summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-02-08 16:39:05 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-02-22 11:09:06 -0500
commiteb219e9f3f66a3930945260b50254ee1ee99b0cd (patch)
treeeec0c1136247946f3aa57a2dac50f4aef96e9691
parent338c99b4ecacfb3ebd7cc67a81a4c04d6193145e (diff)
gpu: nvgpu: Cleanup map attributes debugging
Make the map attributes printed by map debug code are more easily readable and consistent. Change-Id: I9737131a2ea44c6a080dff0095929760888b83ae Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1654518 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/common/mm/gmmu.c4
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c4
-rw-r--r--drivers/gpu/nvgpu/gp10b/mm_gp10b.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/gmmu.c b/drivers/gpu/nvgpu/common/mm/gmmu.c
index 5a61ac51..ffac324c 100644
--- a/drivers/gpu/nvgpu/common/mm/gmmu.c
+++ b/drivers/gpu/nvgpu/common/mm/gmmu.c
@@ -628,10 +628,10 @@ static int __nvgpu_gmmu_update_page_table(struct vm_gk20a *vm,
628 nvgpu_gmmu_perm_str(attrs->rw_flag), 628 nvgpu_gmmu_perm_str(attrs->rw_flag),
629 attrs->kind_v, 629 attrs->kind_v,
630 nvgpu_aperture_str(attrs->aperture), 630 nvgpu_aperture_str(attrs->aperture),
631 attrs->cacheable ? 'C' : 'c', /* C = cached, V = volatile. */ 631 attrs->cacheable ? 'C' : '-',
632 attrs->sparse ? 'S' : '-', 632 attrs->sparse ? 'S' : '-',
633 attrs->priv ? 'P' : '-', 633 attrs->priv ? 'P' : '-',
634 attrs->coherent ? 'c' : '-', 634 attrs->coherent ? 'I' : '-',
635 attrs->valid ? 'V' : '-'); 635 attrs->valid ? 'V' : '-');
636 636
637 err = __nvgpu_gmmu_do_update_page_table(vm, 637 err = __nvgpu_gmmu_do_update_page_table(vm,
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index 35c4d688..b27d1109 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -269,10 +269,10 @@ static void update_gmmu_pte_locked(struct vm_gk20a *vm,
269 nvgpu_gmmu_perm_str(attrs->rw_flag), 269 nvgpu_gmmu_perm_str(attrs->rw_flag),
270 attrs->kind_v, 270 attrs->kind_v,
271 nvgpu_aperture_str(attrs->aperture), 271 nvgpu_aperture_str(attrs->aperture),
272 attrs->cacheable ? 'C' : 'v', 272 attrs->cacheable ? 'C' : '-',
273 attrs->sparse ? 'S' : '-', 273 attrs->sparse ? 'S' : '-',
274 attrs->priv ? 'P' : '-', 274 attrs->priv ? 'P' : '-',
275 attrs->coherent ? 'c' : '-', 275 attrs->coherent ? 'I' : '-',
276 attrs->valid ? 'V' : '-', 276 attrs->valid ? 'V' : '-',
277 (u32)attrs->ctag >> ctag_shift, 277 (u32)attrs->ctag >> ctag_shift,
278 pte_w[1], pte_w[0]); 278 pte_w[1], pte_w[0]);
diff --git a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
index a9308b6e..0439dda9 100644
--- a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
@@ -307,10 +307,10 @@ static void update_gmmu_pte_locked(struct vm_gk20a *vm,
307 nvgpu_gmmu_perm_str(attrs->rw_flag), 307 nvgpu_gmmu_perm_str(attrs->rw_flag),
308 attrs->kind_v, 308 attrs->kind_v,
309 nvgpu_aperture_str(attrs->aperture), 309 nvgpu_aperture_str(attrs->aperture),
310 attrs->cacheable ? 'C' : 'v', 310 attrs->cacheable ? 'C' : '-',
311 attrs->sparse ? 'S' : '-', 311 attrs->sparse ? 'S' : '-',
312 attrs->priv ? 'P' : '-', 312 attrs->priv ? 'P' : '-',
313 attrs->coherent ? 'c' : '-', 313 attrs->coherent ? 'I' : '-',
314 attrs->valid ? 'V' : '-', 314 attrs->valid ? 'V' : '-',
315 (u32)attrs->ctag / g->ops.fb.compression_page_size(g), 315 (u32)attrs->ctag / g->ops.fb.compression_page_size(g),
316 pte_w[1], pte_w[0]); 316 pte_w[1], pte_w[0]);