diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index a703ef9d..8c21a714 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |||
@@ -24,6 +24,8 @@ | |||
24 | #ifndef GR_GK20A_H | 24 | #ifndef GR_GK20A_H |
25 | #define GR_GK20A_H | 25 | #define GR_GK20A_H |
26 | 26 | ||
27 | #include <nvgpu/types.h> | ||
28 | |||
27 | #include "gr_ctx_gk20a.h" | 29 | #include "gr_ctx_gk20a.h" |
28 | #include "mm_gk20a.h" | 30 | #include "mm_gk20a.h" |
29 | 31 | ||
@@ -566,7 +568,7 @@ int gk20a_init_gr_channel(struct channel_gk20a *ch_gk20a); | |||
566 | int gk20a_alloc_obj_ctx(struct channel_gk20a *c, u32 class_num, u32 flags); | 568 | int gk20a_alloc_obj_ctx(struct channel_gk20a *c, u32 class_num, u32 flags); |
567 | 569 | ||
568 | int gk20a_gr_isr(struct gk20a *g); | 570 | int gk20a_gr_isr(struct gk20a *g); |
569 | int gk20a_gr_nonstall_isr(struct gk20a *g); | 571 | u32 gk20a_gr_nonstall_isr(struct gk20a *g); |
570 | 572 | ||
571 | /* zcull */ | 573 | /* zcull */ |
572 | u32 gr_gk20a_get_ctxsw_zcull_size(struct gk20a *g, struct gr_gk20a *gr); | 574 | u32 gr_gk20a_get_ctxsw_zcull_size(struct gk20a *g, struct gr_gk20a *gr); |
@@ -603,15 +605,17 @@ u32 gk20a_gr_get_sm_no_lock_down_hww_global_esr_mask(struct gk20a *g); | |||
603 | #define gr_gk20a_elpg_protected_call(g, func) \ | 605 | #define gr_gk20a_elpg_protected_call(g, func) \ |
604 | ({ \ | 606 | ({ \ |
605 | int err = 0; \ | 607 | int err = 0; \ |
606 | if (g->support_pmu && g->elpg_enabled) {\ | 608 | if ((g->support_pmu) && (g->elpg_enabled)) {\ |
607 | err = nvgpu_pmu_disable_elpg(g); \ | 609 | err = nvgpu_pmu_disable_elpg(g); \ |
608 | if (err) \ | 610 | if (err != 0) {\ |
609 | nvgpu_pmu_enable_elpg(g); \ | 611 | nvgpu_pmu_enable_elpg(g); \ |
612 | } \ | ||
610 | } \ | 613 | } \ |
611 | if (!err) { \ | 614 | if (err == 0) { \ |
612 | err = func; \ | 615 | err = func; \ |
613 | if (g->support_pmu && g->elpg_enabled) \ | 616 | if ((g->support_pmu) && (g->elpg_enabled)) {\ |
614 | nvgpu_pmu_enable_elpg(g); \ | 617 | nvgpu_pmu_enable_elpg(g); \ |
618 | } \ | ||
615 | } \ | 619 | } \ |
616 | err; \ | 620 | err; \ |
617 | }) | 621 | }) |