mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: remove g->ops.gr.alloc_gr_ctx() hal
Common code now directly calls gr_gk20a_alloc_gr_ctx() and vgpu code directly calls vgpu_gr_alloc_gr_ctx() Remove g->ops.gr.alloc_gr_ctx() hal since it is no longer required Jira NVGPU-1887 Change-Id: I65d19f4a8ae62967ff67d6f69b5af1b46abf9c1a Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2075233 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
6a315a5a6d
commit
dbcce79b55
@@ -1877,7 +1877,7 @@ int gr_gk20a_alloc_global_ctx_buffers(struct gk20a *g)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int gr_gk20a_alloc_gr_ctx(struct gk20a *g,
|
||||
static int gr_gk20a_alloc_gr_ctx(struct gk20a *g,
|
||||
struct nvgpu_gr_ctx *gr_ctx, struct vm_gk20a *vm)
|
||||
{
|
||||
struct gr_gk20a *gr = &g->gr;
|
||||
@@ -1962,7 +1962,7 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c, u32 class_num, u32 flags)
|
||||
if (!nvgpu_mem_is_valid(&gr_ctx->mem)) {
|
||||
tsg->vm = c->vm;
|
||||
nvgpu_vm_get(tsg->vm);
|
||||
err = g->ops.gr.alloc_gr_ctx(g, gr_ctx, tsg->vm);
|
||||
err = gr_gk20a_alloc_gr_ctx(g, gr_ctx, tsg->vm);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g,
|
||||
"fail to allocate TSG gr ctx buffer");
|
||||
|
||||
Reference in New Issue
Block a user