mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
Revert "gpu: nvgpu: reorder disable_irq"
This reverts commit 6bbc169d33.
channel_suspend() might cause new interrupts to trigger,
and if irqs are already disabled, then these interrupts will
not get served
Hence revert this patch, and move disable_irq() to
original place
Bug 200207867
Change-Id: I45617a1a0aa9a1f805dd937a34ebb572a61c05c0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1169380
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
This commit is contained in:
committed by
Bharat Nihalani
parent
a79135eacb
commit
fa4b21f604
@@ -705,13 +705,6 @@ static int gk20a_pm_prepare_poweroff(struct device *dev)
|
||||
if (!g->power_on)
|
||||
goto done;
|
||||
|
||||
/*
|
||||
* After this point, gk20a interrupts should not get
|
||||
* serviced.
|
||||
*/
|
||||
disable_irq(g->irq_stall);
|
||||
disable_irq(g->irq_nonstall);
|
||||
|
||||
gk20a_scale_suspend(dev);
|
||||
|
||||
/* cancel any pending cde work */
|
||||
@@ -723,6 +716,12 @@ static int gk20a_pm_prepare_poweroff(struct device *dev)
|
||||
|
||||
/* disable elpg before gr or fifo suspend */
|
||||
ret |= gk20a_pmu_destroy(g);
|
||||
/*
|
||||
* After this point, gk20a interrupts should not get
|
||||
* serviced.
|
||||
*/
|
||||
disable_irq(g->irq_stall);
|
||||
disable_irq(g->irq_nonstall);
|
||||
|
||||
ret |= gk20a_gr_suspend(g);
|
||||
ret |= gk20a_mm_suspend(g);
|
||||
|
||||
Reference in New Issue
Block a user