Skip to content

Commit 6973c22

Browse files
Phil Elwellpopcornmix
authored andcommitted
drm/v3d: Delete pm_runtime support
The pm_runtime was blocking changelist submission, so delete it as a temporary workaround. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
1 parent 54bec07 commit 6973c22

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

‎drivers/gpu/drm/v3d/v3d_gem.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -476,10 +476,6 @@ v3d_job_init(struct v3d_dev *v3d, struct drm_file *file_priv,
476476
job->v3d = v3d;
477477
job->free = free;
478478

479-
ret = pm_runtime_get_sync(v3d->dev);
480-
if (ret < 0)
481-
return ret;
482-
483479
xa_init_flags(&job->deps, XA_FLAGS_ALLOC);
484480

485481
ret = drm_syncobj_find_fence(file_priv, in_sync, 0, 0, &in_fence);
@@ -496,7 +492,6 @@ v3d_job_init(struct v3d_dev *v3d, struct drm_file *file_priv,
496492
return 0;
497493
fail:
498494
xa_destroy(&job->deps);
499-
pm_runtime_put_autosuspend(v3d->dev);
500495
return ret;
501496
}
502497

‎drivers/gpu/drm/v3d/v3d_mmu.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ static int v3d_mmu_flush_all(struct v3d_dev *v3d)
3636
{
3737
int ret;
3838

39-
/* Keep power on the device on until we're done with this
40-
* call, but skip the flush if the device is off and will be
41-
* reset when powered back on.
42-
*/
43-
ret = pm_runtime_get_if_in_use(v3d->dev);
44-
if (ret == 0)
45-
return 0;
46-
4739
/* Make sure that another flush isn't already running when we
4840
* start this one.
4941
*/
@@ -71,9 +63,6 @@ static int v3d_mmu_flush_all(struct v3d_dev *v3d)
7163
if (ret)
7264
dev_err(v3d->dev, "MMUC flush wait idle failed\n");
7365

74-
pm_runtime_mark_last_busy(v3d->dev);
75-
pm_runtime_put_autosuspend(v3d->dev);
76-
7766
return ret;
7867
}
7968

0 commit comments

Comments
 (0)