diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-12-15 12:04:15 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-17 15:29:09 -0500 |
commit | 2f6698b863c9cc1db6455637b7c72e812b470b93 (patch) | |
tree | d0c8abf32d6994b9f54bf5eddafd8316e038c829 /drivers/gpu/nvgpu/gm20b/gr_gm20b.h | |
parent | 6a73114788ffafe4c53771c707ecbd9c9ea0a117 (diff) |
gpu: nvgpu: Make graphics context property of TSG
Move graphics context ownership to TSG instead of channel. Combine
channel_ctx_gk20a and gr_ctx_desc to one structure, because the split
between them was arbitrary. Move context header to be property of
channel.
Bug 1842197
Change-Id: I410e3262f80b318d8528bcbec270b63a2d8d2ff9
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1639532
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.h b/drivers/gpu/nvgpu/gm20b/gr_gm20b.h index 18e6b032..bddf6412 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.h | |||
@@ -46,7 +46,7 @@ enum { | |||
46 | #define NVA297_SET_SHADER_EXCEPTIONS_ENABLE_FALSE 0 | 46 | #define NVA297_SET_SHADER_EXCEPTIONS_ENABLE_FALSE 0 |
47 | 47 | ||
48 | void gr_gm20b_commit_global_attrib_cb(struct gk20a *g, | 48 | void gr_gm20b_commit_global_attrib_cb(struct gk20a *g, |
49 | struct channel_ctx_gk20a *ch_ctx, | 49 | struct nvgpu_gr_ctx *ch_ctx, |
50 | u64 addr, bool patch); | 50 | u64 addr, bool patch); |
51 | int gr_gm20b_init_fs_state(struct gk20a *g); | 51 | int gr_gm20b_init_fs_state(struct gk20a *g); |
52 | int gm20b_gr_tpc_disable_override(struct gk20a *g, u32 mask); | 52 | int gm20b_gr_tpc_disable_override(struct gk20a *g, u32 mask); |
@@ -57,12 +57,12 @@ void gr_gm20b_bundle_cb_defaults(struct gk20a *g); | |||
57 | void gr_gm20b_cb_size_default(struct gk20a *g); | 57 | void gr_gm20b_cb_size_default(struct gk20a *g); |
58 | int gr_gm20b_calc_global_ctx_buffer_size(struct gk20a *g); | 58 | int gr_gm20b_calc_global_ctx_buffer_size(struct gk20a *g); |
59 | void gr_gm20b_commit_global_bundle_cb(struct gk20a *g, | 59 | void gr_gm20b_commit_global_bundle_cb(struct gk20a *g, |
60 | struct channel_ctx_gk20a *ch_ctx, | 60 | struct nvgpu_gr_ctx *ch_ctx, |
61 | u64 addr, u64 size, bool patch); | 61 | u64 addr, u64 size, bool patch); |
62 | int gr_gm20b_commit_global_cb_manager(struct gk20a *g, | 62 | int gr_gm20b_commit_global_cb_manager(struct gk20a *g, |
63 | struct channel_gk20a *c, bool patch); | 63 | struct channel_gk20a *c, bool patch); |
64 | void gr_gm20b_commit_global_pagepool(struct gk20a *g, | 64 | void gr_gm20b_commit_global_pagepool(struct gk20a *g, |
65 | struct channel_ctx_gk20a *ch_ctx, | 65 | struct nvgpu_gr_ctx *ch_ctx, |
66 | u64 addr, u32 size, bool patch); | 66 | u64 addr, u32 size, bool patch); |
67 | int gr_gm20b_handle_sw_method(struct gk20a *g, u32 addr, | 67 | int gr_gm20b_handle_sw_method(struct gk20a *g, u32 addr, |
68 | u32 class_num, u32 offset, u32 data); | 68 | u32 class_num, u32 offset, u32 data); |
@@ -96,11 +96,11 @@ int gr_gm20b_load_ctxsw_ucode(struct gk20a *g); | |||
96 | void gr_gm20b_detect_sm_arch(struct gk20a *g); | 96 | void gr_gm20b_detect_sm_arch(struct gk20a *g); |
97 | u32 gr_gm20b_pagepool_default_size(struct gk20a *g); | 97 | u32 gr_gm20b_pagepool_default_size(struct gk20a *g); |
98 | int gr_gm20b_alloc_gr_ctx(struct gk20a *g, | 98 | int gr_gm20b_alloc_gr_ctx(struct gk20a *g, |
99 | struct gr_ctx_desc **gr_ctx, struct vm_gk20a *vm, | 99 | struct nvgpu_gr_ctx *gr_ctx, struct vm_gk20a *vm, |
100 | u32 class, | 100 | u32 class, |
101 | u32 flags); | 101 | u32 flags); |
102 | void gr_gm20b_update_ctxsw_preemption_mode(struct gk20a *g, | 102 | void gr_gm20b_update_ctxsw_preemption_mode(struct gk20a *g, |
103 | struct channel_ctx_gk20a *ch_ctx, | 103 | struct channel_gk20a *c, |
104 | struct nvgpu_mem *mem); | 104 | struct nvgpu_mem *mem); |
105 | int gr_gm20b_dump_gr_status_regs(struct gk20a *g, | 105 | int gr_gm20b_dump_gr_status_regs(struct gk20a *g, |
106 | struct gk20a_debug_output *o); | 106 | struct gk20a_debug_output *o); |