summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106
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/gp106
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/gp106')
-rw-r--r--drivers/gpu/nvgpu/gp106/acr_gp106.c1
-rw-r--r--drivers/gpu/nvgpu/gp106/bios_gp106.c1
-rw-r--r--drivers/gpu/nvgpu/gp106/clk_gp106.c1
-rw-r--r--drivers/gpu/nvgpu/gp106/fuse_gp106.c1
-rw-r--r--drivers/gpu/nvgpu/gp106/gr_gp106.c2
-rw-r--r--drivers/gpu/nvgpu/gp106/mclk_gp106.c1
-rw-r--r--drivers/gpu/nvgpu/gp106/mm_gp106.c3
-rw-r--r--drivers/gpu/nvgpu/gp106/pmu_gp106.c1
-rw-r--r--drivers/gpu/nvgpu/gp106/sec2_gp106.c1
-rw-r--r--drivers/gpu/nvgpu/gp106/therm_gp106.c1
-rw-r--r--drivers/gpu/nvgpu/gp106/xve_gp106.c1
11 files changed, 13 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp106/acr_gp106.c b/drivers/gpu/nvgpu/gp106/acr_gp106.c
index 2b50d339..63386547 100644
--- a/drivers/gpu/nvgpu/gp106/acr_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/acr_gp106.c
@@ -27,6 +27,7 @@
27#include <nvgpu/firmware.h> 27#include <nvgpu/firmware.h>
28#include <nvgpu/pmu.h> 28#include <nvgpu/pmu.h>
29#include <nvgpu/enabled.h> 29#include <nvgpu/enabled.h>
30#include <nvgpu/io.h>
30 31
31#include "gk20a/gk20a.h" 32#include "gk20a/gk20a.h"
32#include "gk20a/pmu_gk20a.h" 33#include "gk20a/pmu_gk20a.h"
diff --git a/drivers/gpu/nvgpu/gp106/bios_gp106.c b/drivers/gpu/nvgpu/gp106/bios_gp106.c
index 09d7b9af..deeae2fe 100644
--- a/drivers/gpu/nvgpu/gp106/bios_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/bios_gp106.c
@@ -26,6 +26,7 @@
26#include <nvgpu/timers.h> 26#include <nvgpu/timers.h>
27#include <nvgpu/falcon.h> 27#include <nvgpu/falcon.h>
28#include <nvgpu/enabled.h> 28#include <nvgpu/enabled.h>
29#include <nvgpu/io.h>
29 30
30#include "gk20a/gk20a.h" 31#include "gk20a/gk20a.h"
31#include "gm20b/fifo_gm20b.h" 32#include "gm20b/fifo_gm20b.h"
diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.c b/drivers/gpu/nvgpu/gp106/clk_gp106.c
index 2c529e52..b1fa7cad 100644
--- a/drivers/gpu/nvgpu/gp106/clk_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/clk_gp106.c
@@ -28,6 +28,7 @@
28#endif 28#endif
29 29
30#include <nvgpu/kmem.h> 30#include <nvgpu/kmem.h>
31#include <nvgpu/io.h>
31 32
32#include "gk20a/gk20a.h" 33#include "gk20a/gk20a.h"
33#include "gp106/mclk_gp106.h" 34#include "gp106/mclk_gp106.h"
diff --git a/drivers/gpu/nvgpu/gp106/fuse_gp106.c b/drivers/gpu/nvgpu/gp106/fuse_gp106.c
index 0303830c..82e3217f 100644
--- a/drivers/gpu/nvgpu/gp106/fuse_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/fuse_gp106.c
@@ -23,6 +23,7 @@
23 */ 23 */
24 24
25#include <nvgpu/enabled.h> 25#include <nvgpu/enabled.h>
26#include <nvgpu/io.h>
26 27
27#include "gk20a/gk20a.h" 28#include "gk20a/gk20a.h"
28#include "gp106/fuse_gp106.h" 29#include "gp106/fuse_gp106.h"
diff --git a/drivers/gpu/nvgpu/gp106/gr_gp106.c b/drivers/gpu/nvgpu/gp106/gr_gp106.c
index 2e5f29ee..233357c8 100644
--- a/drivers/gpu/nvgpu/gp106/gr_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/gr_gp106.c
@@ -29,6 +29,8 @@
29#include "gm20b/gr_gm20b.h" 29#include "gm20b/gr_gm20b.h"
30#include "gp10b/gr_gp10b.h" 30#include "gp10b/gr_gp10b.h"
31 31
32#include <nvgpu/io.h>
33
32#include "gr_gp106.h" 34#include "gr_gp106.h"
33 35
34#include <nvgpu/hw/gp106/hw_gr_gp106.h> 36#include <nvgpu/hw/gp106/hw_gr_gp106.h>
diff --git a/drivers/gpu/nvgpu/gp106/mclk_gp106.c b/drivers/gpu/nvgpu/gp106/mclk_gp106.c
index 4ea9e6f6..d4d3f370 100644
--- a/drivers/gpu/nvgpu/gp106/mclk_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/mclk_gp106.c
@@ -24,6 +24,7 @@
24#include <nvgpu/bios.h> 24#include <nvgpu/bios.h>
25#include <nvgpu/kmem.h> 25#include <nvgpu/kmem.h>
26#include <nvgpu/timers.h> 26#include <nvgpu/timers.h>
27#include <nvgpu/io.h>
27 28
28#include "gk20a/gk20a.h" 29#include "gk20a/gk20a.h"
29#ifdef CONFIG_DEBUG_FS 30#ifdef CONFIG_DEBUG_FS
diff --git a/drivers/gpu/nvgpu/gp106/mm_gp106.c b/drivers/gpu/nvgpu/gp106/mm_gp106.c
index 88482a6f..4a3a4a19 100644
--- a/drivers/gpu/nvgpu/gp106/mm_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/mm_gp106.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GP106 memory management 2 * GP106 memory management
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"),
@@ -23,6 +23,7 @@
23 */ 23 */
24 24
25#include <nvgpu/sizes.h> 25#include <nvgpu/sizes.h>
26#include <nvgpu/io.h>
26 27
27#include "gk20a/gk20a.h" 28#include "gk20a/gk20a.h"
28#include "gp10b/mm_gp10b.h" 29#include "gp10b/mm_gp10b.h"
diff --git a/drivers/gpu/nvgpu/gp106/pmu_gp106.c b/drivers/gpu/nvgpu/gp106/pmu_gp106.c
index 2a52dd4e..005523dc 100644
--- a/drivers/gpu/nvgpu/gp106/pmu_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/pmu_gp106.c
@@ -22,6 +22,7 @@
22 22
23#include <nvgpu/pmu.h> 23#include <nvgpu/pmu.h>
24#include <nvgpu/enabled.h> 24#include <nvgpu/enabled.h>
25#include <nvgpu/io.h>
25 26
26#include "gk20a/gk20a.h" 27#include "gk20a/gk20a.h"
27#include "gk20a/pmu_gk20a.h" 28#include "gk20a/pmu_gk20a.h"
diff --git a/drivers/gpu/nvgpu/gp106/sec2_gp106.c b/drivers/gpu/nvgpu/gp106/sec2_gp106.c
index 29fc2df0..6762d034 100644
--- a/drivers/gpu/nvgpu/gp106/sec2_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/sec2_gp106.c
@@ -23,6 +23,7 @@
23#include <nvgpu/pmu.h> 23#include <nvgpu/pmu.h>
24#include <nvgpu/falcon.h> 24#include <nvgpu/falcon.h>
25#include <nvgpu/mm.h> 25#include <nvgpu/mm.h>
26#include <nvgpu/io.h>
26 27
27#include "gk20a/gk20a.h" 28#include "gk20a/gk20a.h"
28#include "sec2_gp106.h" 29#include "sec2_gp106.h"
diff --git a/drivers/gpu/nvgpu/gp106/therm_gp106.c b/drivers/gpu/nvgpu/gp106/therm_gp106.c
index b1f6fefb..ab465e6c 100644
--- a/drivers/gpu/nvgpu/gp106/therm_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/therm_gp106.c
@@ -20,6 +20,7 @@
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22 22
23#include <nvgpu/io.h>
23#include "gk20a/gk20a.h" 24#include "gk20a/gk20a.h"
24 25
25#include "therm_gp106.h" 26#include "therm_gp106.h"
diff --git a/drivers/gpu/nvgpu/gp106/xve_gp106.c b/drivers/gpu/nvgpu/gp106/xve_gp106.c
index e77ea5c1..40b0ff04 100644
--- a/drivers/gpu/nvgpu/gp106/xve_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/xve_gp106.c
@@ -26,6 +26,7 @@
26 26
27#include <nvgpu/bug.h> 27#include <nvgpu/bug.h>
28#include <nvgpu/xve.h> 28#include <nvgpu/xve.h>
29#include <nvgpu/io.h>
29 30
30#include <nvgpu/hw/gp106/hw_xp_gp106.h> 31#include <nvgpu/hw/gp106/hw_xp_gp106.h>
31#include <nvgpu/hw/gp106/hw_xve_gp106.h> 32#include <nvgpu/hw/gp106/hw_xve_gp106.h>