diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2018-08-21 05:43:14 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-24 17:57:44 -0400 |
commit | 390185200fd505fb0b36bed993d67f1a21f47c24 (patch) | |
tree | 063e6c5ee838bf2c93770ef132bd7d7bb36e17f9 | |
parent | 0c387d76dcc7e665255200ba8d98b9abb11cb4a1 (diff) |
gpu: nvgpu: clean up channel header includes
Remove a few unnecessary includes from channel_gk20a.h and add them to c
files where needed.
Jira NVGPU-967
Change-Id: Ic38132c776a56b6966424806faab7871575b6c10
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1804609
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r-- | drivers/gpu/nvgpu/common/ce2.c | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/fifo/channel.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/fifo/submit.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/vidmem.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ce2_gk20a.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 9 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/fifo_gp10b.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/dmabuf.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ioctl_channel.c | 1 |
10 files changed, 14 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/common/ce2.c b/drivers/gpu/nvgpu/common/ce2.c index d4793ef6..342f046c 100644 --- a/drivers/gpu/nvgpu/common/ce2.c +++ b/drivers/gpu/nvgpu/common/ce2.c | |||
@@ -26,8 +26,9 @@ | |||
26 | 26 | ||
27 | #include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h> | 27 | #include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h> |
28 | 28 | ||
29 | #include "gk20a/ce2_gk20a.h" | ||
30 | #include "gk20a/gk20a.h" | 29 | #include "gk20a/gk20a.h" |
30 | #include "gk20a/ce2_gk20a.h" | ||
31 | #include "gk20a/fence_gk20a.h" | ||
31 | 32 | ||
32 | static inline int gk20a_get_valid_launch_flags(struct gk20a *g, int launch_flags) | 33 | static inline int gk20a_get_valid_launch_flags(struct gk20a *g, int launch_flags) |
33 | { | 34 | { |
diff --git a/drivers/gpu/nvgpu/common/fifo/channel.c b/drivers/gpu/nvgpu/common/fifo/channel.c index 5966e191..7a496ea1 100644 --- a/drivers/gpu/nvgpu/common/fifo/channel.c +++ b/drivers/gpu/nvgpu/common/fifo/channel.c | |||
@@ -47,6 +47,7 @@ | |||
47 | #include "gk20a/gk20a.h" | 47 | #include "gk20a/gk20a.h" |
48 | #include "gk20a/dbg_gpu_gk20a.h" | 48 | #include "gk20a/dbg_gpu_gk20a.h" |
49 | #include "gk20a/fence_gk20a.h" | 49 | #include "gk20a/fence_gk20a.h" |
50 | #include "gk20a/channel_sync_gk20a.h" | ||
50 | 51 | ||
51 | static void free_channel(struct fifo_gk20a *f, struct channel_gk20a *c); | 52 | static void free_channel(struct fifo_gk20a *f, struct channel_gk20a *c); |
52 | static void gk20a_channel_dump_ref_actions(struct channel_gk20a *c); | 53 | static void gk20a_channel_dump_ref_actions(struct channel_gk20a *c); |
diff --git a/drivers/gpu/nvgpu/common/fifo/submit.c b/drivers/gpu/nvgpu/common/fifo/submit.c index 47b086f7..e0f31233 100644 --- a/drivers/gpu/nvgpu/common/fifo/submit.c +++ b/drivers/gpu/nvgpu/common/fifo/submit.c | |||
@@ -29,6 +29,8 @@ | |||
29 | 29 | ||
30 | #include "gk20a/gk20a.h" | 30 | #include "gk20a/gk20a.h" |
31 | #include "gk20a/channel_gk20a.h" | 31 | #include "gk20a/channel_gk20a.h" |
32 | #include "gk20a/fence_gk20a.h" | ||
33 | #include "gk20a/channel_sync_gk20a.h" | ||
32 | 34 | ||
33 | #include <trace/events/gk20a.h> | 35 | #include <trace/events/gk20a.h> |
34 | 36 | ||
diff --git a/drivers/gpu/nvgpu/common/mm/vidmem.c b/drivers/gpu/nvgpu/common/mm/vidmem.c index febf6830..28a46ff0 100644 --- a/drivers/gpu/nvgpu/common/mm/vidmem.c +++ b/drivers/gpu/nvgpu/common/mm/vidmem.c | |||
@@ -30,6 +30,7 @@ | |||
30 | 30 | ||
31 | #include "gk20a/gk20a.h" | 31 | #include "gk20a/gk20a.h" |
32 | #include "gk20a/mm_gk20a.h" | 32 | #include "gk20a/mm_gk20a.h" |
33 | #include "gk20a/fence_gk20a.h" | ||
33 | 34 | ||
34 | /* | 35 | /* |
35 | * This is expected to be called from the shutdown path (or the error path in | 36 | * This is expected to be called from the shutdown path (or the error path in |
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c index 0248b0ca..f905243e 100644 --- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <nvgpu/utils.h> | 31 | #include <nvgpu/utils.h> |
32 | 32 | ||
33 | #include "gk20a.h" | 33 | #include "gk20a.h" |
34 | #include "gk20a/fence_gk20a.h" | ||
34 | 35 | ||
35 | #include <nvgpu/hw/gk20a/hw_ce2_gk20a.h> | 36 | #include <nvgpu/hw/gk20a/hw_ce2_gk20a.h> |
36 | #include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h> | 37 | #include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h> |
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index 7c3d950b..a6e0d31a 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |||
@@ -30,16 +30,13 @@ | |||
30 | #include <nvgpu/cond.h> | 30 | #include <nvgpu/cond.h> |
31 | #include <nvgpu/atomic.h> | 31 | #include <nvgpu/atomic.h> |
32 | 32 | ||
33 | #include "gr_gk20a.h" | ||
34 | |||
33 | struct gk20a; | 35 | struct gk20a; |
34 | struct dbg_session_gk20a; | 36 | struct dbg_session_gk20a; |
35 | struct gk20a_fence; | 37 | struct gk20a_fence; |
36 | struct fifo_profile_gk20a; | 38 | struct fifo_profile_gk20a; |
37 | 39 | struct gk20a_channel_sync; | |
38 | #include "channel_sync_gk20a.h" | ||
39 | |||
40 | #include "mm_gk20a.h" | ||
41 | #include "gr_gk20a.h" | ||
42 | #include "fence_gk20a.h" | ||
43 | 40 | ||
44 | /* Flags to be passed to gk20a_channel_alloc_gpfifo() */ | 41 | /* Flags to be passed to gk20a_channel_alloc_gpfifo() */ |
45 | #define NVGPU_GPFIFO_FLAGS_SUPPORT_VPR (1U << 0U) | 42 | #define NVGPU_GPFIFO_FLAGS_SUPPORT_VPR (1U << 0U) |
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h index 77030c94..3ff1b088 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | |||
@@ -31,6 +31,7 @@ | |||
31 | 31 | ||
32 | struct gk20a_debug_output; | 32 | struct gk20a_debug_output; |
33 | struct mmu_fault_info; | 33 | struct mmu_fault_info; |
34 | struct nvgpu_semaphore; | ||
34 | 35 | ||
35 | enum { | 36 | enum { |
36 | NVGPU_FIFO_RUNLIST_INTERLEAVE_LEVEL_LOW = 0, | 37 | NVGPU_FIFO_RUNLIST_INTERLEAVE_LEVEL_LOW = 0, |
diff --git a/drivers/gpu/nvgpu/gp10b/fifo_gp10b.c b/drivers/gpu/nvgpu/gp10b/fifo_gp10b.c index 6b139862..011d5f17 100644 --- a/drivers/gpu/nvgpu/gp10b/fifo_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/fifo_gp10b.c | |||
@@ -33,6 +33,7 @@ | |||
33 | 33 | ||
34 | #include "gk20a/gk20a.h" | 34 | #include "gk20a/gk20a.h" |
35 | #include "gm20b/fifo_gm20b.h" | 35 | #include "gm20b/fifo_gm20b.h" |
36 | #include "gk20a/channel_sync_gk20a.h" | ||
36 | 37 | ||
37 | #include <nvgpu/hw/gp10b/hw_pbdma_gp10b.h> | 38 | #include <nvgpu/hw/gp10b/hw_pbdma_gp10b.h> |
38 | #include <nvgpu/hw/gp10b/hw_ccsr_gp10b.h> | 39 | #include <nvgpu/hw/gp10b/hw_ccsr_gp10b.h> |
diff --git a/drivers/gpu/nvgpu/os/linux/dmabuf.c b/drivers/gpu/nvgpu/os/linux/dmabuf.c index 6f07e88a..591c7c0a 100644 --- a/drivers/gpu/nvgpu/os/linux/dmabuf.c +++ b/drivers/gpu/nvgpu/os/linux/dmabuf.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <nvgpu/linux/vm.h> | 24 | #include <nvgpu/linux/vm.h> |
25 | 25 | ||
26 | #include "gk20a/gk20a.h" | 26 | #include "gk20a/gk20a.h" |
27 | #include "gk20a/fence_gk20a.h" | ||
27 | 28 | ||
28 | #include "platform_gk20a.h" | 29 | #include "platform_gk20a.h" |
29 | #include "dmabuf.h" | 30 | #include "dmabuf.h" |
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_channel.c b/drivers/gpu/nvgpu/os/linux/ioctl_channel.c index 7b003b76..e9a24923 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_channel.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_channel.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include "gk20a/gk20a.h" | 39 | #include "gk20a/gk20a.h" |
40 | #include "gk20a/dbg_gpu_gk20a.h" | 40 | #include "gk20a/dbg_gpu_gk20a.h" |
41 | #include "gk20a/fence_gk20a.h" | 41 | #include "gk20a/fence_gk20a.h" |
42 | #include "gk20a/channel_sync_gk20a.h" | ||
42 | 43 | ||
43 | #include "platform_gk20a.h" | 44 | #include "platform_gk20a.h" |
44 | #include "ioctl_channel.h" | 45 | #include "ioctl_channel.h" |