diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 24c062d2..01d1a167 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -206,6 +206,7 @@ struct gpu_ops { | |||
206 | bool *post_event, struct channel_gk20a *fault_ch); | 206 | bool *post_event, struct channel_gk20a *fault_ch); |
207 | int (*handle_tex_exception)(struct gk20a *g, u32 gpc, u32 tpc, | 207 | int (*handle_tex_exception)(struct gk20a *g, u32 gpc, u32 tpc, |
208 | bool *post_event); | 208 | bool *post_event); |
209 | void (*create_gr_sysfs)(struct platform_device *dev); | ||
209 | } gr; | 210 | } gr; |
210 | const char *name; | 211 | const char *name; |
211 | struct { | 212 | struct { |
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 4d3f5068..9cf094db 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -4449,6 +4449,9 @@ static int gk20a_init_gr_setup_sw(struct gk20a *g) | |||
4449 | gr->remove_support = gk20a_remove_gr_support; | 4449 | gr->remove_support = gk20a_remove_gr_support; |
4450 | gr->sw_ready = true; | 4450 | gr->sw_ready = true; |
4451 | 4451 | ||
4452 | if (g->ops.gr.create_gr_sysfs) | ||
4453 | g->ops.gr.create_gr_sysfs(g->dev); | ||
4454 | |||
4452 | gk20a_dbg_fn("done"); | 4455 | gk20a_dbg_fn("done"); |
4453 | return 0; | 4456 | return 0; |
4454 | 4457 | ||