diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-09-24 14:20:37 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-10-11 12:16:04 -0400 |
commit | 1a36091fb9e31578c2e01c60cbe0a9b01b64bc9e (patch) | |
tree | ce92efb31177049668411929a93ad0ab0016f9cb /drivers/gpu/nvgpu/gv11b/mm_gv11b.c | |
parent | 507081b2eae666f9c3e713fd7d9d97fdc8b6c56f (diff) |
gpu: nvgpu: gv11b: sysmem userd support
For gv11b, userd is allocated from sysmem.
Updated gp_get and gp_put functions to read or
write from sysmem instead of bar1 memory.
In gv11b, after updating gp_put, it is required
to notify pending work to host through channel
doorbell.
JIRA GV11B-1
Change-Id: Iebc52e6ccfc8b9ca0c57b227190e0ce1161076f1
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1226613
GVS: Gerrit_Virtual_Submit
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/mm_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/mm_gv11b.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c index 0ac18a91..54df6745 100644 --- a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c | |||
@@ -18,8 +18,16 @@ | |||
18 | #include "gk20a/gk20a.h" | 18 | #include "gk20a/gk20a.h" |
19 | #include "gp10b/mm_gp10b.h" | 19 | #include "gp10b/mm_gp10b.h" |
20 | #include "mm_gv11b.h" | 20 | #include "mm_gv11b.h" |
21 | #include "hw_fb_gv11b.h" | ||
22 | |||
23 | bool gv11b_mm_is_bar1_supported(struct gk20a *g) | ||
24 | { | ||
25 | return false; | ||
26 | } | ||
21 | 27 | ||
22 | void gv11b_init_mm(struct gpu_ops *gops) | 28 | void gv11b_init_mm(struct gpu_ops *gops) |
23 | { | 29 | { |
24 | gp10b_init_mm(gops); | 30 | gp10b_init_mm(gops); |
31 | gops->mm.bar1_bind = NULL; | ||
32 | gops->mm.is_bar1_supported = gv11b_mm_is_bar1_supported; | ||
25 | } | 33 | } |