gpu: nvgpu: vgpu: add general event support

Events like bpt int/pause will help cuda work properly.

Bug 200173403
VFND-1568

Change-Id: I29e534969028bf08aedd81c99f5a536779f431d1
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/1159621
(cherry picked from commit a266e53c514639e15ed166e2c8ce5a55efc48eda)
Reviewed-on: http://git-master/r/1152154
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-05-23 18:35:34 -07:00
committed by Terje Bergstrom
parent c624f35383
commit 3735dba6f8
2 changed files with 43 additions and 1 deletions

View File

@@ -483,6 +483,12 @@ struct tegra_vgpu_fecs_trace_event_info {
u32 type;
};
struct tegra_vgpu_general_event_info {
u32 event_id;
u32 is_tsg;
u32 id; /* channel id or tsg id */
};
enum {
TEGRA_VGPU_INTR_GR = 0,
@@ -496,7 +502,8 @@ enum {
enum {
TEGRA_VGPU_EVENT_INTR = 0,
TEGRA_VGPU_EVENT_ABORT,
TEGRA_VGPU_EVENT_FECS_TRACE
TEGRA_VGPU_EVENT_FECS_TRACE,
TEGRA_VGPU_EVENT_CHANNEL,
};
struct tegra_vgpu_intr_msg {
@@ -509,6 +516,7 @@ struct tegra_vgpu_intr_msg {
struct tegra_vgpu_fifo_nonstall_intr_info fifo_nonstall_intr;
struct tegra_vgpu_ce2_nonstall_intr_info ce2_nonstall_intr;
struct tegra_vgpu_fecs_trace_event_info fecs_trace;
struct tegra_vgpu_general_event_info general_event;
char padding[32];
} info;
};