Skip to content

Commit ba3be66

Browse files
committed
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 <[email protected]> Fixes: ec7eba4 ("drm/panfrost: Rework page table flushing and runtime PM interaction") Signed-off-by: Dmitry Osipenko <[email protected]> Link: https://lore.kernel.org/all/[email protected]/
1 parent 9630b58 commit ba3be66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/panfrost/panfrost_mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ static void panfrost_mmu_flush_range(struct panfrost_device *pfdev,
282282
if (pm_runtime_active(pfdev->dev))
283283
mmu_hw_do_operation(pfdev, mmu, iova, size, AS_COMMAND_FLUSH_PT);
284284

285-
pm_runtime_put_sync_autosuspend(pfdev->dev);
285+
pm_runtime_put_autosuspend(pfdev->dev);
286286
}
287287

288288
static int mmu_map_sg(struct panfrost_device *pfdev, struct panfrost_mmu *mmu,

0 commit comments

Comments
 (0)