mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: Allow enabling PC sampling
Allow enabling of PC sampling hardware workaround. It is only applicable to gm20b. Bug 1517458 Bug 1573150 Change-Id: Iad6a3ae556489fb7ab9628637d291849d2cd98ea Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/710421
This commit is contained in:
committed by
Dan Willemsen
parent
1b6372ec6b
commit
325e0587d9
@@ -457,8 +457,20 @@ struct nvgpu_dbg_gpu_perfbuf_unmap_args {
|
||||
#define NVGPU_DBG_GPU_IOCTL_PERFBUF_UNMAP \
|
||||
_IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 8, struct nvgpu_dbg_gpu_perfbuf_unmap_args)
|
||||
|
||||
/* Enable/disable PC Sampling */
|
||||
struct nvgpu_dbg_gpu_pc_sampling_args {
|
||||
__u32 enable;
|
||||
__u32 _pad0[1];
|
||||
};
|
||||
|
||||
#define NVGPU_DBG_GPU_IOCTL_PC_SAMPLING_DISABLE 0
|
||||
#define NVGPU_DBG_GPU_IOCTL_PC_SAMPLING_ENABLE 1
|
||||
|
||||
#define NVGPU_DBG_GPU_IOCTL_PC_SAMPLING \
|
||||
_IOW(NVGPU_DBG_GPU_IOCTL_MAGIC, 9, struct nvgpu_dbg_gpu_pc_sampling_args)
|
||||
|
||||
#define NVGPU_DBG_GPU_IOCTL_LAST \
|
||||
_IOC_NR(NVGPU_DBG_GPU_IOCTL_PERFBUF_UNMAP)
|
||||
_IOC_NR(NVGPU_DBG_GPU_IOCTL_PC_SAMPLING)
|
||||
#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \
|
||||
sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user