diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-07-27 20:06:36 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-10-11 12:16:03 -0400 |
commit | fda4ddfa79f3a78becfe44fd558974bd274c03a9 (patch) | |
tree | 55d7999d7af7040ed50121fa6fa70fddc11b0887 /drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | |
parent | bb5fd16c67287e53db5165a974ea15ec3be09fe9 (diff) |
gpu: nvgpu: userd allocation from sysmem
When bar1 memory is not supported then userd will be
allocated from sysmem.
Functions gp_get and gp_put are updated accordingly.
JIRA GV11B-1
Change-Id: Ia895712a110f6cca26474228141488f5f8ace756
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1225384
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h index 228f7730..64bdeabb 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | |||
@@ -167,6 +167,8 @@ static inline const char *gk20a_fifo_interleave_level_name(u32 interleave_level) | |||
167 | 167 | ||
168 | int gk20a_init_fifo_support(struct gk20a *g); | 168 | int gk20a_init_fifo_support(struct gk20a *g); |
169 | 169 | ||
170 | int gk20a_init_fifo_setup_hw(struct gk20a *g); | ||
171 | |||
170 | void gk20a_fifo_isr(struct gk20a *g); | 172 | void gk20a_fifo_isr(struct gk20a *g); |
171 | void gk20a_fifo_nonstall_isr(struct gk20a *g); | 173 | void gk20a_fifo_nonstall_isr(struct gk20a *g); |
172 | 174 | ||
@@ -263,4 +265,8 @@ int gk20a_fifo_init_engine_info(struct fifo_gk20a *f); | |||
263 | void gk20a_get_tsg_runlist_entry(struct tsg_gk20a *tsg, u32 *runlist); | 265 | void gk20a_get_tsg_runlist_entry(struct tsg_gk20a *tsg, u32 *runlist); |
264 | void gk20a_get_ch_runlist_entry(struct channel_gk20a *ch, u32 *runlist); | 266 | void gk20a_get_ch_runlist_entry(struct channel_gk20a *ch, u32 *runlist); |
265 | 267 | ||
268 | u32 gk20a_userd_gp_get(struct gk20a *g, struct channel_gk20a *c); | ||
269 | void gk20a_userd_gp_put(struct gk20a *g, struct channel_gk20a *c); | ||
270 | |||
271 | |||
266 | #endif /*__GR_GK20A_H__*/ | 272 | #endif /*__GR_GK20A_H__*/ |