summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/os/linux/vgpu
diff options
context:
space:
mode:
authorVaibhav Kachore <vkachore@nvidia.com>2018-08-20 05:18:33 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-31 15:16:01 -0400
commiteb97fc52a96887d9d85cbdc18eaa7d72eade43b2 (patch)
treea909a9d48a062db33ffa44162377274aa05dcdd7 /drivers/gpu/nvgpu/os/linux/vgpu
parent8c8cdacf7a022d1326ec519daa8b8da174aa8f3d (diff)
gpu: nvgpu: remove use of nvgpu_ctxsw_trace_entry
- Remove the usage of nvgpu_ctxsw_trace_entry splattered across nvgpu, and replace with a struct 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 "asm/barrier.h" as "nvgpu/barrier.h" is already included. EVLR-3078 Change-Id: Iabfb105b891b0078ed326a8047ef14ebe1888cf2 Signed-off-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1803208 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/vgpu')
-rw-r--r--drivers/gpu/nvgpu/os/linux/vgpu/fecs_trace_vgpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/vgpu/fecs_trace_vgpu.c b/drivers/gpu/nvgpu/os/linux/vgpu/fecs_trace_vgpu.c
index 6339aef9..255ee2bd 100644
--- a/drivers/gpu/nvgpu/os/linux/vgpu/fecs_trace_vgpu.c
+++ b/drivers/gpu/nvgpu/os/linux/vgpu/fecs_trace_vgpu.c
@@ -26,12 +26,13 @@
26 26
27#include "gk20a/gk20a.h" 27#include "gk20a/gk20a.h"
28#include "os/linux/os_linux.h" 28#include "os/linux/os_linux.h"
29#include "gk20a/fecs_trace_gk20a.h"
29#include "vgpu/fecs_trace_vgpu.h" 30#include "vgpu/fecs_trace_vgpu.h"
30 31
31struct vgpu_fecs_trace { 32struct vgpu_fecs_trace {
32 struct tegra_hv_ivm_cookie *cookie; 33 struct tegra_hv_ivm_cookie *cookie;
33 struct nvgpu_ctxsw_ring_header *header; 34 struct nvgpu_ctxsw_ring_header *header;
34 struct nvgpu_ctxsw_trace_entry *entries; 35 struct nvgpu_gpu_ctxsw_trace_entry *entries;
35 int num_entries; 36 int num_entries;
36 bool enabled; 37 bool enabled;
37 void *buf; 38 void *buf;