summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-12-03 09:11:50 -0500
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:03 -0500
commit15839d4763e0651e789a6511476851cccef0febb (patch)
tree0e0a6d52c478077049c0c51d1abf6bfdcccffacf /drivers/gpu/nvgpu/gp10b/gr_gp10b.h
parent945e5e6832bd2461b9eafa61e8dd06b793a6f6b9 (diff)
gpu: nvgpu: Implement gp10b context creation
Implement context creation for gp10b. GfxP contexts need per channel buffers. Bug 1517461 Change-Id: Ifecb59002f89f0407457730a35bfb3fe988b907a Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/660236
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
index 536a7d27..6bbda564 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
@@ -16,7 +16,7 @@
16#ifndef _NVGPU_GR_GP10B_H_ 16#ifndef _NVGPU_GR_GP10B_H_
17#define _NVGPU_GR_GP10B_H_ 17#define _NVGPU_GR_GP10B_H_
18 18
19struct gk20a; 19struct gpu_ops;
20 20
21enum { 21enum {
22 PASCAL_CHANNEL_GPFIFO_A = 0xC06F, 22 PASCAL_CHANNEL_GPFIFO_A = 0xC06F,
@@ -32,4 +32,21 @@ enum {
32 32
33void gp10b_init_gr(struct gpu_ops *ops); 33void gp10b_init_gr(struct gpu_ops *ops);
34 34
35struct gr_t18x {
36 struct {
37 u32 preempt_image_size;
38 } ctx_vars;
39};
40
41struct gr_ctx_desc_t18x {
42 int preempt_mode;
43 struct mem_desc preempt_ctxsw_buffer;
44 struct mem_desc spill_ctxsw_buffer;
45 struct mem_desc betacb_ctxsw_buffer;
46 struct mem_desc pagepool_ctxsw_buffer;
47};
48
49#define NVGPU_GR_PREEMPTION_MODE_WFI 0
50#define NVGPU_GR_PREEMPTION_MODE_GFXP 1
51
35#endif 52#endif