1 From c95a4208ef87c56349d35480e68304562c7612bd Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Wed, 28 Nov 2018 15:09:26 -0800
4 Subject: [PATCH 564/806] drm/v3d: Drop the "dev" argument to lock/unlock of BO
7 They were unused, as Dave Emett noticed in TFU review.
9 Signed-off-by: Eric Anholt <eric@anholt.net>
10 Cc: Dave Emett <david.emett@broadcom.com>
11 Link: https://patchwork.freedesktop.org/patch/msgid/20181128230927.10951-2-eric@anholt.net
12 Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 (cherry picked from commit e14a07fc4b961a75f6c275d6bd670ba54fbdae14)
15 drivers/gpu/drm/v3d/v3d_gem.c | 20 +++++++++-----------
16 1 file changed, 9 insertions(+), 11 deletions(-)
18 --- a/drivers/gpu/drm/v3d/v3d_gem.c
19 +++ b/drivers/gpu/drm/v3d/v3d_gem.c
20 @@ -219,8 +219,7 @@ v3d_attach_object_fences(struct v3d_bo *
24 -v3d_unlock_bo_reservations(struct drm_device *dev,
25 - struct v3d_bo **bos,
26 +v3d_unlock_bo_reservations(struct v3d_bo **bos,
28 struct ww_acquire_ctx *acquire_ctx)
30 @@ -240,8 +239,7 @@ v3d_unlock_bo_reservations(struct drm_de
31 * to v3d, so we don't attach dma-buf fences to them.
34 -v3d_lock_bo_reservations(struct drm_device *dev,
35 - struct v3d_bo **bos,
36 +v3d_lock_bo_reservations(struct v3d_bo **bos,
38 struct ww_acquire_ctx *acquire_ctx)
40 @@ -298,7 +296,7 @@ retry:
41 for (i = 0; i < bo_count; i++) {
42 ret = reservation_object_reserve_shared(bos[i]->resv);
44 - v3d_unlock_bo_reservations(dev, bos, bo_count,
45 + v3d_unlock_bo_reservations(bos, bo_count,
49 @@ -566,7 +564,7 @@ v3d_submit_cl_ioctl(struct drm_device *d
53 - ret = v3d_lock_bo_reservations(dev, exec->bo, exec->bo_count,
54 + ret = v3d_lock_bo_reservations(exec->bo, exec->bo_count,
58 @@ -604,7 +602,7 @@ v3d_submit_cl_ioctl(struct drm_device *d
59 v3d_attach_object_fences(exec->bo, exec->bo_count,
60 exec->render_done_fence);
62 - v3d_unlock_bo_reservations(dev, exec->bo, exec->bo_count, &acquire_ctx);
63 + v3d_unlock_bo_reservations(exec->bo, exec->bo_count, &acquire_ctx);
65 /* Update the return sync object for the */
66 sync_out = drm_syncobj_find(file_priv, args->out_sync);
67 @@ -620,7 +618,7 @@ v3d_submit_cl_ioctl(struct drm_device *d
70 mutex_unlock(&v3d->sched_lock);
71 - v3d_unlock_bo_reservations(dev, exec->bo, exec->bo_count, &acquire_ctx);
72 + v3d_unlock_bo_reservations(exec->bo, exec->bo_count, &acquire_ctx);
76 @@ -691,7 +689,7 @@ v3d_submit_tfu_ioctl(struct drm_device *
78 spin_unlock(&file_priv->table_lock);
80 - ret = v3d_lock_bo_reservations(dev, job->bo, bo_count, &acquire_ctx);
81 + ret = v3d_lock_bo_reservations(job->bo, bo_count, &acquire_ctx);
85 @@ -710,7 +708,7 @@ v3d_submit_tfu_ioctl(struct drm_device *
87 v3d_attach_object_fences(job->bo, bo_count, sched_done_fence);
89 - v3d_unlock_bo_reservations(dev, job->bo, bo_count, &acquire_ctx);
90 + v3d_unlock_bo_reservations(job->bo, bo_count, &acquire_ctx);
92 /* Update the return sync object */
93 sync_out = drm_syncobj_find(file_priv, args->out_sync);
94 @@ -726,7 +724,7 @@ v3d_submit_tfu_ioctl(struct drm_device *
97 mutex_unlock(&v3d->sched_lock);
98 - v3d_unlock_bo_reservations(dev, job->bo, bo_count, &acquire_ctx);
99 + v3d_unlock_bo_reservations(job->bo, bo_count, &acquire_ctx);
101 v3d_tfu_job_put(job);