Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/etnaviv: Warn when GPU doesn't idle fast enough

If the GPU isn't idle after signalling pm_runtime_mark_last_busy() plus
waiting for the autosuspend delay there's likely something wrong with
the way we check idleness so warn about that.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>

authored by

Guido Günther and committed by
Lucas Stach
78f2bfa3 1a910c11

+4 -1
+4 -1
drivers/gpu/drm/etnaviv/etnaviv_gpu.c
··· 1839 1839 mask = gpu->idle_mask & ~(VIVS_HI_IDLE_STATE_FE | 1840 1840 VIVS_HI_IDLE_STATE_MC); 1841 1841 idle = gpu_read(gpu, VIVS_HI_IDLE_STATE) & mask; 1842 - if (idle != mask) 1842 + if (idle != mask) { 1843 + dev_warn_ratelimited(dev, "GPU not yet idle, mask: 0x%08x\n", 1844 + idle); 1843 1845 return -EBUSY; 1846 + } 1844 1847 1845 1848 return etnaviv_gpu_hw_suspend(gpu); 1846 1849 }