diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-08-17 19:16:49 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-13 18:19:28 -0400 |
commit | 59e4089278bd052b440293356605ce524e4944db (patch) | |
tree | e9c48f09561f913db919bf8bbd4b39205c7bf606 /drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | |
parent | 88d5f6b4154d6803ecf3b0dee7208f9f1f10a793 (diff) |
gpu: nvgpu: Separate vidmem alloc from Linux code
Split the core vidmem allocation from the Linux component of vidmem
allocation. The core vidmem allocation allocates the nvgpu_mem struct
that defines the vidmem buffer in the core MM code. The Linux code
now allocates some Linux specific stuff (dma_buf, etc) and also
allocates the core vidmem buf.
JIRA NVGPU-30
JIRA NVGPU-138
Change-Id: I88e87e0abd5ec714610eacc6eac17e148bcee3ce
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1540708
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c index 83bd0156..c2885807 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | |||
@@ -33,7 +33,8 @@ | |||
33 | #include <nvgpu/log.h> | 33 | #include <nvgpu/log.h> |
34 | #include <nvgpu/vm.h> | 34 | #include <nvgpu/vm.h> |
35 | #include <nvgpu/atomic.h> | 35 | #include <nvgpu/atomic.h> |
36 | #include <nvgpu/vidmem.h> | 36 | |
37 | #include <nvgpu/linux/vidmem.h> | ||
37 | 38 | ||
38 | #include "gk20a.h" | 39 | #include "gk20a.h" |
39 | #include "gk20a/platform_gk20a.h" | 40 | #include "gk20a/platform_gk20a.h" |