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

Change-Id: I1763b43e79fac3edb68a35980683d58bfa89519f
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2115785
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2019-04-30 17:19:51 -07:00
committed by mobile promotions
parent adc2956568
commit 8057514a9f
13 changed files with 68 additions and 13 deletions

View File

@@ -1094,7 +1094,8 @@ static int nvgpu_dbg_gpu_ioctl_set_mmu_debug_mode(
return -EINVAL;
}
if (g->ops.gr.set_mmu_debug_mode == NULL) {
if ((g->ops.fb.set_mmu_debug_mode == NULL) &&
(g->ops.gr.set_mmu_debug_mode == NULL)) {
return -ENOSYS;
}