Files
linux-nvgpu/drivers/gpu/nvgpu/os/linux
Thomas Fleury af2ccb811d gpu: nvgpu: add SET_CTX_MMU_DEBUG_MODE ioctl
Added NVGPU_DBG_GPU_IOCTL_SET_CTX_MMU_DEBUG_MODE ioctl to set MMU
debug mode for a given context.

Added gr.set_mmu_debug_mode HAL to change NV_PGPC_PRI_MMU_DEBUG_CTRL
for a given channel. HAL implementation for native case is
gm20b_gr_set_mmu_debug_mode. It internally uses regops, which directly
writes to the register if the context is resident, or writes to
gr context otherwise.

Added NVGPU_SUPPORT_SET_CTX_MMU_DEBUG_MODE to enable the feature.
NV_PGPC_PRI_MMU_DEBUG_CTRL has to be context switched in FECS ucode,
so the feature is only enabled on TU104 for now.

Bug 2515097

Change-Id: Ib4efaf06fc47a8539b4474f94c68c20ce225263f
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2110720
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2019-05-16 15:15:18 -07:00
..
2019-05-06 16:46:00 -07:00
2018-06-27 07:30:06 -07:00
2019-04-22 03:15:09 -07:00
2019-05-08 07:45:01 -07:00
2019-02-01 09:45:57 -08:00
2018-07-05 21:48:44 -07:00
2019-05-16 04:29:50 -07:00
2019-02-11 20:55:07 -08:00
2018-12-13 04:56:14 -08:00
2019-04-10 06:03:59 -07:00
2018-10-24 23:16:20 -07:00