From 064ba6a7ef236a7bb1085715c6ab37810f230bbf Mon Sep 17 00:00:00 2001 From: Vaibhav Kachore Date: Mon, 20 Aug 2018 15:25:06 +0530 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1803209 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'drivers/gpu/nvgpu/include') 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; struct tsg_gk20a; struct channel_gk20a; +#define NVGPU_GPU_CTXSW_TAG_SOF 0x00 +#define NVGPU_GPU_CTXSW_TAG_CTXSW_REQ_BY_HOST 0x01 +#define NVGPU_GPU_CTXSW_TAG_FE_ACK 0x02 +#define NVGPU_GPU_CTXSW_TAG_FE_ACK_WFI 0x0a +#define NVGPU_GPU_CTXSW_TAG_FE_ACK_GFXP 0x0b +#define NVGPU_GPU_CTXSW_TAG_FE_ACK_CTAP 0x0c +#define NVGPU_GPU_CTXSW_TAG_FE_ACK_CILP 0x0d +#define NVGPU_GPU_CTXSW_TAG_SAVE_END 0x03 +#define NVGPU_GPU_CTXSW_TAG_RESTORE_START 0x04 +#define NVGPU_GPU_CTXSW_TAG_CONTEXT_START 0x05 +#define NVGPU_GPU_CTXSW_TAG_ENGINE_RESET 0xfe +#define NVGPU_GPU_CTXSW_TAG_INVALID_TIMESTAMP 0xff +#define NVGPU_GPU_CTXSW_TAG_LAST \ + NVGPU_GPU_CTXSW_TAG_INVALID_TIMESTAMP + /* * The binary format of 'struct nvgpu_gpu_ctxsw_trace_entry' introduced here * 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); int gk20a_ctxsw_dev_mmap_buffer(struct gk20a *g, struct vm_area_struct *vma); #endif +u8 nvgpu_gpu_ctxsw_tags_to_common_tags(u8 tags); + #endif -- cgit v1.2.2