diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-07-11 09:02:57 -0400 |
---|---|---|
committer | Vijayakumar Subbu <vsubbu@nvidia.com> | 2016-07-21 08:54:26 -0400 |
commit | 83071083d779b67ad73172675a6dfa34ed19b414 (patch) | |
tree | 19040ddfa5bd3a959a99647a2a2f0c1a08ae3d8f /drivers/gpu/nvgpu/gk20a/ce2_gk20a.c | |
parent | 306dee6cbb29599b301d68c449e76b5249f143d6 (diff) |
gpu: nvgpu: add vidmem manager
Use the nvgpu-internal buddy allocator for video memory allocations,
instead of nvmap. This allows better integration for copyengine, BAR1
mapping to userspace, etc.
Jira DNVGPU-38
Change-Id: I9fd67b76cd39721e4cd8e525ad0ed76f497e8b99
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1181151
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ce2_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ce2_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c index e2f2d9e9..a69cce0c 100644 --- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c | |||
@@ -224,7 +224,7 @@ static inline int gk20a_get_valid_launch_flags(struct gk20a *g, int launch_flags | |||
224 | { | 224 | { |
225 | /* there is no local memory available, | 225 | /* there is no local memory available, |
226 | don't allow local memory related CE flags */ | 226 | don't allow local memory related CE flags */ |
227 | if (!g->mm.vidmem_size) { | 227 | if (!g->mm.vidmem.size) { |
228 | launch_flags &= ~(NVGPU_CE_SRC_LOCATION_LOCAL_FB | | 228 | launch_flags &= ~(NVGPU_CE_SRC_LOCATION_LOCAL_FB | |
229 | NVGPU_CE_DST_LOCATION_LOCAL_FB); | 229 | NVGPU_CE_DST_LOCATION_LOCAL_FB); |
230 | } | 230 | } |