summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/vgpu.h
diff options
context:
space:
mode:
authorRichard Zhao <rizhao@nvidia.com>2016-12-28 19:28:11 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-06 18:02:24 -0500
commite229514bece5a109cdbfe263f6329efe987e5939 (patch)
tree5900d1bcf0067e1109ebfe1666f9ae19239c4006 /drivers/gpu/nvgpu/vgpu/vgpu.h
parentecc3722aa1d7cd439035b0895781930871008a82 (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.h4
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);
74void vgpu_gr_free_gr_ctx(struct gk20a *g, struct vm_gk20a *vm, 74void 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);
76void vgpu_gr_handle_sm_esr_event(struct gk20a *g,
77 struct tegra_vgpu_sm_esr_info *info);
76int vgpu_gr_init_ctx_state(struct gk20a *g); 78int vgpu_gr_init_ctx_state(struct gk20a *g);
77int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info); 79int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info);
78int vgpu_fifo_nonstall_isr(struct gk20a *g, 80int vgpu_fifo_nonstall_isr(struct gk20a *g,