summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/Makefile
diff options
context:
space:
mode:
authorPreetham Chandru R <pchandru@nvidia.com>2018-09-20 09:07:13 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-11-29 17:36:30 -0500
commitd6278955f66dbfb5f992f9298e32ca86d66c6259 (patch)
treee09e7fab2584398e8d6b370cea424f28343a2014 /drivers/gpu/nvgpu/Makefile
parentb3bda98fbdd8673dc31073bddee09386cfc3622c (diff)
gpu: nvgpu: RDMA implementation
This change adds RDMA supports for tegra iGPU. 1. Cuda Process allocates the memory and passes the VA and size to the custom kernel driver. 2. The custom kernel driver maps the user allocated buf and does the DMA to/from it. 3. Only supports iGPU + cudaHostAlloc sysmem 4. Works only for a given process. 5. Address should be sysmem page aligned and size should be multiple of sysmem page size. 6. The custom kernel driver must register a free_callback when get_page() function is called. Bug 200438879 Signed-off-by: Preetham Chandru R <pchandru@nvidia.com> Change-Id: I43ec45734eb46d30341d0701550206c16e051106 Reviewed-on: https://git-master.nvidia.com/r/1953780 GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/Makefile')
-rw-r--r--drivers/gpu/nvgpu/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/Makefile b/drivers/gpu/nvgpu/Makefile
index e0fd70e6..fdfaf092 100644
--- a/drivers/gpu/nvgpu/Makefile
+++ b/drivers/gpu/nvgpu/Makefile
@@ -176,6 +176,9 @@ nvgpu-$(CONFIG_NVGPU_SUPPORT_CDE) += \
176 os/linux/cde_gm20b.o \ 176 os/linux/cde_gm20b.o \
177 os/linux/cde_gp10b.o 177 os/linux/cde_gp10b.o
178 178
179nvgpu-$(CONFIG_GK20A_RDMA) += \
180 os/linux/nvidia_p2p.o
181
179ifeq ($(CONFIG_DEBUG_FS),y) 182ifeq ($(CONFIG_DEBUG_FS),y)
180nvgpu-$(CONFIG_NVGPU_SUPPORT_CDE) += \ 183nvgpu-$(CONFIG_NVGPU_SUPPORT_CDE) += \
181 os/linux/debug_cde.o 184 os/linux/debug_cde.o