drm/panfrost: Don't sync rpm suspension after mmu flushing
authorDmitry Osipenko <dmitry.osipenko@collabora.com>
Thu, 17 Nov 2022 01:40:38 +0000 (04:40 +0300)
committerDmitry Osipenko <dmitry.osipenko@collabora.com>
Mon, 27 Feb 2023 04:07:25 +0000 (07:07 +0300)
commitba3be66f11c3c49afaa9f49b99e21d88756229ef
treec104216a580ec376041a8a138e11333ee58f19ce
parent9630b585b607bd26f505d34620b14d75b9a5af7d
drm/panfrost: Don't sync rpm suspension after mmu flushing

Lockdep warns about potential circular locking dependency of devfreq
with the fs_reclaim caused by immediate device suspension when mapping is
released by shrinker. Fix it by doing the suspension asynchronously.

Reviewed-by: Steven Price <steven.price@arm.com>
Fixes: ec7eba47da86 ("drm/panfrost: Rework page table flushing and runtime PM interaction")
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Link: https://lore.kernel.org/all/20230108210445.3948344-3-dmitry.osipenko@collabora.com/
drivers/gpu/drm/panfrost/panfrost_mmu.c