]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
gpu: nvgpu: Fix comptag index in trace
authorTerje Bergstrom <tbergstrom@nvidia.com>
Tue, 17 Mar 2015 19:39:42 +0000 (12:39 -0700)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Wed, 25 Mar 2015 21:08:55 +0000 (14:08 -0700)
Instead of comptag index we were dumping an offset in buffer.

Change-Id: Iaa07919c8d87009227556eacbcb6dcbd83954c7d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/718597
Reviewed-by: Automatic_Commit_Validation_User
drivers/gpu/nvgpu/gk20a/mm_gk20a.c

index eb19ffb4f8b151e9249c9912e5e5893250e09fdf..6328f67eebfeb225c66652e59c07bb007a69b3e3 100644 (file)
@@ -1900,7 +1900,7 @@ static int update_gmmu_pte_locked(struct vm_gk20a *vm,
                gk20a_dbg(gpu_dbg_pte,
                        "pte=%d iova=0x%llx kind=%d ctag=%d vol=%d [0x%08x, 0x%08x]",
                           i, iova,
-                          kind_v, *ctag, !cacheable,
+                          kind_v, *ctag / ctag_granularity, !cacheable,
                           pte_w[1], pte_w[0]);
 
                if (*ctag)