summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/fb_gv11b.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fb_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fb_gv11b.h22
1 files changed, 4 insertions, 18 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fb_gv11b.h b/drivers/gpu/nvgpu/gv11b/fb_gv11b.h
index 0431568d..34988bd2 100644
--- a/drivers/gpu/nvgpu/gv11b/fb_gv11b.h
+++ b/drivers/gpu/nvgpu/gv11b/fb_gv11b.h
@@ -25,9 +25,6 @@
25#ifndef _NVGPU_GV11B_FB 25#ifndef _NVGPU_GV11B_FB
26#define _NVGPU_GV11B_FB 26#define _NVGPU_GV11B_FB
27 27
28#define STALL_REG_INDEX 0
29#define NONSTALL_REG_INDEX 1
30
31#define NONREPLAY_REG_INDEX 0 28#define NONREPLAY_REG_INDEX 0
32#define REPLAY_REG_INDEX 1 29#define REPLAY_REG_INDEX 1
33 30
@@ -37,22 +34,13 @@
37#define FAULT_BUF_INVALID 0 34#define FAULT_BUF_INVALID 0
38#define FAULT_BUF_VALID 1 35#define FAULT_BUF_VALID 1
39 36
40#define HUB_INTR_TYPE_OTHER 1U /* bit 0 */
41#define HUB_INTR_TYPE_NONREPLAY 2U /* bit 1 */
42#define HUB_INTR_TYPE_REPLAY 4U /* bit 2 */
43#define HUB_INTR_TYPE_ECC_UNCORRECTED 8U /* bit 3 */
44#define HUB_INTR_TYPE_ACCESS_COUNTER 16U /* bit 4 */
45#define HUB_INTR_TYPE_ALL (HUB_INTR_TYPE_OTHER | \
46 HUB_INTR_TYPE_NONREPLAY | \
47 HUB_INTR_TYPE_REPLAY | \
48 HUB_INTR_TYPE_ECC_UNCORRECTED | \
49 HUB_INTR_TYPE_ACCESS_COUNTER)
50
51#define FAULT_TYPE_OTHER_AND_NONREPLAY 0 37#define FAULT_TYPE_OTHER_AND_NONREPLAY 0
52#define FAULT_TYPE_REPLAY 1 38#define FAULT_TYPE_REPLAY 1
53 39
54struct gk20a; 40struct gk20a;
55 41
42void gv11b_fb_init_hw(struct gk20a *g);
43
56void gv11b_fb_init_fs_state(struct gk20a *g); 44void gv11b_fb_init_fs_state(struct gk20a *g);
57void gv11b_fb_init_cbc(struct gk20a *g, struct gr_gk20a *gr); 45void gv11b_fb_init_cbc(struct gk20a *g, struct gr_gk20a *gr);
58void gv11b_fb_reset(struct gk20a *g); 46void gv11b_fb_reset(struct gk20a *g);
@@ -63,10 +51,8 @@ u32 gv11b_fb_is_fault_buf_enabled(struct gk20a *g,
63void gv11b_fb_fault_buf_set_state_hw(struct gk20a *g, 51void gv11b_fb_fault_buf_set_state_hw(struct gk20a *g,
64 unsigned int index, unsigned int state); 52 unsigned int index, unsigned int state);
65void gv11b_fb_fault_buf_configure_hw(struct gk20a *g, unsigned int index); 53void gv11b_fb_fault_buf_configure_hw(struct gk20a *g, unsigned int index);
66void gv11b_fb_enable_hub_intr(struct gk20a *g, 54void gv11b_fb_enable_hub_intr(struct gk20a *g);
67 unsigned int index, unsigned int intr_type); 55void gv11b_fb_disable_hub_intr(struct gk20a *g);
68void gv11b_fb_disable_hub_intr(struct gk20a *g,
69 unsigned int index, unsigned int intr_type);
70bool gv11b_fb_mmu_fault_pending(struct gk20a *g); 56bool gv11b_fb_mmu_fault_pending(struct gk20a *g);
71void gv11b_fb_handle_dropped_mmu_fault(struct gk20a *g, u32 fault_status); 57void gv11b_fb_handle_dropped_mmu_fault(struct gk20a *g, u32 fault_status);
72void gv11b_fb_handle_other_fault_notify(struct gk20a *g, 58void gv11b_fb_handle_other_fault_notify(struct gk20a *g,