summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h b/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h
index 6e54d1cc..9dd6833f 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h
@@ -29,6 +29,21 @@ struct gk20a;
29struct tsg_gk20a; 29struct tsg_gk20a;
30struct channel_gk20a; 30struct channel_gk20a;
31 31
32#define NVGPU_GPU_CTXSW_TAG_SOF 0x00
33#define NVGPU_GPU_CTXSW_TAG_CTXSW_REQ_BY_HOST 0x01
34#define NVGPU_GPU_CTXSW_TAG_FE_ACK 0x02
35#define NVGPU_GPU_CTXSW_TAG_FE_ACK_WFI 0x0a
36#define NVGPU_GPU_CTXSW_TAG_FE_ACK_GFXP 0x0b
37#define NVGPU_GPU_CTXSW_TAG_FE_ACK_CTAP 0x0c
38#define NVGPU_GPU_CTXSW_TAG_FE_ACK_CILP 0x0d
39#define NVGPU_GPU_CTXSW_TAG_SAVE_END 0x03
40#define NVGPU_GPU_CTXSW_TAG_RESTORE_START 0x04
41#define NVGPU_GPU_CTXSW_TAG_CONTEXT_START 0x05
42#define NVGPU_GPU_CTXSW_TAG_ENGINE_RESET 0xfe
43#define NVGPU_GPU_CTXSW_TAG_INVALID_TIMESTAMP 0xff
44#define NVGPU_GPU_CTXSW_TAG_LAST \
45 NVGPU_GPU_CTXSW_TAG_INVALID_TIMESTAMP
46
32/* 47/*
33 * The binary format of 'struct nvgpu_gpu_ctxsw_trace_entry' introduced here 48 * The binary format of 'struct nvgpu_gpu_ctxsw_trace_entry' introduced here
34 * should match that of 'struct nvgpu_ctxsw_trace_entry' defined in uapi 49 * should match that of 'struct nvgpu_ctxsw_trace_entry' defined in uapi
@@ -64,4 +79,6 @@ int gk20a_ctxsw_dev_ring_free(struct gk20a *g);
64int gk20a_ctxsw_dev_mmap_buffer(struct gk20a *g, struct vm_area_struct *vma); 79int gk20a_ctxsw_dev_mmap_buffer(struct gk20a *g, struct vm_area_struct *vma);
65#endif 80#endif
66 81
82u8 nvgpu_gpu_ctxsw_tags_to_common_tags(u8 tags);
83
67#endif 84#endif