diff options
author | Richard Zhao <rizhao@nvidia.com> | 2016-12-28 19:28:11 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-06 18:02:24 -0500 |
commit | e229514bece5a109cdbfe263f6329efe987e5939 (patch) | |
tree | 5900d1bcf0067e1109ebfe1666f9ae19239c4006 /drivers/gpu/nvgpu/vgpu/vgpu.h | |
parent | ecc3722aa1d7cd439035b0895781930871008a82 (diff) |
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>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.h')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.h b/drivers/gpu/nvgpu/vgpu/vgpu.h index 4a7a6b6c..e64b31b4 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.h +++ b/drivers/gpu/nvgpu/vgpu/vgpu.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Virtualized GPU Interfaces | 2 | * Virtualized GPU Interfaces |
3 | * | 3 | * |
4 | * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -73,6 +73,8 @@ int vgpu_gr_alloc_gr_ctx(struct gk20a *g, | |||
73 | u32 flags); | 73 | u32 flags); |
74 | void vgpu_gr_free_gr_ctx(struct gk20a *g, struct vm_gk20a *vm, | 74 | void vgpu_gr_free_gr_ctx(struct gk20a *g, struct vm_gk20a *vm, |
75 | struct gr_ctx_desc *gr_ctx); | 75 | struct gr_ctx_desc *gr_ctx); |
76 | void vgpu_gr_handle_sm_esr_event(struct gk20a *g, | ||
77 | struct tegra_vgpu_sm_esr_info *info); | ||
76 | int vgpu_gr_init_ctx_state(struct gk20a *g); | 78 | int vgpu_gr_init_ctx_state(struct gk20a *g); |
77 | int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info); | 79 | int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info); |
78 | int vgpu_fifo_nonstall_isr(struct gk20a *g, | 80 | int vgpu_fifo_nonstall_isr(struct gk20a *g, |