summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorVaibhav Kachore <vkachore@nvidia.com>2018-08-20 07:29:45 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-31 15:16:19 -0400
commit7bf80a1c69a07f81225270e90a57a1c41d202859 (patch)
tree278ed4c9197997734bac69b5695a559ec5278082 /drivers/gpu/nvgpu/include
parent064ba6a7ef236a7bb1085715c6ab37810f230bbf (diff)
gpu: nvgpu: remove use of NVGPU_CTXSW_FILTER_ISSET
- Remove the usage of NVGPU_CTXSW_FILTER_ISSET splattered across nvgpu, and replace with a MACRO defined in common code. The usage is still inside Linux, but this helps the subsequent unification efforts, e.g. to unify the fecs trace path. - Remove "uapi/linux/nvgpu.h" from common code. EVLR-3078 Change-Id: I60b0e1627576a4b255671d58530d8c773ea6154c Signed-off-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1803210 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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h b/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h
index 9dd6833f..4eaf9bf0 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h
@@ -44,6 +44,15 @@ struct channel_gk20a;
44#define NVGPU_GPU_CTXSW_TAG_LAST \ 44#define NVGPU_GPU_CTXSW_TAG_LAST \
45 NVGPU_GPU_CTXSW_TAG_INVALID_TIMESTAMP 45 NVGPU_GPU_CTXSW_TAG_INVALID_TIMESTAMP
46 46
47#define NVGPU_GPU_CTXSW_FILTER_ISSET(n, p) \
48 ((p)->tag_bits[(n) / 64] & (1 << ((n) & 63)))
49
50#define NVGPU_GPU_CTXSW_FILTER_SIZE (NVGPU_GPU_CTXSW_TAG_LAST + 1)
51
52struct nvgpu_gpu_ctxsw_trace_filter {
53 u64 tag_bits[(NVGPU_GPU_CTXSW_FILTER_SIZE + 63) / 64];
54};
55
47/* 56/*
48 * The binary format of 'struct nvgpu_gpu_ctxsw_trace_entry' introduced here 57 * The binary format of 'struct nvgpu_gpu_ctxsw_trace_entry' introduced here
49 * should match that of 'struct nvgpu_ctxsw_trace_entry' defined in uapi 58 * should match that of 'struct nvgpu_ctxsw_trace_entry' defined in uapi