From e229514bece5a109cdbfe263f6329efe987e5939 Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Wed, 28 Dec 2016 16:28:11 -0800 Subject: gpu: nvgpu: vgpu: receive event TEGRA_VGPU_EVENT_SM_ESR - allocate gr.sm_error_state - handle event of sm error state - add callback of clear sm error state JIRA VFND-3291 Bug 200257899 Change-Id: I49b9437013e8c65290750b7fe21fc6819ea93b1c Signed-off-by: Richard Zhao Reviewed-on: http://git-master/r/1278397 Reviewed-by: Aingara Paramakuru GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- include/linux/tegra_vgpu.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/linux/tegra_vgpu.h') diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h index 40f92aec..14449242 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h @@ -560,6 +560,15 @@ struct tegra_vgpu_channel_event_info { u32 id; /* channel id or tsg id */ }; +struct tegra_vgpu_sm_esr_info { + u32 sm_id; + u32 hww_global_esr; + u32 hww_warp_esr; + u64 hww_warp_esr_pc; + u32 hww_global_esr_report_mask; + u32 hww_warp_esr_report_mask; +}; + enum { TEGRA_VGPU_INTR_GR = 0, @@ -575,6 +584,7 @@ enum { TEGRA_VGPU_EVENT_ABORT = 1, TEGRA_VGPU_EVENT_FECS_TRACE = 2, TEGRA_VGPU_EVENT_CHANNEL = 3, + TEGRA_VGPU_EVENT_SM_ESR = 4, }; struct tegra_vgpu_intr_msg { @@ -588,6 +598,7 @@ struct tegra_vgpu_intr_msg { struct tegra_vgpu_ce2_nonstall_intr_info ce2_nonstall_intr; struct tegra_vgpu_fecs_trace_event_info fecs_trace; struct tegra_vgpu_channel_event_info channel_event; + struct tegra_vgpu_sm_esr_info sm_esr; char padding[32]; } info; }; -- cgit v1.2.2