summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorVaibhav Kachore <vkachore@nvidia.com>2018-08-20 05:55:06 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-31 15:16:10 -0400
commit064ba6a7ef236a7bb1085715c6ab37810f230bbf (patch)
tree007ab66696c49eda8dc02b1def57b69d3176dbc2 /drivers/gpu/nvgpu/include
parenteb97fc52a96887d9d85cbdc18eaa7d72eade43b2 (diff)
gpu: nvgpu: convert linux nvgpu ctxsw tags
Convert linux nvgpu ctxsw tags type of the form of NVGPU_CTXSW_TAG_* into common nvgpu ctxsw tags type of the form of NVGPU_GPU_CTXSW_TAG_* EVLR-3078 Change-Id: I337487722c103c05003457f74ad6e05bf3bd38fc Signed-off-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1803209 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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