summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/fb_gv11b.h
diff options
context:
space:
mode:
authorDavid Nieto <dmartineznie@nvidia.com>2017-05-05 17:22:06 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-11 09:04:33 -0400
commit8c246cb18df28bac83297df2c9d0c47725b94273 (patch)
treef0bc4bdd963b14ccafc9c888dd65d3485bb9bf5b /drivers/gpu/nvgpu/gv11b/fb_gv11b.h
parent44dcc5a53fabc68a32f16a1a3a46a2582b5b192b (diff)
gpu: nvgpu: gv11b: MMU parity HWW error intr
Adding support for ISR handling of ecc uncorrectable errors for volta resiliency (Volta-686) TODO: move interrupt init out of MC bug 1881052 JIRA: GPUT19X-82 Change-Id: I45db01a6062445dd1f64a8297744cd15105e3344 Signed-off-by: David Nieto <dmartineznie@nvidia.com> Reviewed-on: http://git-master/r/1476603 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fb_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fb_gv11b.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fb_gv11b.h b/drivers/gpu/nvgpu/gv11b/fb_gv11b.h
index ab688aba..eff3c25d 100644
--- a/drivers/gpu/nvgpu/gv11b/fb_gv11b.h
+++ b/drivers/gpu/nvgpu/gv11b/fb_gv11b.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * GV11B FB 2 * GV11B FB
3 * 3 *
4 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2016-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,
@@ -17,5 +17,32 @@
17#define _NVGPU_GV11B_FB 17#define _NVGPU_GV11B_FB
18struct gpu_ops; 18struct gpu_ops;
19 19
20#define STALL_REG_INDEX 0
21#define NONSTALL_REG_INDEX 1
22
23#define NONREPLAY_REG_INDEX 0
24#define REPLAY_REG_INDEX 1
25
26#define FAULT_BUF_DISABLED 0
27#define FAULT_BUF_ENABLED 1
28
29#define FAULT_BUF_VALID 1
30#define CHECK_NEXT_FAULT_BUF 1
31
32#define HUB_INTR_TYPE_OTHER 1 /* bit 0 */
33#define HUB_INTR_TYPE_NONREPLAY 2 /* bit 1 */
34#define HUB_INTR_TYPE_REPLAY 4 /* bit 2 */
35#define HUB_INTR_TYPE_ECC_UNCORRECTED 8 /* bit 3 */
36#define HUB_INTR_TYPE_ACCESS_COUNTER 16 /* bit 4 */
37#define HUB_INTR_TYPE_ALL (HUB_INTR_TYPE_OTHER | \
38 HUB_INTR_TYPE_NONREPLAY | \
39 HUB_INTR_TYPE_REPLAY | \
40 HUB_INTR_TYPE_ECC_UNCORRECTED | \
41 HUB_INTR_TYPE_ACCESS_COUNTER)
42
43void gv11b_fb_enable_hub_intr(struct gk20a *g,
44 unsigned int index, unsigned int intr_type);
45void gv11b_fb_disable_hub_intr(struct gk20a *g,
46 unsigned int index, unsigned int intr_type);
20void gv11b_init_fb(struct gpu_ops *gops); 47void gv11b_init_fb(struct gpu_ops *gops);
21#endif 48#endif