summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2018-08-21 05:27:07 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-24 17:57:38 -0400
commit0c387d76dcc7e665255200ba8d98b9abb11cb4a1 (patch)
treea41f3dc117a8b4981ba0dc0e89efc9818d54ff09
parentf062cc5b24554f6ae67abbe846e6d6e8c15c4ffc (diff)
gpu: nvgpu: move channel code to common
Do a simple rename of channel_gk20a.c to common/fifo/channel.c. Header cleanup and the like will soon follow. Also rename the os-specific files to have unique names across directories because tmake requires that. Jira NVGPU-967 Change-Id: I302bbbbe29735264e832378d444a176a4023e3e1 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1804608 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Richard Zhao <rizhao@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/Makefile4
-rw-r--r--drivers/gpu/nvgpu/Makefile.sources4
-rw-r--r--drivers/gpu/nvgpu/common/fifo/channel.c (renamed from drivers/gpu/nvgpu/gk20a/channel_gk20a.c)6
-rw-r--r--drivers/gpu/nvgpu/os/linux/linux-channel.c (renamed from drivers/gpu/nvgpu/os/linux/channel.c)0
-rw-r--r--drivers/gpu/nvgpu/os/posix/posix-channel.c (renamed from drivers/gpu/nvgpu/os/posix/channel.c)0
5 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/Makefile b/drivers/gpu/nvgpu/Makefile
index c7ccefb5..a6f0f0ce 100644
--- a/drivers/gpu/nvgpu/Makefile
+++ b/drivers/gpu/nvgpu/Makefile
@@ -74,7 +74,7 @@ nvgpu-y += \
74 os/linux/comptags.o \ 74 os/linux/comptags.o \
75 os/linux/dmabuf.o \ 75 os/linux/dmabuf.o \
76 os/linux/sched.o \ 76 os/linux/sched.o \
77 os/linux/channel.o \ 77 os/linux/linux-channel.o \
78 os/linux/sim.o \ 78 os/linux/sim.o \
79 os/linux/sim_pci.o \ 79 os/linux/sim_pci.o \
80 os/linux/os_sched.o \ 80 os/linux/os_sched.o \
@@ -200,13 +200,13 @@ nvgpu-y += \
200 common/clock_gating/gv11b_gating_reglist.o \ 200 common/clock_gating/gv11b_gating_reglist.o \
201 common/sim.o \ 201 common/sim.o \
202 common/sim_pci.o \ 202 common/sim_pci.o \
203 common/fifo/channel.o \
203 common/fifo/submit.o \ 204 common/fifo/submit.o \
204 common/ecc.o \ 205 common/ecc.o \
205 common/ce2.o \ 206 common/ce2.o \
206 gk20a/gk20a.o \ 207 gk20a/gk20a.o \
207 gk20a/ce2_gk20a.o \ 208 gk20a/ce2_gk20a.o \
208 gk20a/fifo_gk20a.o \ 209 gk20a/fifo_gk20a.o \
209 gk20a/channel_gk20a.o \
210 gk20a/channel_sync_gk20a.o \ 210 gk20a/channel_sync_gk20a.o \
211 gk20a/dbg_gpu_gk20a.o \ 211 gk20a/dbg_gpu_gk20a.o \
212 gk20a/regops_gk20a.o \ 212 gk20a/regops_gk20a.o \
diff --git a/drivers/gpu/nvgpu/Makefile.sources b/drivers/gpu/nvgpu/Makefile.sources
index 503e0f3a..f1ba7f76 100644
--- a/drivers/gpu/nvgpu/Makefile.sources
+++ b/drivers/gpu/nvgpu/Makefile.sources
@@ -39,7 +39,7 @@ srcs := os/posix/nvgpu.c \
39 os/posix/error_notifier.c \ 39 os/posix/error_notifier.c \
40 os/posix/fuse.c \ 40 os/posix/fuse.c \
41 os/posix/clk_arb.c \ 41 os/posix/clk_arb.c \
42 os/posix/channel.c \ 42 os/posix/posix-channel.c \
43 os/posix/tsg.c \ 43 os/posix/tsg.c \
44 os/posix/nvlink.c \ 44 os/posix/nvlink.c \
45 os/posix/lock.c \ 45 os/posix/lock.c \
@@ -104,6 +104,7 @@ srcs := os/posix/nvgpu.c \
104 common/clock_gating/gv11b_gating_reglist.c \ 104 common/clock_gating/gv11b_gating_reglist.c \
105 common/clock_gating/gp106_gating_reglist.c \ 105 common/clock_gating/gp106_gating_reglist.c \
106 common/clock_gating/gv100_gating_reglist.c \ 106 common/clock_gating/gv100_gating_reglist.c \
107 common/fifo/channel.c \
107 common/fifo/submit.c \ 108 common/fifo/submit.c \
108 boardobj/boardobj.c \ 109 boardobj/boardobj.c \
109 boardobj/boardobjgrp.c \ 110 boardobj/boardobjgrp.c \
@@ -140,7 +141,6 @@ srcs := os/posix/nvgpu.c \
140 common/ptimer/ptimer_gk20a.c \ 141 common/ptimer/ptimer_gk20a.c \
141 gk20a/ce2_gk20a.c \ 142 gk20a/ce2_gk20a.c \
142 gk20a/fifo_gk20a.c \ 143 gk20a/fifo_gk20a.c \
143 gk20a/channel_gk20a.c \
144 gk20a/channel_sync_gk20a.c \ 144 gk20a/channel_sync_gk20a.c \
145 gk20a/dbg_gpu_gk20a.c \ 145 gk20a/dbg_gpu_gk20a.c \
146 gk20a/regops_gk20a.c \ 146 gk20a/regops_gk20a.c \
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/common/fifo/channel.c
index 77458917..5966e191 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/common/fifo/channel.c
@@ -44,9 +44,9 @@
44#include <nvgpu/log2.h> 44#include <nvgpu/log2.h>
45#include <nvgpu/ptimer.h> 45#include <nvgpu/ptimer.h>
46 46
47#include "gk20a.h" 47#include "gk20a/gk20a.h"
48#include "dbg_gpu_gk20a.h" 48#include "gk20a/dbg_gpu_gk20a.h"
49#include "fence_gk20a.h" 49#include "gk20a/fence_gk20a.h"
50 50
51static void free_channel(struct fifo_gk20a *f, struct channel_gk20a *c); 51static void free_channel(struct fifo_gk20a *f, struct channel_gk20a *c);
52static void gk20a_channel_dump_ref_actions(struct channel_gk20a *c); 52static void gk20a_channel_dump_ref_actions(struct channel_gk20a *c);
diff --git a/drivers/gpu/nvgpu/os/linux/channel.c b/drivers/gpu/nvgpu/os/linux/linux-channel.c
index fef44f2b..fef44f2b 100644
--- a/drivers/gpu/nvgpu/os/linux/channel.c
+++ b/drivers/gpu/nvgpu/os/linux/linux-channel.c
diff --git a/drivers/gpu/nvgpu/os/posix/channel.c b/drivers/gpu/nvgpu/os/posix/posix-channel.c
index 05697159..05697159 100644
--- a/drivers/gpu/nvgpu/os/posix/channel.c
+++ b/drivers/gpu/nvgpu/os/posix/posix-channel.c