summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/fb
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/common/fb
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/common/fb')
-rw-r--r--drivers/gpu/nvgpu/common/fb/fb_gk20a.c1
-rw-r--r--drivers/gpu/nvgpu/common/fb/fb_gm20b.c2
-rw-r--r--drivers/gpu/nvgpu/common/fb/fb_gp106.c2
-rw-r--r--drivers/gpu/nvgpu/common/fb/fb_gv100.c1
-rw-r--r--drivers/gpu/nvgpu/common/fb/fb_gv11b.c1
5 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/fb/fb_gk20a.c b/drivers/gpu/nvgpu/common/fb/fb_gk20a.c
index d27ac9d0..14634923 100644
--- a/drivers/gpu/nvgpu/common/fb/fb_gk20a.c
+++ b/drivers/gpu/nvgpu/common/fb/fb_gk20a.c
@@ -29,6 +29,7 @@
29#include "fb_gk20a.h" 29#include "fb_gk20a.h"
30 30
31#include <nvgpu/timers.h> 31#include <nvgpu/timers.h>
32#include <nvgpu/io.h>
32 33
33#include <nvgpu/hw/gk20a/hw_mc_gk20a.h> 34#include <nvgpu/hw/gk20a/hw_mc_gk20a.h>
34#include <nvgpu/hw/gk20a/hw_fb_gk20a.h> 35#include <nvgpu/hw/gk20a/hw_fb_gk20a.h>
diff --git a/drivers/gpu/nvgpu/common/fb/fb_gm20b.c b/drivers/gpu/nvgpu/common/fb/fb_gm20b.c
index bd093b31..00ae7b5f 100644
--- a/drivers/gpu/nvgpu/common/fb/fb_gm20b.c
+++ b/drivers/gpu/nvgpu/common/fb/fb_gm20b.c
@@ -29,6 +29,8 @@
29#include "fb_gk20a.h" 29#include "fb_gk20a.h"
30#include "fb_gm20b.h" 30#include "fb_gm20b.h"
31 31
32#include <nvgpu/io.h>
33
32#include <nvgpu/hw/gm20b/hw_fb_gm20b.h> 34#include <nvgpu/hw/gm20b/hw_fb_gm20b.h>
33#include <nvgpu/hw/gm20b/hw_top_gm20b.h> 35#include <nvgpu/hw/gm20b/hw_top_gm20b.h>
34#include <nvgpu/hw/gm20b/hw_gmmu_gm20b.h> 36#include <nvgpu/hw/gm20b/hw_gmmu_gm20b.h>
diff --git a/drivers/gpu/nvgpu/common/fb/fb_gp106.c b/drivers/gpu/nvgpu/common/fb/fb_gp106.c
index 6f257db4..094f9fa4 100644
--- a/drivers/gpu/nvgpu/common/fb/fb_gp106.c
+++ b/drivers/gpu/nvgpu/common/fb/fb_gp106.c
@@ -25,6 +25,8 @@
25#include "fb_gp10b.h" 25#include "fb_gp10b.h"
26#include "fb_gp106.h" 26#include "fb_gp106.h"
27 27
28#include <nvgpu/io.h>
29
28#include <nvgpu/hw/gp106/hw_fb_gp106.h> 30#include <nvgpu/hw/gp106/hw_fb_gp106.h>
29 31
30#define HW_SCRUB_TIMEOUT_DEFAULT 100 /* usec */ 32#define HW_SCRUB_TIMEOUT_DEFAULT 100 /* usec */
diff --git a/drivers/gpu/nvgpu/common/fb/fb_gv100.c b/drivers/gpu/nvgpu/common/fb/fb_gv100.c
index 155c1e8b..8857f02b 100644
--- a/drivers/gpu/nvgpu/common/fb/fb_gv100.c
+++ b/drivers/gpu/nvgpu/common/fb/fb_gv100.c
@@ -35,6 +35,7 @@
35#include <nvgpu/firmware.h> 35#include <nvgpu/firmware.h>
36#include <nvgpu/pmu.h> 36#include <nvgpu/pmu.h>
37#include <nvgpu/falcon.h> 37#include <nvgpu/falcon.h>
38#include <nvgpu/io.h>
38 39
39#include "gk20a/gk20a.h" 40#include "gk20a/gk20a.h"
40#include "gm20b/acr_gm20b.h" 41#include "gm20b/acr_gm20b.h"
diff --git a/drivers/gpu/nvgpu/common/fb/fb_gv11b.c b/drivers/gpu/nvgpu/common/fb/fb_gv11b.c
index a7e5de68..664b2dd1 100644
--- a/drivers/gpu/nvgpu/common/fb/fb_gv11b.c
+++ b/drivers/gpu/nvgpu/common/fb/fb_gv11b.c
@@ -30,6 +30,7 @@
30#include <nvgpu/bug.h> 30#include <nvgpu/bug.h>
31#include <nvgpu/soc.h> 31#include <nvgpu/soc.h>
32#include <nvgpu/ptimer.h> 32#include <nvgpu/ptimer.h>
33#include <nvgpu/io.h>
33 34
34#include "gk20a/gk20a.h" 35#include "gk20a/gk20a.h"
35#include "gk20a/mm_gk20a.h" 36#include "gk20a/mm_gk20a.h"