gpu: nvgpu: vgpu: remove vgpu_gr_gp10b_alloc_gr_ctx

vgpu_gr_gp10b_alloc_gr_ctx is identical to vgpu_gr_alloc_gr_ctx now.

Jira NVGPU-1527

Change-Id: I9c568569d1a744a5a91a4d72536e3654d545d53e
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1973424
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Richard Zhao
2018-12-14 11:16:38 -08:00
committed by mobile promotions
parent 5b1b9eeab1
commit e9066a46c9
4 changed files with 2 additions and 21 deletions

View File

@@ -34,22 +34,6 @@
#include <nvgpu/hw/gp10b/hw_gr_gp10b.h> #include <nvgpu/hw/gp10b/hw_gr_gp10b.h>
int vgpu_gr_gp10b_alloc_gr_ctx(struct gk20a *g,
struct nvgpu_gr_ctx *gr_ctx,
struct vm_gk20a *vm)
{
int err;
nvgpu_log_fn(g, " ");
err = vgpu_gr_alloc_gr_ctx(g, gr_ctx, vm);
if (err)
return err;
nvgpu_log_fn(g, "done");
return 0;
}
int vgpu_gr_gp10b_init_ctxsw_preemption_mode(struct gk20a *g, int vgpu_gr_gp10b_init_ctxsw_preemption_mode(struct gk20a *g,
struct nvgpu_gr_ctx *gr_ctx, struct nvgpu_gr_ctx *gr_ctx,
struct vm_gk20a *vm, struct vm_gk20a *vm,

View File

@@ -30,9 +30,6 @@ struct nvgpu_gr_ctx;
struct vm_gk20a; struct vm_gk20a;
struct channel_gk20a; struct channel_gk20a;
int vgpu_gr_gp10b_alloc_gr_ctx(struct gk20a *g,
struct nvgpu_gr_ctx *gr_ctx,
struct vm_gk20a *vm);
int vgpu_gr_gp10b_init_ctxsw_preemption_mode(struct gk20a *g, int vgpu_gr_gp10b_init_ctxsw_preemption_mode(struct gk20a *g,
struct nvgpu_gr_ctx *gr_ctx, struct nvgpu_gr_ctx *gr_ctx,
struct vm_gk20a *vm, struct vm_gk20a *vm,

View File

@@ -140,7 +140,7 @@ static const struct gpu_ops vgpu_gp10b_ops = {
.add_zbc = NULL, .add_zbc = NULL,
.pagepool_default_size = gr_gp10b_pagepool_default_size, .pagepool_default_size = gr_gp10b_pagepool_default_size,
.init_ctx_state = vgpu_gr_gp10b_init_ctx_state, .init_ctx_state = vgpu_gr_gp10b_init_ctx_state,
.alloc_gr_ctx = vgpu_gr_gp10b_alloc_gr_ctx, .alloc_gr_ctx = vgpu_gr_alloc_gr_ctx,
.free_gr_ctx = vgpu_gr_free_gr_ctx, .free_gr_ctx = vgpu_gr_free_gr_ctx,
.init_ctxsw_preemption_mode = .init_ctxsw_preemption_mode =
vgpu_gr_gp10b_init_ctxsw_preemption_mode, vgpu_gr_gp10b_init_ctxsw_preemption_mode,

View File

@@ -155,7 +155,7 @@ static const struct gpu_ops vgpu_gv11b_ops = {
.add_zbc = NULL, .add_zbc = NULL,
.pagepool_default_size = gr_gv11b_pagepool_default_size, .pagepool_default_size = gr_gv11b_pagepool_default_size,
.init_ctx_state = vgpu_gr_gp10b_init_ctx_state, .init_ctx_state = vgpu_gr_gp10b_init_ctx_state,
.alloc_gr_ctx = vgpu_gr_gp10b_alloc_gr_ctx, .alloc_gr_ctx = vgpu_gr_alloc_gr_ctx,
.free_gr_ctx = vgpu_gr_free_gr_ctx, .free_gr_ctx = vgpu_gr_free_gr_ctx,
.init_ctxsw_preemption_mode = .init_ctxsw_preemption_mode =
vgpu_gr_gp10b_init_ctxsw_preemption_mode, vgpu_gr_gp10b_init_ctxsw_preemption_mode,