summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100/hal_gv100.c
diff options
context:
space:
mode:
authorNitin Kumbhar <nkumbhar@nvidia.com>2018-07-04 13:26:58 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-31 06:22:16 -0400
commit13cc7ea93dabdbc57dcf4c6e567e7fbdb12e8d2b (patch)
tree76f013e8b860c81ccee5b294ad9cbe241fd6e08f /drivers/gpu/nvgpu/gv100/hal_gv100.c
parent2d454db04fcc0c03e05b4665831e5780240d79b8 (diff)
gpu: nvgpu: mask intr before gpu power off
once gpu is powered off i.e. power_on set to false, nvgpu isr does not handle stall/nonstall irq. Depending upon state of gpu, this can result in either of following errors: 1) irq 458: nobody cared (try booting with the "irqpoll" option) 2) "HSM ERROR 42, GPU" from SCE if it detects that an interrupt is not in time. Fix these by masking all interrupts just before gpu power off as nvgpu won't be handling any irq anymore. While masking interrupts, if there are any pending interrupts, then report those with a log message. Bug 1987855 Bug 200424832 Change-Id: I95b087f5c24d439e5da26c6e4fff74d8a525f291 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1770802 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv100/hal_gv100.c')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index 6339110e..55984add 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -785,6 +785,7 @@ static const struct gpu_ops gv100_ops = {
785 .apply_smpc_war = gv100_apply_smpc_war, 785 .apply_smpc_war = gv100_apply_smpc_war,
786 }, 786 },
787 .mc = { 787 .mc = {
788 .intr_mask = mc_gp10b_intr_mask,
788 .intr_enable = mc_gv100_intr_enable, 789 .intr_enable = mc_gv100_intr_enable,
789 .intr_unit_config = mc_gp10b_intr_unit_config, 790 .intr_unit_config = mc_gp10b_intr_unit_config,
790 .isr_stall = mc_gp10b_isr_stall, 791 .isr_stall = mc_gp10b_isr_stall,
@@ -799,6 +800,7 @@ static const struct gpu_ops gv100_ops = {
799 .disable = gk20a_mc_disable, 800 .disable = gk20a_mc_disable,
800 .reset = gk20a_mc_reset, 801 .reset = gk20a_mc_reset,
801 .boot_0 = gk20a_mc_boot_0, 802 .boot_0 = gk20a_mc_boot_0,
803 .log_pending_intrs = mc_gp10b_log_pending_intrs,
802 .is_intr1_pending = mc_gp10b_is_intr1_pending, 804 .is_intr1_pending = mc_gp10b_is_intr1_pending,
803 .is_intr_hub_pending = gv11b_mc_is_intr_hub_pending, 805 .is_intr_hub_pending = gv11b_mc_is_intr_hub_pending,
804 .is_intr_nvlink_pending = gv100_mc_is_intr_nvlink_pending, 806 .is_intr_nvlink_pending = gv100_mc_is_intr_nvlink_pending,