drm/v3d: Skip MMU flush if the device is currently off.
authorEric Anholt <eric@anholt.net>
Mon, 14 Jan 2019 20:35:43 +0000 (12:35 -0800)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:13:01 +0000 (19:13 +0000)
commitcbf3841a031ca6a965414f61a7ce8b8a58f814a9
tree6cca75b3d774add41443dd2364711eaaa41239da
parent8efa50cceab00746e9fa02a9ee0386fdfbcf5c98
drm/v3d: Skip MMU flush if the device is currently off.

If it's off, we know it will be reset on poweron, so the MMU won't
have any TLB cached from before this point.  Avoids failed waits for
MMU flush to reply.

Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 3ee4e2e0a9e9587eacbb69b067bbc72ab2cdc47b)
drivers/gpu/drm/v3d/v3d_mmu.c