diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-04-25 06:08:49 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-07 12:45:14 -0400 |
commit | 15ec5722be8f483f6d9c1cd0bfd61a7e2bcbfca2 (patch) | |
tree | 8bc083a63442113d8a9773b555ae3d1bff8958df /drivers/gpu/nvgpu/vgpu | |
parent | bb7ed28ab17ce68c71838bc2aa3fd6e2a0a71a15 (diff) |
gpu: nvgpu: add HAL to handle nonstall interrupts
Add new HAL gops.mc.isr_nonstall() to handle nonstall interrupts
We already handle nonstall interrupts in nvgpu_intr_nonstall()
But this API is completely in linux specific code
Separate out os-independent code to handle nonstall interrupts in new API
mc_gk20a_isr_nonstall() and set it to HAL gops.mc.isr_nonstall() for all
existing chips
Call this HAL from nvgpu_intr_nonstall()
Jira NVGPUT-8
Change-Id: Iec6a56db03158a72a256f7eee8989a0a8a42ae2f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1706589
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c index 78b8d012..6b593359 100644 --- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | |||
@@ -494,6 +494,7 @@ static const struct gpu_ops vgpu_gp10b_ops = { | |||
494 | .intr_nonstall = mc_gp10b_intr_nonstall, | 494 | .intr_nonstall = mc_gp10b_intr_nonstall, |
495 | .intr_nonstall_pause = mc_gp10b_intr_nonstall_pause, | 495 | .intr_nonstall_pause = mc_gp10b_intr_nonstall_pause, |
496 | .intr_nonstall_resume = mc_gp10b_intr_nonstall_resume, | 496 | .intr_nonstall_resume = mc_gp10b_intr_nonstall_resume, |
497 | .isr_nonstall = mc_gk20a_isr_nonstall, | ||
497 | .enable = gk20a_mc_enable, | 498 | .enable = gk20a_mc_enable, |
498 | .disable = gk20a_mc_disable, | 499 | .disable = gk20a_mc_disable, |
499 | .reset = gk20a_mc_reset, | 500 | .reset = gk20a_mc_reset, |
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c index deb5f37f..1b78a4c9 100644 --- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c +++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | |||
@@ -541,6 +541,7 @@ static const struct gpu_ops vgpu_gv11b_ops = { | |||
541 | .intr_nonstall = mc_gp10b_intr_nonstall, | 541 | .intr_nonstall = mc_gp10b_intr_nonstall, |
542 | .intr_nonstall_pause = mc_gp10b_intr_nonstall_pause, | 542 | .intr_nonstall_pause = mc_gp10b_intr_nonstall_pause, |
543 | .intr_nonstall_resume = mc_gp10b_intr_nonstall_resume, | 543 | .intr_nonstall_resume = mc_gp10b_intr_nonstall_resume, |
544 | .isr_nonstall = mc_gk20a_isr_nonstall, | ||
544 | .enable = gk20a_mc_enable, | 545 | .enable = gk20a_mc_enable, |
545 | .disable = gk20a_mc_disable, | 546 | .disable = gk20a_mc_disable, |
546 | .reset = gk20a_mc_reset, | 547 | .reset = gk20a_mc_reset, |