diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/cde.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/cde.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/cde.c b/drivers/gpu/nvgpu/common/linux/cde.c index 30edc1d5..65c50726 100644 --- a/drivers/gpu/nvgpu/common/linux/cde.c +++ b/drivers/gpu/nvgpu/common/linux/cde.c | |||
@@ -527,16 +527,12 @@ static int gk20a_init_cde_required_class(struct gk20a_cde_ctx *cde_ctx, | |||
527 | { | 527 | { |
528 | struct nvgpu_os_linux *l = cde_ctx->l; | 528 | struct nvgpu_os_linux *l = cde_ctx->l; |
529 | struct gk20a *g = &l->g; | 529 | struct gk20a *g = &l->g; |
530 | struct nvgpu_alloc_obj_ctx_args alloc_obj_ctx; | ||
531 | int err; | 530 | int err; |
532 | 531 | ||
533 | alloc_obj_ctx.class_num = required_class; | ||
534 | alloc_obj_ctx.flags = 0; | ||
535 | |||
536 | /* CDE enabled */ | 532 | /* CDE enabled */ |
537 | cde_ctx->ch->cde = true; | 533 | cde_ctx->ch->cde = true; |
538 | 534 | ||
539 | err = gk20a_alloc_obj_ctx(cde_ctx->ch, &alloc_obj_ctx); | 535 | err = gk20a_alloc_obj_ctx(cde_ctx->ch, required_class, 0); |
540 | if (err) { | 536 | if (err) { |
541 | nvgpu_warn(g, "cde: failed to allocate ctx. err=%d", | 537 | nvgpu_warn(g, "cde: failed to allocate ctx. err=%d", |
542 | err); | 538 | err); |