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, 1 Jul 2020 15:32:58 +0000 (16:32 +0100)
commit0f3a0703d1b9106dc8961c8c92af1552364f8b30
tree6a684cf94dc0354b92eb2fe1bd7e5c02198d01e1
parent6d98c0a138b3fc7bcca771ee208fe7272bf38154
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