diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-05-08 09:07:09 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-24 07:38:19 -0400 |
commit | c1b78dd65d6d3269c4b25d38fc57975acca02a1a (patch) | |
tree | 67258aba47e4c0d1fabd214509fc0dd8aa1e943e /drivers/gpu/nvgpu/gk20a | |
parent | 2a0f678257eed156293569a1c00b29fe7d4e956d (diff) |
gpu: nvgpu: add HALs to enable/disable hub interrupts
Add below two new HALs
gops.fb.enable_hub_intr() to enable hub interrupts
gops.fb.disable_hub_intr() to disable hub interrupts
Set existing APIs gv11b_fb_enable/disable_hub_intr() to these HALs
Call the HALs everywhere instead of calling the APIs directly
Jira NVGPUT-44
Change-Id: Id299c6d228733ed365a71be6b180186776cc1306
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1725977
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index f6318257..01e0511d 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -515,6 +515,10 @@ struct gpu_ops { | |||
515 | int (*mem_unlock)(struct gk20a *g); | 515 | int (*mem_unlock)(struct gk20a *g); |
516 | int (*init_nvlink)(struct gk20a *g); | 516 | int (*init_nvlink)(struct gk20a *g); |
517 | int (*enable_nvlink)(struct gk20a *g); | 517 | int (*enable_nvlink)(struct gk20a *g); |
518 | void (*enable_hub_intr)(struct gk20a *g, unsigned int index, | ||
519 | unsigned int intr_type); | ||
520 | void (*disable_hub_intr)(struct gk20a *g, unsigned int index, | ||
521 | unsigned int intr_type); | ||
518 | } fb; | 522 | } fb; |
519 | struct { | 523 | struct { |
520 | void (*slcg_bus_load_gating_prod)(struct gk20a *g, bool prod); | 524 | void (*slcg_bus_load_gating_prod)(struct gk20a *g, bool prod); |