diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/subctx_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c index 3acc53f6..b0d0a192 100644 --- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | |||
@@ -44,6 +44,7 @@ int gv11b_alloc_subctx_header(struct channel_gk20a *c) | |||
44 | { | 44 | { |
45 | struct ctx_header_desc *ctx = &c->ch_ctx.ctx_header; | 45 | struct ctx_header_desc *ctx = &c->ch_ctx.ctx_header; |
46 | struct gk20a *g = c->g; | 46 | struct gk20a *g = c->g; |
47 | struct gr_gk20a *gr = &g->gr; | ||
47 | int ret = 0; | 48 | int ret = 0; |
48 | 49 | ||
49 | gk20a_dbg_fn(""); | 50 | gk20a_dbg_fn(""); |
@@ -51,7 +52,7 @@ int gv11b_alloc_subctx_header(struct channel_gk20a *c) | |||
51 | if (ctx->mem.gpu_va == 0) { | 52 | if (ctx->mem.gpu_va == 0) { |
52 | ret = gk20a_gmmu_alloc_attr_sys(g, | 53 | ret = gk20a_gmmu_alloc_attr_sys(g, |
53 | DMA_ATTR_NO_KERNEL_MAPPING, | 54 | DMA_ATTR_NO_KERNEL_MAPPING, |
54 | ctxsw_prog_fecs_header_v(), | 55 | gr->ctx_vars.golden_image_size, |
55 | &ctx->mem); | 56 | &ctx->mem); |
56 | if (ret) { | 57 | if (ret) { |
57 | gk20a_err(dev_from_gk20a(g), | 58 | gk20a_err(dev_from_gk20a(g), |