mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add debugger flag for regops support
Add NVGPU_DEBUGGER flag for regops API and hals Jira NVGPU-3505 Change-Id: I9f2b850c881bf05f8ba5b6ef1f59f0d73a948cde Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2130146 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
3d318e1d1d
commit
455b0da253
@@ -590,6 +590,7 @@ static int dbg_unbind_all_channels_gk20a(struct dbg_session_gk20a *dbg_s)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef NVGPU_DEBUGGER
|
||||
/*
|
||||
* Convert common regops op values of the form of NVGPU_DBG_REG_OP_*
|
||||
* into linux regops op values of the form of NVGPU_DBG_GPU_REG_OP_*
|
||||
@@ -934,6 +935,7 @@ static int nvgpu_ioctl_channel_reg_ops(struct dbg_session_gk20a *dbg_s,
|
||||
|
||||
return err;
|
||||
}
|
||||
#endif /* NVGPU_DEBUGGER */
|
||||
|
||||
static int nvgpu_ioctl_powergate_gk20a(struct dbg_session_gk20a *dbg_s,
|
||||
struct nvgpu_dbg_gpu_powergate_args *args)
|
||||
@@ -2036,10 +2038,12 @@ long gk20a_dbg_gpu_dev_ioctl(struct file *filp, unsigned int cmd,
|
||||
(struct nvgpu_dbg_gpu_bind_channel_args *)buf);
|
||||
break;
|
||||
|
||||
#ifdef NVGPU_DEBUGGER
|
||||
case NVGPU_DBG_GPU_IOCTL_REG_OPS:
|
||||
err = nvgpu_ioctl_channel_reg_ops(dbg_s,
|
||||
(struct nvgpu_dbg_gpu_exec_reg_ops_args *)buf);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case NVGPU_DBG_GPU_IOCTL_POWERGATE:
|
||||
err = nvgpu_ioctl_powergate_gk20a(dbg_s,
|
||||
|
||||
Reference in New Issue
Block a user