diff options
author | Vaibhav Kachore <vkachore@nvidia.com> | 2018-08-20 07:29:45 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-31 15:16:19 -0400 |
commit | 7bf80a1c69a07f81225270e90a57a1c41d202859 (patch) | |
tree | 278ed4c9197997734bac69b5695a559ec5278082 /drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |
parent | 064ba6a7ef236a7bb1085715c6ab37810f230bbf (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/gk20a/fecs_trace_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c index e775c10b..453d5b2f 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #ifdef CONFIG_DEBUG_FS | 23 | #ifdef CONFIG_DEBUG_FS |
24 | #include <linux/debugfs.h> | 24 | #include <linux/debugfs.h> |
25 | #endif | 25 | #endif |
26 | #include <uapi/linux/nvgpu.h> | ||
27 | 26 | ||
28 | #include <nvgpu/kmem.h> | 27 | #include <nvgpu/kmem.h> |
29 | #include <nvgpu/dma.h> | 28 | #include <nvgpu/dma.h> |
@@ -738,14 +737,14 @@ int gk20a_fecs_trace_deinit(struct gk20a *g) | |||
738 | } | 737 | } |
739 | 738 | ||
740 | int gk20a_gr_max_entries(struct gk20a *g, | 739 | int gk20a_gr_max_entries(struct gk20a *g, |
741 | struct nvgpu_ctxsw_trace_filter *filter) | 740 | struct nvgpu_gpu_ctxsw_trace_filter *filter) |
742 | { | 741 | { |
743 | int n; | 742 | int n; |
744 | int tag; | 743 | int tag; |
745 | 744 | ||
746 | /* Compute number of entries per record, with given filter */ | 745 | /* Compute number of entries per record, with given filter */ |
747 | for (n = 0, tag = 0; tag < gk20a_fecs_trace_num_ts(); tag++) | 746 | for (n = 0, tag = 0; tag < gk20a_fecs_trace_num_ts(); tag++) |
748 | n += (NVGPU_CTXSW_FILTER_ISSET(tag, filter) != 0); | 747 | n += (NVGPU_GPU_CTXSW_FILTER_ISSET(tag, filter) != 0); |
749 | 748 | ||
750 | /* Return max number of entries generated for the whole ring */ | 749 | /* Return max number of entries generated for the whole ring */ |
751 | return n * GK20A_FECS_TRACE_NUM_RECORDS; | 750 | return n * GK20A_FECS_TRACE_NUM_RECORDS; |