mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: vgpu: allow disabling of ctxsw tracing
Fixed build failure that occurred when disabling FECS ctxsw tracing using CONFIG_GK20A_CTXSW_TRACE. JIRA EVLR-2162 Change-Id: I751eba835c5f3f527571167e8b05fadb9687c64d Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1617557 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Richard Zhao <rizhao@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Aparna Das <aparnad@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Dennis Kou <dkou@nvidia.com> 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
159d77a69d
commit
28a642f6bb
@@ -191,9 +191,11 @@ static int vgpu_intr_thread(void *dev_id)
|
||||
vgpu_ce2_nonstall_isr(g,
|
||||
&msg->info.ce2_nonstall_intr);
|
||||
break;
|
||||
#ifdef CONFIG_GK20A_CTXSW_TRACE
|
||||
case TEGRA_VGPU_EVENT_FECS_TRACE:
|
||||
vgpu_fecs_trace_data_update(g);
|
||||
break;
|
||||
#endif
|
||||
case TEGRA_VGPU_EVENT_CHANNEL:
|
||||
vgpu_handle_channel_event(g, &msg->info.channel_event);
|
||||
break;
|
||||
@@ -508,7 +510,9 @@ int vgpu_pm_finalize_poweron(struct device *dev)
|
||||
if (err)
|
||||
goto done;
|
||||
|
||||
#ifdef CONFIG_GK20A_CTXSW_TRACE
|
||||
gk20a_ctxsw_trace_init(g);
|
||||
#endif
|
||||
gk20a_sched_ctrl_init(g);
|
||||
gk20a_channel_resume(g);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user