diff --git a/drivers/gpu/nvgpu/common/init/nvgpu_init.c b/drivers/gpu/nvgpu/common/init/nvgpu_init.c index cdbceae8f..39eeaa182 100644 --- a/drivers/gpu/nvgpu/common/init/nvgpu_init.c +++ b/drivers/gpu/nvgpu/common/init/nvgpu_init.c @@ -659,7 +659,7 @@ int nvgpu_finalize_poweron(struct gk20a *g) NVGPU_INIT_TABLE_ENTRY(&nvgpu_netlist_init_ctx_vars, NO_FLAG), /* prepare portion of sw required for enable hw */ NVGPU_INIT_TABLE_ENTRY(&nvgpu_gr_alloc, NO_FLAG), - NVGPU_INIT_TABLE_ENTRY(g->ops.gr.gr_enable_hw, NO_FLAG), + NVGPU_INIT_TABLE_ENTRY(&nvgpu_gr_enable_hw, NO_FLAG), NVGPU_INIT_TABLE_ENTRY(g->ops.acr.acr_construct_execute, NVGPU_SEC_PRIVSECURITY), #ifdef CONFIG_NVGPU_DGPU diff --git a/drivers/gpu/nvgpu/hal/init/hal_gm20b.c b/drivers/gpu/nvgpu/hal/init/hal_gm20b.c index 4f1b3c4cf..37e8a693f 100644 --- a/drivers/gpu/nvgpu/hal/init/hal_gm20b.c +++ b/drivers/gpu/nvgpu/hal/init/hal_gm20b.c @@ -190,7 +190,6 @@ static const struct gpu_ops gm20b_ops = { .isr_nonstall = gk20a_ce2_nonstall_isr, }, .gr = { - .gr_enable_hw = nvgpu_gr_enable_hw, .gr_init_support = nvgpu_gr_init_support, .gr_suspend = nvgpu_gr_suspend, #ifdef CONFIG_NVGPU_DEBUGGER diff --git a/drivers/gpu/nvgpu/hal/init/hal_gp10b.c b/drivers/gpu/nvgpu/hal/init/hal_gp10b.c index 52121bfaa..6555ba5cb 100644 --- a/drivers/gpu/nvgpu/hal/init/hal_gp10b.c +++ b/drivers/gpu/nvgpu/hal/init/hal_gp10b.c @@ -238,7 +238,6 @@ static const struct gpu_ops gp10b_ops = { .isr_nonstall = gp10b_ce_nonstall_isr, }, .gr = { - .gr_enable_hw = nvgpu_gr_enable_hw, .gr_init_support = nvgpu_gr_init_support, .gr_suspend = nvgpu_gr_suspend, #ifdef CONFIG_NVGPU_DEBUGGER diff --git a/drivers/gpu/nvgpu/hal/init/hal_gv11b.c b/drivers/gpu/nvgpu/hal/init/hal_gv11b.c index 800755f27..ce6848312 100644 --- a/drivers/gpu/nvgpu/hal/init/hal_gv11b.c +++ b/drivers/gpu/nvgpu/hal/init/hal_gv11b.c @@ -305,7 +305,6 @@ NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Rule, 8_7)) .init_prod_values = gv11b_ce_init_prod_values, }, .gr = { - .gr_enable_hw = nvgpu_gr_enable_hw, .gr_init_support = nvgpu_gr_init_support, .gr_suspend = nvgpu_gr_suspend, #ifdef CONFIG_NVGPU_DEBUGGER diff --git a/drivers/gpu/nvgpu/hal/init/hal_tu104.c b/drivers/gpu/nvgpu/hal/init/hal_tu104.c index 567503950..7dab3bcc4 100644 --- a/drivers/gpu/nvgpu/hal/init/hal_tu104.c +++ b/drivers/gpu/nvgpu/hal/init/hal_tu104.c @@ -350,7 +350,6 @@ static const struct gpu_ops tu104_ops = { .init_prod_values = gv11b_ce_init_prod_values, }, .gr = { - .gr_enable_hw = nvgpu_gr_enable_hw, .gr_init_support = nvgpu_gr_init_support, .gr_suspend = nvgpu_gr_suspend, #ifdef CONFIG_NVGPU_DEBUGGER diff --git a/drivers/gpu/nvgpu/hal/vgpu/init/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/hal/vgpu/init/vgpu_hal_gp10b.c index 34ae636df..25cc22a26 100644 --- a/drivers/gpu/nvgpu/hal/vgpu/init/vgpu_hal_gp10b.c +++ b/drivers/gpu/nvgpu/hal/vgpu/init/vgpu_hal_gp10b.c @@ -175,7 +175,6 @@ static const struct gpu_ops vgpu_gp10b_ops = { .get_num_pce = vgpu_ce_get_num_pce, }, .gr = { - .gr_enable_hw = nvgpu_gr_enable_hw, .gr_init_support = nvgpu_gr_init_support, .gr_suspend = nvgpu_gr_suspend, #ifdef CONFIG_NVGPU_DEBUGGER diff --git a/drivers/gpu/nvgpu/hal/vgpu/init/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/hal/vgpu/init/vgpu_hal_gv11b.c index 471aef7c7..f851f09df 100644 --- a/drivers/gpu/nvgpu/hal/vgpu/init/vgpu_hal_gv11b.c +++ b/drivers/gpu/nvgpu/hal/vgpu/init/vgpu_hal_gv11b.c @@ -234,7 +234,6 @@ static const struct gpu_ops vgpu_gv11b_ops = { .get_num_pce = vgpu_ce_get_num_pce, }, .gr = { - .gr_enable_hw = nvgpu_gr_enable_hw, .gr_init_support = nvgpu_gr_init_support, .gr_suspend = nvgpu_gr_suspend, #ifdef CONFIG_NVGPU_DEBUGGER diff --git a/drivers/gpu/nvgpu/include/nvgpu/gops_gr.h b/drivers/gpu/nvgpu/include/nvgpu/gops_gr.h index 8fa77405c..b35d5f0ed 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gops_gr.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gops_gr.h @@ -998,22 +998,6 @@ struct gops_gr_zcull { * @see gpu_ops */ struct gops_gr { - /** - * @brief Enable GR engine h/w. - * - * @param g [in] Pointer to GPU driver struct. - * - * This HAL enables GR engine h/w. - * This HAL always maps to #nvgpu_gr_enable_hw. - * - * @return 0 in case of success, < 0 in case of failure. - * @retval -ETIMEDOUT if falcon mem scrubbing times out. - * @retval -EAGAIN if GR engine idle wait times out. - * - * @see nvgpu_gr_enable_hw - */ - int (*gr_enable_hw)(struct gk20a *g); - /** * @brief Initialize GR engine support. * diff --git a/userspace/units/gr/nvgpu-gr.h b/userspace/units/gr/nvgpu-gr.h index a51825faa..52b4e4ca8 100644 --- a/userspace/units/gr/nvgpu-gr.h +++ b/userspace/units/gr/nvgpu-gr.h @@ -83,7 +83,7 @@ int test_gr_remove_setup(struct unit_module *m, struct gk20a *g, void *args); * * Test Type: Feature * - * Targets: gops_gr.gr_enable_hw, nvgpu_gr_enable_hw, + * Targets: nvgpu_gr_enable_hw, * gops_gr_intr.enable_hww_exceptions, * gv11b_gr_intr_enable_hww_exceptions, * gops_gr_intr.enable_interrupts, diff --git a/userspace/units/init/nvgpu-init.c b/userspace/units/init/nvgpu-init.c index 3787bb04f..5a1525fe3 100644 --- a/userspace/units/init/nvgpu-init.c +++ b/userspace/units/init/nvgpu-init.c @@ -404,7 +404,6 @@ static void set_poweron_funcs_success(struct gk20a *g) setup_simple_init_func_success(&g->ops.mm.init_mm_support, i++); setup_simple_init_func_success(&g->ops.fifo.fifo_init_support, i++); setup_simple_init_func_success(&g->ops.therm.elcg_init_idle_filters, i++); - setup_simple_init_func_success(&g->ops.gr.gr_enable_hw, i++); setup_simple_init_func_success(&g->ops.fbp.fbp_init_support, i++); setup_simple_init_func_success(&g->ops.gr.gr_init_support, i++); setup_simple_init_func_success(&g->ops.ecc.ecc_finalize_support, i++);