diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2018-07-04 13:26:58 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-31 06:22:16 -0400 |
commit | 13cc7ea93dabdbc57dcf4c6e567e7fbdb12e8d2b (patch) | |
tree | 76f013e8b860c81ccee5b294ad9cbe241fd6e08f /drivers/gpu/nvgpu/gk20a/mc_gk20a.h | |
parent | 2d454db04fcc0c03e05b4665831e5780240d79b8 (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/gk20a/mc_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mc_gk20a.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mc_gk20a.h b/drivers/gpu/nvgpu/gk20a/mc_gk20a.h index 1b59d634..0dfdf906 100644 --- a/drivers/gpu/nvgpu/gk20a/mc_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mc_gk20a.h | |||
@@ -24,6 +24,7 @@ | |||
24 | #define MC_GK20A_H | 24 | #define MC_GK20A_H |
25 | struct gk20a; | 25 | struct gk20a; |
26 | 26 | ||
27 | void mc_gk20a_intr_mask(struct gk20a *g); | ||
27 | void mc_gk20a_intr_enable(struct gk20a *g); | 28 | void mc_gk20a_intr_enable(struct gk20a *g); |
28 | void mc_gk20a_intr_unit_config(struct gk20a *g, bool enable, | 29 | void mc_gk20a_intr_unit_config(struct gk20a *g, bool enable, |
29 | bool is_stalling, u32 mask); | 30 | bool is_stalling, u32 mask); |
@@ -41,5 +42,7 @@ void gk20a_mc_reset(struct gk20a *g, u32 units); | |||
41 | u32 gk20a_mc_boot_0(struct gk20a *g, u32 *arch, u32 *impl, u32 *rev); | 42 | u32 gk20a_mc_boot_0(struct gk20a *g, u32 *arch, u32 *impl, u32 *rev); |
42 | bool mc_gk20a_is_intr1_pending(struct gk20a *g, | 43 | bool mc_gk20a_is_intr1_pending(struct gk20a *g, |
43 | enum nvgpu_unit unit, u32 mc_intr_1); | 44 | enum nvgpu_unit unit, u32 mc_intr_1); |
45 | void mc_gk20a_log_pending_intrs(struct gk20a *g); | ||
44 | void mc_gk20a_handle_intr_nonstall(struct gk20a *g, u32 ops); | 46 | void mc_gk20a_handle_intr_nonstall(struct gk20a *g, u32 ops); |
47 | |||
45 | #endif /* MC_GK20A_H */ | 48 | #endif /* MC_GK20A_H */ |