diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2018-08-27 07:16:59 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-31 00:42:39 -0400 |
commit | 5e90bf3f6c35361cacc1ce8588c3120091d54f58 (patch) | |
tree | 28155f352d97f33adff9fa62f06cb87d1570925b /drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |
parent | a6108a4b0ed52c7a8fa58d9815d0b373be8305bf (diff) |
gpu: nvgpu: remove ctx header desc type
The graphics subctx header object is nothing but memory. Drop the
dependency to gr header file in the channel header file and substitute
struct nvgpu_mem for struct ctx_header_desc.
Jira NVGPU-967
Change-Id: Ic3976391016c42d2ada4aac3e0851a1222244ce9
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1807370
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c index f5377bc3..0aa32f8a 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |||
@@ -1183,8 +1183,7 @@ void gr_gp10b_update_ctxsw_preemption_mode(struct gk20a *g, | |||
1183 | { | 1183 | { |
1184 | struct tsg_gk20a *tsg; | 1184 | struct tsg_gk20a *tsg; |
1185 | struct nvgpu_gr_ctx *gr_ctx; | 1185 | struct nvgpu_gr_ctx *gr_ctx; |
1186 | struct ctx_header_desc *ctx = &c->ctx_header; | 1186 | struct nvgpu_mem *ctxheader = &c->ctx_header; |
1187 | struct nvgpu_mem *ctxheader = &ctx->mem; | ||
1188 | u32 gfxp_preempt_option = | 1187 | u32 gfxp_preempt_option = |
1189 | ctxsw_prog_main_image_graphics_preemption_options_control_gfxp_f(); | 1188 | ctxsw_prog_main_image_graphics_preemption_options_control_gfxp_f(); |
1190 | u32 cilp_preempt_option = | 1189 | u32 cilp_preempt_option = |