Commit ba3be66f authored by Dmitry Osipenko's avatar Dmitry Osipenko

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: default avatarSteven Price <steven.price@arm.com>
Fixes: ec7eba47 ("drm/panfrost: Rework page table flushing and runtime PM interaction")
Signed-off-by: default avatarDmitry Osipenko <dmitry.osipenko@collabora.com>
Link: https://lore.kernel.org/all/20230108210445.3948344-3-dmitry.osipenko@collabora.com/
parent 9630b585
...@@ -282,7 +282,7 @@ static void panfrost_mmu_flush_range(struct panfrost_device *pfdev, ...@@ -282,7 +282,7 @@ static void panfrost_mmu_flush_range(struct panfrost_device *pfdev,
if (pm_runtime_active(pfdev->dev)) if (pm_runtime_active(pfdev->dev))
mmu_hw_do_operation(pfdev, mmu, iova, size, AS_COMMAND_FLUSH_PT); mmu_hw_do_operation(pfdev, mmu, iova, size, AS_COMMAND_FLUSH_PT);
pm_runtime_put_sync_autosuspend(pfdev->dev); pm_runtime_put_autosuspend(pfdev->dev);
} }
static int mmu_map_sg(struct panfrost_device *pfdev, struct panfrost_mmu *mmu, static int mmu_map_sg(struct panfrost_device *pfdev, struct panfrost_mmu *mmu,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment