summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2019-04-30 20:19:51 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2020-01-30 02:42:34 -0500
commite0587aaf4d8f803004365eef2b08c0becd1042cb (patch)
treea6da9462840200e0b183868000e08fee749125c6 /drivers/gpu/nvgpu/include
parent8110cee82842da134d3dfdc2e13406f1f94aa8ed (diff)
gpu: nvgpu: set FB/HSMMU debug mode
Set NV_PFB_HSMMU_PRI_MMU_DEBUG_CTRL and NV_PFB_PRI_MMU_DEBUG_CTRL in addition to NV_PGRAPH_PRI_GPCS_MMU_DEBUG_CTRL, in NVGPU_DBG_GPU_IOCTL_SET_CTX_MMU_DEBUG_MODE Bug 2515097 Bug 2713590 Change-Id: I1763b43e79fac3edb68a35980683d58bfa89519f Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2115785 (cherry picked from commit 8057514a9f7fc5f175e2e0571dfa91d78ebb6410) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2208771 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Kajetan Dutka <kdutka@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: Kajetan Dutka <kdutka@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/gk20a.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h
index f3a83602..8b6de266 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h
@@ -570,6 +570,7 @@ struct gpu_ops {
570 struct wpr_carveout_info *inf); 570 struct wpr_carveout_info *inf);
571 bool (*is_debug_mode_enabled)(struct gk20a *g); 571 bool (*is_debug_mode_enabled)(struct gk20a *g);
572 void (*set_debug_mode)(struct gk20a *g, bool enable); 572 void (*set_debug_mode)(struct gk20a *g, bool enable);
573 void (*set_mmu_debug_mode)(struct gk20a *g, bool enable);
573 int (*tlb_invalidate)(struct gk20a *g, struct nvgpu_mem *pdb); 574 int (*tlb_invalidate)(struct gk20a *g, struct nvgpu_mem *pdb);
574 void (*hub_isr)(struct gk20a *g); 575 void (*hub_isr)(struct gk20a *g);
575 void (*handle_replayable_fault)(struct gk20a *g); 576 void (*handle_replayable_fault)(struct gk20a *g);
@@ -1623,6 +1624,7 @@ struct gk20a {
1623 struct gk20a_fecs_trace *fecs_trace; 1624 struct gk20a_fecs_trace *fecs_trace;
1624 1625
1625 bool mmu_debug_ctrl; 1626 bool mmu_debug_ctrl;
1627 u32 mmu_debug_mode_refcnt;
1626 1628
1627 u32 tpc_fs_mask_user; 1629 u32 tpc_fs_mask_user;
1628 1630