mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
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:
committed by
mobile promotions
parent
5b1b9eeab1
commit
e9066a46c9
@@ -34,22 +34,6 @@
|
||||
|
||||
#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,
|
||||
struct nvgpu_gr_ctx *gr_ctx,
|
||||
struct vm_gk20a *vm,
|
||||
|
||||
@@ -30,9 +30,6 @@ struct nvgpu_gr_ctx;
|
||||
struct vm_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,
|
||||
struct nvgpu_gr_ctx *gr_ctx,
|
||||
struct vm_gk20a *vm,
|
||||
|
||||
@@ -140,7 +140,7 @@ static const struct gpu_ops vgpu_gp10b_ops = {
|
||||
.add_zbc = NULL,
|
||||
.pagepool_default_size = gr_gp10b_pagepool_default_size,
|
||||
.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,
|
||||
.init_ctxsw_preemption_mode =
|
||||
vgpu_gr_gp10b_init_ctxsw_preemption_mode,
|
||||
|
||||
@@ -155,7 +155,7 @@ static const struct gpu_ops vgpu_gv11b_ops = {
|
||||
.add_zbc = NULL,
|
||||
.pagepool_default_size = gr_gv11b_pagepool_default_size,
|
||||
.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,
|
||||
.init_ctxsw_preemption_mode =
|
||||
vgpu_gr_gp10b_init_ctxsw_preemption_mode,
|
||||
|
||||
Reference in New Issue
Block a user