mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
gpu: nvgpu: gv11b: init trigger_suspend gr ops
Add gv11b specific trigger_suspend function. SM register addresses have changed as compared to legacy gpu chips. JIRA GPUT19X-75 Change-Id: Ic3099e53bcba19128711a88ecc9e9883f5f7a31f Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master/r/1476532 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
c5e68d6afa
commit
fd80220dd3
@@ -2444,6 +2444,28 @@ static void gv11b_gr_get_esr_sm_sel(struct gk20a *g, u32 gpc, u32 tpc,
|
||||
"esr_sm_sel bitmask: 0x%x", *esr_sm_sel);
|
||||
}
|
||||
|
||||
static int gv11b_gr_sm_trigger_suspend(struct gk20a *g)
|
||||
{
|
||||
u32 dbgr_control0;
|
||||
|
||||
/* assert stop trigger. uniformity assumption: all SMs will have
|
||||
* the same state in dbg_control0.
|
||||
*/
|
||||
dbgr_control0 =
|
||||
gk20a_readl(g, gr_gpcs_tpcs_sms_dbgr_control0_r());
|
||||
dbgr_control0 |= gr_gpc0_tpc0_sm0_dbgr_control0_stop_trigger_enable_f();
|
||||
|
||||
/* broadcast write */
|
||||
gk20a_writel(g,
|
||||
gr_gpcs_tpcs_sms_dbgr_control0_r(), dbgr_control0);
|
||||
|
||||
gk20a_dbg(gpu_dbg_intr | gpu_dbg_gpu_dbg,
|
||||
"stop trigger enable: broadcast dbgr_control0: 0x%x ",
|
||||
dbgr_control0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void gv11b_init_gr(struct gpu_ops *gops)
|
||||
{
|
||||
gp10b_init_gr(gops);
|
||||
@@ -2506,4 +2528,5 @@ void gv11b_init_gr(struct gpu_ops *gops)
|
||||
gops->gr.handle_gpc_gpcmmu_exception =
|
||||
gr_gv11b_handle_gpc_gpcmmu_exception;
|
||||
gops->gr.get_esr_sm_sel = gv11b_gr_get_esr_sm_sel;
|
||||
gops->gr.trigger_suspend = gv11b_gr_sm_trigger_suspend;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user