summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-10-31 15:21:07 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-01 23:15:47 -0400
commit31e594befefe63d430885e340175b3f9549b8cc4 (patch)
treec3f2e879ec1e314d68aa455d37f5965edde26456 /drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.c
parent5eedf06bf56489bc559a08347f60a7680ccd6897 (diff)
gpu: nvgpu: Split ctxsw_trace API into non-Linux component
Split the ctxsw trace "core" API code into <nvgpu/ctxsw_trace.h>. This is not perect though since there's some Linuxisms present in the HAL and as such that code has to be hidden by the ctxsw tracing CONFIG. But this patch should work for QNX such that it will allow the code to build as long as CONFIG_GK20A_CTXSW_TRACE is not set. Also fix the copywrite notice in the ctxsw code present under common/linux to be GPL. JIRA NVGPU-287 Change-Id: I94715864caf335b7220185492e4629d713b025e0 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1589429 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.c b/drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.c
index 72f2ae8b..dc7608ff 100644
--- a/drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.c
@@ -24,12 +24,14 @@
24#include <linux/tegra-ivc.h> 24#include <linux/tegra-ivc.h>
25#include <linux/tegra_vgpu.h> 25#include <linux/tegra_vgpu.h>
26 26
27#include <uapi/linux/nvgpu.h>
28
27#include <nvgpu/kmem.h> 29#include <nvgpu/kmem.h>
28#include <nvgpu/bug.h> 30#include <nvgpu/bug.h>
29#include <nvgpu/enabled.h> 31#include <nvgpu/enabled.h>
32#include <nvgpu/ctxsw_trace.h>
30 33
31#include "gk20a/gk20a.h" 34#include "gk20a/gk20a.h"
32#include "gk20a/ctxsw_trace_gk20a.h"
33#include "vgpu.h" 35#include "vgpu.h"
34#include "fecs_trace_vgpu.h" 36#include "fecs_trace_vgpu.h"
35 37