summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100
diff options
context:
space:
mode:
authorShashank Singh <shashsingh@nvidia.com>2018-02-28 05:47:15 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-04-10 12:43:51 -0400
commite1200259ba3ad4ae416990b2f2abccb94565430f (patch)
tree4b53dbb0bc4787741b8c45a868026fd4960a204e /drivers/gpu/nvgpu/gv100
parentd693952a0b52127f23093c28a2896a3fd395485b (diff)
gpu: nvgpu: fix misc issue for dgpu code on QNX build
- QNX is pulling dgpu code from linux which has multiple build failure on QNX. Like QNX needs explicit declaration for all non-static functions. Some linux specific headers need to be put under __KERNEL__ flag. Change-Id: I15af1a1f6a069c82f9a81449f4f7c7d48612de42 Signed-off-by: Shashank Singh <shashsingh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1665752 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv100')
-rw-r--r--drivers/gpu/nvgpu/gv100/mc_gv100.c2
-rw-r--r--drivers/gpu/nvgpu/gv100/nvlink_gv100.c4
-rw-r--r--drivers/gpu/nvgpu/gv100/pmu_gv100.c1
3 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv100/mc_gv100.c b/drivers/gpu/nvgpu/gv100/mc_gv100.c
index a3f8ab06..5848a180 100644
--- a/drivers/gpu/nvgpu/gv100/mc_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/mc_gv100.c
@@ -22,7 +22,7 @@
22 * DEALINGS IN THE SOFTWARE. 22 * DEALINGS IN THE SOFTWARE.
23 */ 23 */
24 24
25#include <linux/types.h> 25#include <nvgpu/types.h>
26 26
27#include "gk20a/gk20a.h" 27#include "gk20a/gk20a.h"
28 28
diff --git a/drivers/gpu/nvgpu/gv100/nvlink_gv100.c b/drivers/gpu/nvgpu/gv100/nvlink_gv100.c
index d0dfebcf..d27239ae 100644
--- a/drivers/gpu/nvgpu/gv100/nvlink_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/nvlink_gv100.c
@@ -202,7 +202,7 @@ static const struct __nvlink_reginit __nvlink_reginit_per_link_gpu[] = {
202 202
203#define NVL_DEVICE(str) nvlinkip_discovery_common_device_##str##_v() 203#define NVL_DEVICE(str) nvlinkip_discovery_common_device_##str##_v()
204 204
205const char * __gv100_device_type_to_str(u32 type) 205static const char *__gv100_device_type_to_str(u32 type)
206{ 206{
207 if (type == NVL_DEVICE(ioctrl)) 207 if (type == NVL_DEVICE(ioctrl))
208 return "IOCTRL"; 208 return "IOCTRL";
@@ -1259,7 +1259,7 @@ static void gv100_nvlink_nvlipt_intr_enable(struct gk20a *g, u32 link_id,
1259/* 1259/*
1260 * Per-link NVLIPT ISR handler 1260 * Per-link NVLIPT ISR handler
1261 */ 1261 */
1262bool gv100_nvlink_nvlipt_isr(struct gk20a *g, u32 link_id) 1262static bool gv100_nvlink_nvlipt_isr(struct gk20a *g, u32 link_id)
1263{ 1263{
1264 /* 1264 /*
1265 * Interrupt handling happens in leaf handlers. Assume all interrupts 1265 * Interrupt handling happens in leaf handlers. Assume all interrupts
diff --git a/drivers/gpu/nvgpu/gv100/pmu_gv100.c b/drivers/gpu/nvgpu/gv100/pmu_gv100.c
index 113e554b..9317f6b4 100644
--- a/drivers/gpu/nvgpu/gv100/pmu_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/pmu_gv100.c
@@ -25,6 +25,7 @@
25#include <nvgpu/pmu.h> 25#include <nvgpu/pmu.h>
26 26
27#include "gk20a/gk20a.h" 27#include "gk20a/gk20a.h"
28#include "gv100/pmu_gv100.h"
28 29
29int gv100_pmu_init_acr(struct gk20a *g) 30int gv100_pmu_init_acr(struct gk20a *g)
30{ 31{