summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b
diff options
context:
space:
mode:
authorDebarshi Dutta <ddutta@nvidia.com>2018-07-27 01:47:41 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-30 14:24:06 -0400
commit82a90170d3ecbed5106409546f33afa5eaea3ddf (patch)
tree11a9239c15d52fce7c903fe5c23db42be30f782b /drivers/gpu/nvgpu/gv11b
parent4cbec6b2c7f74f309fb4bc5d4981c42ae6ea3bcd (diff)
gk20a: nvgpu: Remove io.h dependency from gk20a.h
In the current code, gk20a.h includes io.h which gets directly included in a lot of other files. io.h contains methods which uses a struct gk20a as a parameter leading to a circular dependency between io.h and gk20a.h. This can be mitigated by removing io.h from gk20a.h as part of larger effort to moving gk20a.h to nvgpu/gk20a.h JIRA NVGPU-597 Change-Id: I93e504fa9371b88152737b342a75580c65e8f712 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1787316 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r--drivers/gpu/nvgpu/gv11b/acr_gv11b.c1
-rw-r--r--drivers/gpu/nvgpu/gv11b/ce_gv11b.c3
-rw-r--r--drivers/gpu/nvgpu/gv11b/css_gr_gv11b.c1
-rw-r--r--drivers/gpu/nvgpu/gv11b/dbg_gpu_gv11b.c1
-rw-r--r--drivers/gpu/nvgpu/gv11b/fifo_gv11b.c1
-rw-r--r--drivers/gpu/nvgpu/gv11b/gr_gv11b.c1
-rw-r--r--drivers/gpu/nvgpu/gv11b/ltc_gv11b.c1
-rw-r--r--drivers/gpu/nvgpu/gv11b/mc_gv11b.c1
-rw-r--r--drivers/gpu/nvgpu/gv11b/pmu_gv11b.c1
-rw-r--r--drivers/gpu/nvgpu/gv11b/therm_gv11b.c1
10 files changed, 11 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/acr_gv11b.c b/drivers/gpu/nvgpu/gv11b/acr_gv11b.c
index 7fe3a2ea..696eb015 100644
--- a/drivers/gpu/nvgpu/gv11b/acr_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/acr_gv11b.c
@@ -31,6 +31,7 @@
31#include <nvgpu/mm.h> 31#include <nvgpu/mm.h>
32#include <nvgpu/acr/nvgpu_acr.h> 32#include <nvgpu/acr/nvgpu_acr.h>
33#include <nvgpu/enabled.h> 33#include <nvgpu/enabled.h>
34#include <nvgpu/io.h>
34 35
35#include "gk20a/gk20a.h" 36#include "gk20a/gk20a.h"
36#include "acr_gv11b.h" 37#include "acr_gv11b.h"
diff --git a/drivers/gpu/nvgpu/gv11b/ce_gv11b.c b/drivers/gpu/nvgpu/gv11b/ce_gv11b.c
index 86518ac7..0183aff0 100644
--- a/drivers/gpu/nvgpu/gv11b/ce_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/ce_gv11b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Volta GPU series Copy Engine. 2 * Volta GPU series Copy Engine.
3 * 3 *
4 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"), 7 * copy of this software and associated documentation files (the "Software"),
@@ -22,6 +22,7 @@
22 * DEALINGS IN THE SOFTWARE. 22 * DEALINGS IN THE SOFTWARE.
23 */ 23 */
24 24
25#include <nvgpu/io.h>
25#include "nvgpu/log.h" 26#include "nvgpu/log.h"
26#include "nvgpu/bitops.h" 27#include "nvgpu/bitops.h"
27 28
diff --git a/drivers/gpu/nvgpu/gv11b/css_gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/css_gr_gv11b.c
index 7f03be64..4ab50244 100644
--- a/drivers/gpu/nvgpu/gv11b/css_gr_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/css_gr_gv11b.c
@@ -33,6 +33,7 @@
33#include <nvgpu/nvgpu_mem.h> 33#include <nvgpu/nvgpu_mem.h>
34#include <nvgpu/bug.h> 34#include <nvgpu/bug.h>
35#include <nvgpu/dma.h> 35#include <nvgpu/dma.h>
36#include <nvgpu/io.h>
36 37
37#include "gk20a/gk20a.h" 38#include "gk20a/gk20a.h"
38#include "gk20a/css_gr_gk20a.h" 39#include "gk20a/css_gr_gk20a.h"
diff --git a/drivers/gpu/nvgpu/gv11b/dbg_gpu_gv11b.c b/drivers/gpu/nvgpu/gv11b/dbg_gpu_gv11b.c
index 5dea7654..0ab6d445 100644
--- a/drivers/gpu/nvgpu/gv11b/dbg_gpu_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/dbg_gpu_gv11b.c
@@ -23,6 +23,7 @@
23 */ 23 */
24 24
25#include <nvgpu/log.h> 25#include <nvgpu/log.h>
26#include <nvgpu/io.h>
26#include "gk20a/gk20a.h" 27#include "gk20a/gk20a.h"
27#include "gv11b/dbg_gpu_gv11b.h" 28#include "gv11b/dbg_gpu_gv11b.h"
28#include <nvgpu/hw/gv11b/hw_perf_gv11b.h> 29#include <nvgpu/hw/gv11b/hw_perf_gv11b.h>
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
index 548371d6..d1bd7111 100644
--- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
@@ -37,6 +37,7 @@
37#include <nvgpu/ctxsw_trace.h> 37#include <nvgpu/ctxsw_trace.h>
38#include <nvgpu/io_usermode.h> 38#include <nvgpu/io_usermode.h>
39#include <nvgpu/ptimer.h> 39#include <nvgpu/ptimer.h>
40#include <nvgpu/io.h>
40 41
41#include "gk20a/gk20a.h" 42#include "gk20a/gk20a.h"
42#include "gk20a/fifo_gk20a.h" 43#include "gk20a/fifo_gk20a.h"
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
index 51588f1f..2fd7b8ee 100644
--- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
@@ -32,6 +32,7 @@
32#include <nvgpu/bug.h> 32#include <nvgpu/bug.h>
33#include <nvgpu/error_notifier.h> 33#include <nvgpu/error_notifier.h>
34#include <nvgpu/soc.h> 34#include <nvgpu/soc.h>
35#include <nvgpu/io.h>
35 36
36#include "gk20a/gk20a.h" 37#include "gk20a/gk20a.h"
37#include "gk20a/gr_gk20a.h" 38#include "gk20a/gr_gk20a.h"
diff --git a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c
index a040de23..673f1493 100644
--- a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c
@@ -22,6 +22,7 @@
22 * DEALINGS IN THE SOFTWARE. 22 * DEALINGS IN THE SOFTWARE.
23 */ 23 */
24 24
25#include <nvgpu/io.h>
25#include "gk20a/gk20a.h" 26#include "gk20a/gk20a.h"
26#include "gp10b/ltc_gp10b.h" 27#include "gp10b/ltc_gp10b.h"
27 28
diff --git a/drivers/gpu/nvgpu/gv11b/mc_gv11b.c b/drivers/gpu/nvgpu/gv11b/mc_gv11b.c
index bc802c2d..c8072d13 100644
--- a/drivers/gpu/nvgpu/gv11b/mc_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/mc_gv11b.c
@@ -23,6 +23,7 @@
23 */ 23 */
24 24
25#include <nvgpu/types.h> 25#include <nvgpu/types.h>
26#include <nvgpu/io.h>
26 27
27#include "gk20a/gk20a.h" 28#include "gk20a/gk20a.h"
28 29
diff --git a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c
index 9a2e9c00..d3d95439 100644
--- a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c
@@ -26,6 +26,7 @@
26#include <nvgpu/falcon.h> 26#include <nvgpu/falcon.h>
27#include <nvgpu/enabled.h> 27#include <nvgpu/enabled.h>
28#include <nvgpu/mm.h> 28#include <nvgpu/mm.h>
29#include <nvgpu/io.h>
29 30
30#include "gk20a/gk20a.h" 31#include "gk20a/gk20a.h"
31 32
diff --git a/drivers/gpu/nvgpu/gv11b/therm_gv11b.c b/drivers/gpu/nvgpu/gv11b/therm_gv11b.c
index 981009ad..cce4e4a8 100644
--- a/drivers/gpu/nvgpu/gv11b/therm_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/therm_gv11b.c
@@ -26,6 +26,7 @@
26#include "therm_gv11b.h" 26#include "therm_gv11b.h"
27 27
28#include <nvgpu/soc.h> 28#include <nvgpu/soc.h>
29#include <nvgpu/io.h>
29 30
30#include <nvgpu/hw/gv11b/hw_therm_gv11b.h> 31#include <nvgpu/hw/gv11b/hw_therm_gv11b.h>
31 32