summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/fb_gv11b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fb_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fb_gv11b.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fb_gv11b.c b/drivers/gpu/nvgpu/gv11b/fb_gv11b.c
index 9588287f..61b23711 100644
--- a/drivers/gpu/nvgpu/gv11b/fb_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/fb_gv11b.c
@@ -23,6 +23,7 @@
23#include "gv11b/fb_gv11b.h" 23#include "gv11b/fb_gv11b.h"
24 24
25#include <nvgpu/hw/gv11b/hw_gmmu_gv11b.h> 25#include <nvgpu/hw/gv11b/hw_gmmu_gv11b.h>
26#include <nvgpu/hw/gv11b/hw_fb_gv11b.h>
26 27
27static void gv11b_init_uncompressed_kind_map(void) 28static void gv11b_init_uncompressed_kind_map(void)
28{ 29{
@@ -73,10 +74,26 @@ static void gv11b_init_kind_attr(void)
73 } 74 }
74} 75}
75 76
77static void gv11b_fb_hub_isr(struct gk20a *g)
78{
79 u32 niso_intr = gk20a_readl(g, fb_niso_intr_r());
80
81 gk20a_dbg_info("enter hub isr, niso_intr = 0x%x", niso_intr);
82
83 if (niso_intr &
84 (fb_niso_intr_hub_access_counter_notify_pending_f() |
85 fb_niso_intr_hub_access_counter_error_pending_f())) {
86
87 gk20a_dbg_info("hub access counter notify/error");
88 } else {
89 gk20a_dbg_info("mmu fault : TODO");
90 }
91}
92
76void gv11b_init_fb(struct gpu_ops *gops) 93void gv11b_init_fb(struct gpu_ops *gops)
77{ 94{
78 gp10b_init_fb(gops); 95 gp10b_init_fb(gops);
79 96 gops->fb.hub_isr = gv11b_fb_hub_isr;
80 gv11b_init_uncompressed_kind_map(); 97 gv11b_init_uncompressed_kind_map();
81 gv11b_init_kind_attr(); 98 gv11b_init_kind_attr();
82 99