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 <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/1278397
Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Richard Zhao
2016-12-28 16:28:11 -08:00
committed by mobile promotions
parent ecc3722aa1
commit e229514bec
4 changed files with 70 additions and 2 deletions

View File

@@ -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;
};