diff options
Diffstat (limited to 'drivers/gpu/nvgpu/Makefile')
-rw-r--r-- | drivers/gpu/nvgpu/Makefile | 213 |
1 files changed, 112 insertions, 101 deletions
diff --git a/drivers/gpu/nvgpu/Makefile b/drivers/gpu/nvgpu/Makefile index 5c7bb767..42d9855f 100644 --- a/drivers/gpu/nvgpu/Makefile +++ b/drivers/gpu/nvgpu/Makefile | |||
@@ -30,39 +30,118 @@ nvgpu-y += common/bus/bus_gk20a.o \ | |||
30 | common/ptimer/ptimer.o \ | 30 | common/ptimer/ptimer.o \ |
31 | common/ptimer/ptimer_gk20a.o | 31 | common/ptimer/ptimer_gk20a.o |
32 | 32 | ||
33 | # Linux specific parts of nvgpu. | ||
34 | nvgpu-y += \ | ||
35 | os/linux/kmem.o \ | ||
36 | os/linux/timers.o \ | ||
37 | os/linux/ioctl.o \ | ||
38 | os/linux/ioctl_ctrl.o \ | ||
39 | os/linux/ioctl_as.o \ | ||
40 | os/linux/ioctl_channel.o \ | ||
41 | os/linux/ioctl_tsg.o \ | ||
42 | os/linux/ioctl_dbg.o \ | ||
43 | os/linux/ioctl_clk_arb.o \ | ||
44 | os/linux/log.o \ | ||
45 | os/linux/cond.o \ | ||
46 | os/linux/nvgpu_mem.o \ | ||
47 | os/linux/dma.o \ | ||
48 | os/linux/driver_common.o \ | ||
49 | os/linux/firmware.o \ | ||
50 | os/linux/thread.o \ | ||
51 | os/linux/vm.o \ | ||
52 | os/linux/intr.o \ | ||
53 | os/linux/sysfs.o \ | ||
54 | os/linux/io.o \ | ||
55 | os/linux/io_usermode.o \ | ||
56 | os/linux/rwsem.o \ | ||
57 | os/linux/comptags.o \ | ||
58 | os/linux/dmabuf.o \ | ||
59 | os/linux/sched.o \ | ||
60 | os/linux/channel.o \ | ||
61 | os/linux/ce2.o \ | ||
62 | os/linux/sim.o \ | ||
63 | os/linux/sim_pci.o \ | ||
64 | os/linux/os_sched.o \ | ||
65 | os/linux/nvlink.o \ | ||
66 | os/linux/dt.o | ||
67 | |||
68 | nvgpu-$(CONFIG_GK20A_VIDMEM) += \ | ||
69 | os/linux/vidmem.o | ||
70 | |||
71 | nvgpu-$(CONFIG_DEBUG_FS) += \ | ||
72 | os/linux/debug.o \ | ||
73 | os/linux/debug_gr.o \ | ||
74 | os/linux/debug_fifo.o \ | ||
75 | os/linux/debug_ce.o \ | ||
76 | os/linux/debug_pmu.o \ | ||
77 | os/linux/debug_sched.o \ | ||
78 | os/linux/debug_allocator.o \ | ||
79 | os/linux/debug_hal.o \ | ||
80 | os/linux/debug_clk.o \ | ||
81 | os/linux/debug_xve.o | ||
82 | |||
83 | ifeq ($(CONFIG_NVGPU_TRACK_MEM_USAGE),y) | ||
84 | nvgpu-$(CONFIG_DEBUG_FS) += \ | ||
85 | os/linux/debug_kmem.o | ||
86 | endif | ||
87 | |||
88 | nvgpu-$(CONFIG_GK20A_CTXSW_TRACE) += \ | ||
89 | os/linux/ctxsw_trace.o | ||
90 | |||
91 | nvgpu-$(CONFIG_TEGRA_GK20A) += \ | ||
92 | os/linux/module.o \ | ||
93 | os/linux/module_usermode.o \ | ||
94 | os/linux/soc.o \ | ||
95 | os/linux/fuse.o \ | ||
96 | os/linux/platform_ecc_sysfs.o \ | ||
97 | os/linux/platform_gk20a_tegra.o \ | ||
98 | os/linux/platform_gp10b_tegra.o \ | ||
99 | os/linux/platform_gv11b_tegra.o | ||
100 | |||
101 | nvgpu-$(CONFIG_SYNC) += \ | ||
102 | os/linux/sync_sema_android.o \ | ||
103 | os/linux/os_fence_android.o \ | ||
104 | os/linux/os_fence_android_sema.o | ||
105 | |||
106 | ifeq ($(CONFIG_TEGRA_GK20A_NVHOST), y) | ||
107 | nvgpu-$(CONFIG_SYNC) += \ | ||
108 | os/linux/os_fence_android_syncpt.o | ||
109 | endif | ||
110 | |||
111 | nvgpu-$(CONFIG_GK20A_PCI) += \ | ||
112 | os/linux/pci.o \ | ||
113 | os/linux/pci_usermode.o | ||
114 | |||
115 | nvgpu-$(CONFIG_TEGRA_GK20A_NVHOST) += \ | ||
116 | os/linux/nvhost.o | ||
117 | |||
118 | nvgpu-$(CONFIG_TEGRA_GR_VIRTUALIZATION) += \ | ||
119 | os/linux/vgpu/platform_vgpu_tegra.o \ | ||
120 | os/linux/vgpu/fecs_trace_vgpu.o \ | ||
121 | os/linux/vgpu/clk_vgpu.o \ | ||
122 | os/linux/vgpu/sysfs_vgpu.o \ | ||
123 | os/linux/vgpu/vgpu_ivc.o \ | ||
124 | os/linux/vgpu/vgpu_ivm.o \ | ||
125 | os/linux/vgpu/vgpu_linux.o \ | ||
126 | os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.o | ||
127 | |||
128 | nvgpu-$(CONFIG_COMMON_CLK) += \ | ||
129 | os/linux/clk.o | ||
130 | |||
131 | nvgpu-$(CONFIG_GK20A_DEVFREQ) += \ | ||
132 | os/linux/scale.o | ||
133 | |||
134 | nvgpu-$(CONFIG_NVGPU_SUPPORT_CDE) += \ | ||
135 | os/linux/cde.o \ | ||
136 | os/linux/cde_gm20b.o \ | ||
137 | os/linux/cde_gp10b.o | ||
138 | |||
139 | ifeq ($(CONFIG_DEBUG_FS),y) | ||
140 | nvgpu-$(CONFIG_NVGPU_SUPPORT_CDE) += \ | ||
141 | os/linux/debug_cde.o | ||
142 | endif | ||
143 | |||
33 | nvgpu-y += \ | 144 | nvgpu-y += \ |
34 | common/linux/kmem.o \ | ||
35 | common/linux/timers.o \ | ||
36 | common/linux/ioctl.o \ | ||
37 | common/linux/ioctl_ctrl.o \ | ||
38 | common/linux/ioctl_as.o \ | ||
39 | common/linux/ioctl_channel.o \ | ||
40 | common/linux/ioctl_tsg.o \ | ||
41 | common/linux/ioctl_dbg.o \ | ||
42 | common/linux/ioctl_clk_arb.o \ | ||
43 | common/linux/log.o \ | ||
44 | common/linux/cond.o \ | ||
45 | common/linux/nvgpu_mem.o \ | ||
46 | common/linux/dma.o \ | ||
47 | common/linux/driver_common.o \ | ||
48 | common/linux/firmware.o \ | ||
49 | common/linux/thread.o \ | ||
50 | common/linux/vm.o \ | ||
51 | common/linux/intr.o \ | ||
52 | common/linux/sysfs.o \ | ||
53 | common/linux/io.o \ | ||
54 | common/linux/io_usermode.o \ | ||
55 | common/linux/rwsem.o \ | ||
56 | common/linux/comptags.o \ | ||
57 | common/linux/dmabuf.o \ | ||
58 | common/linux/sched.o \ | ||
59 | common/linux/channel.o \ | ||
60 | common/linux/ce2.o \ | ||
61 | common/linux/sim.o \ | ||
62 | common/linux/sim_pci.o \ | ||
63 | common/linux/os_sched.o \ | ||
64 | common/linux/nvlink.o \ | ||
65 | common/linux/dt.o \ | ||
66 | common/mm/nvgpu_allocator.o \ | 145 | common/mm/nvgpu_allocator.o \ |
67 | common/mm/bitmap_allocator.o \ | 146 | common/mm/bitmap_allocator.o \ |
68 | common/mm/buddy_allocator.o \ | 147 | common/mm/buddy_allocator.o \ |
@@ -138,51 +217,7 @@ nvgpu-y += \ | |||
138 | boardobj/boardobjgrp_e32.o | 217 | boardobj/boardobjgrp_e32.o |
139 | 218 | ||
140 | nvgpu-$(CONFIG_GK20A_VIDMEM) += \ | 219 | nvgpu-$(CONFIG_GK20A_VIDMEM) += \ |
141 | common/mm/vidmem.o \ | 220 | common/mm/vidmem.o |
142 | common/linux/vidmem.o | ||
143 | |||
144 | nvgpu-$(CONFIG_DEBUG_FS) += \ | ||
145 | common/linux/debug.o \ | ||
146 | common/linux/debug_gr.o \ | ||
147 | common/linux/debug_fifo.o \ | ||
148 | common/linux/debug_ce.o \ | ||
149 | common/linux/debug_pmu.o \ | ||
150 | common/linux/debug_sched.o \ | ||
151 | common/linux/debug_allocator.o \ | ||
152 | common/linux/debug_hal.o \ | ||
153 | common/linux/debug_clk.o \ | ||
154 | common/linux/debug_xve.o | ||
155 | |||
156 | ifeq ($(CONFIG_NVGPU_TRACK_MEM_USAGE),y) | ||
157 | nvgpu-$(CONFIG_DEBUG_FS) += \ | ||
158 | common/linux/debug_kmem.o | ||
159 | endif | ||
160 | |||
161 | nvgpu-$(CONFIG_GK20A_CTXSW_TRACE) += \ | ||
162 | common/linux/ctxsw_trace.o | ||
163 | |||
164 | nvgpu-$(CONFIG_TEGRA_GK20A) += \ | ||
165 | common/linux/module.o \ | ||
166 | common/linux/module_usermode.o \ | ||
167 | common/linux/soc.o \ | ||
168 | common/linux/fuse.o \ | ||
169 | common/linux/platform_ecc_sysfs.o \ | ||
170 | common/linux/platform_gk20a_tegra.o \ | ||
171 | common/linux/platform_gp10b_tegra.o \ | ||
172 | common/linux/platform_gv11b_tegra.o | ||
173 | |||
174 | nvgpu-$(CONFIG_SYNC) += common/linux/sync_sema_android.o \ | ||
175 | common/linux/os_fence_android.o \ | ||
176 | common/linux/os_fence_android_sema.o | ||
177 | |||
178 | ifeq ($(CONFIG_TEGRA_GK20A_NVHOST), y) | ||
179 | nvgpu-$(CONFIG_SYNC) += common/linux/os_fence_android_syncpt.o | ||
180 | endif | ||
181 | |||
182 | nvgpu-$(CONFIG_GK20A_PCI) += common/linux/pci.o \ | ||
183 | common/linux/pci_usermode.o \ | ||
184 | |||
185 | nvgpu-$(CONFIG_TEGRA_GK20A_NVHOST) += common/linux/nvhost.o | ||
186 | 221 | ||
187 | nvgpu-$(CONFIG_TEGRA_GR_VIRTUALIZATION) += \ | 222 | nvgpu-$(CONFIG_TEGRA_GR_VIRTUALIZATION) += \ |
188 | vgpu/ltc_vgpu.o \ | 223 | vgpu/ltc_vgpu.o \ |
@@ -205,20 +240,6 @@ nvgpu-$(CONFIG_TEGRA_GR_VIRTUALIZATION) += \ | |||
205 | vgpu/gv11b/vgpu_fifo_gv11b.o \ | 240 | vgpu/gv11b/vgpu_fifo_gv11b.o \ |
206 | vgpu/gv11b/vgpu_subctx_gv11b.o \ | 241 | vgpu/gv11b/vgpu_subctx_gv11b.o \ |
207 | vgpu/gv11b/vgpu_tsg_gv11b.o \ | 242 | vgpu/gv11b/vgpu_tsg_gv11b.o \ |
208 | common/linux/vgpu/platform_vgpu_tegra.o \ | ||
209 | common/linux/vgpu/fecs_trace_vgpu.o \ | ||
210 | common/linux/vgpu/clk_vgpu.o \ | ||
211 | common/linux/vgpu/sysfs_vgpu.o \ | ||
212 | common/linux/vgpu/vgpu_ivc.o \ | ||
213 | common/linux/vgpu/vgpu_ivm.o \ | ||
214 | common/linux/vgpu/vgpu_linux.o \ | ||
215 | common/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.o | ||
216 | |||
217 | nvgpu-$(CONFIG_COMMON_CLK) += \ | ||
218 | common/linux/clk.o | ||
219 | |||
220 | nvgpu-$(CONFIG_GK20A_DEVFREQ) += \ | ||
221 | common/linux/scale.o | ||
222 | 243 | ||
223 | nvgpu-$(CONFIG_GK20A_CYCLE_STATS) += \ | 244 | nvgpu-$(CONFIG_GK20A_CYCLE_STATS) += \ |
224 | gk20a/css_gr_gk20a.o | 245 | gk20a/css_gr_gk20a.o |
@@ -316,13 +337,3 @@ nvgpu-y += \ | |||
316 | therm/thrmpmu.o \ | 337 | therm/thrmpmu.o \ |
317 | lpwr/rppg.o \ | 338 | lpwr/rppg.o \ |
318 | lpwr/lpwr.o | 339 | lpwr/lpwr.o |
319 | |||
320 | nvgpu-$(CONFIG_NVGPU_SUPPORT_CDE) += \ | ||
321 | common/linux/cde.o \ | ||
322 | common/linux/cde_gm20b.o \ | ||
323 | common/linux/cde_gp10b.o | ||
324 | |||
325 | ifeq ($(CONFIG_DEBUG_FS),y) | ||
326 | nvgpu-$(CONFIG_NVGPU_SUPPORT_CDE) += \ | ||
327 | common/linux/debug_cde.o | ||
328 | endif | ||