From 610dafa1e0d3db345cd7a46adcf82617236c8602 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Tue, 26 Jun 2018 09:53:43 +0300 Subject: gpu: nvgpu: don't use alloc_flags for subctx header No need to use the flags variant with no flags. Change-Id: I14effca4e7071e91230dd89c435843d128e022b1 Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1761577 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c index aad2b2fc..4f8de196 100644 --- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c @@ -62,9 +62,7 @@ int gv11b_alloc_subctx_header(struct channel_gk20a *c) nvgpu_log(g, gpu_dbg_fn, "gv11b_alloc_subctx_header"); if (!nvgpu_mem_is_valid(&ctx->mem)) { - ret = nvgpu_dma_alloc_flags_sys(g, - 0, /* No Special flags */ - ctxsw_prog_fecs_header_v(), + ret = nvgpu_dma_alloc_sys(g, ctxsw_prog_fecs_header_v(), &ctx->mem); if (ret) { nvgpu_err(g, "failed to allocate sub ctx header"); -- cgit v1.2.2