mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: add support for gsp stress test
Add debugfs entries to support GSP stress test and other functionalities to enable the test. JIRA CORERM-3382 Change-Id: Iab20fcfe78807e76e91c64716502a2f036ed4d18 Signed-off-by: ajeshkv <akv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2589390 Reviewed-by: Amit Pabalkar <apabalkar@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
a3e2283cf2
commit
118f8c1280
@@ -338,6 +338,12 @@ int nvgpu_prepare_poweroff(struct gk20a *g)
|
||||
ret = tmp_ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_GSP_STRESS_TEST
|
||||
ret = nvgpu_gsp_stress_test_halt(g, true);
|
||||
if (ret != 0)
|
||||
nvgpu_err(g, "Failed to halt GSP stress test");
|
||||
#endif
|
||||
|
||||
nvgpu_falcons_sw_free(g);
|
||||
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
@@ -360,6 +366,7 @@ int nvgpu_prepare_poweroff(struct gk20a *g)
|
||||
g->ops.clk_arb.stop_clk_arb_threads(g);
|
||||
}
|
||||
#endif
|
||||
|
||||
gk20a_mask_interrupts(g);
|
||||
|
||||
/* Disable CIC after the interrupts are masked;
|
||||
@@ -818,10 +825,6 @@ int nvgpu_finalize_poweron(struct gk20a *g)
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
NVGPU_INIT_TABLE_ENTRY(g->ops.sec2.init_sec2_setup_sw,
|
||||
NVGPU_SUPPORT_SEC2_RTOS),
|
||||
#endif
|
||||
#ifdef CONFIG_NVGPU_GSP_SCHEDULER
|
||||
/* Init gsp ops */
|
||||
NVGPU_INIT_TABLE_ENTRY(&nvgpu_gsp_sw_init, NO_FLAG),
|
||||
#endif
|
||||
NVGPU_INIT_TABLE_ENTRY(g->ops.acr.acr_init,
|
||||
NVGPU_SEC_PRIVSECURITY),
|
||||
@@ -902,6 +905,10 @@ int nvgpu_finalize_poweron(struct gk20a *g)
|
||||
#endif
|
||||
NVGPU_INIT_TABLE_ENTRY(g->ops.channel.resume_all_serviceable_ch,
|
||||
NO_FLAG),
|
||||
#if defined(CONFIG_NVGPU_GSP_SCHEDULER) || defined(CONFIG_NVGPU_GSP_STRESS_TEST)
|
||||
/* Init gsp ops */
|
||||
NVGPU_INIT_TABLE_ENTRY(&nvgpu_gsp_sw_init, NO_FLAG),
|
||||
#endif
|
||||
};
|
||||
size_t i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user