summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_guc_ct.c
diff options
context:
space:
mode:
authorMatthew Auld <matthew.auld@intel.com>2023-07-19 11:38:09 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:37:36 +0300
commit7eed01a926838d4f6b8c655801e6af5366ccec46 (patch)
tree9a9b1b5bd23d78357fe67de9c3f7df4aa6561f59 /drivers/gpu/drm/xe/xe_guc_ct.c
parent03af26c9c9767b096cf4b69544f0140898530531 (diff)
downloadlinux-7eed01a926838d4f6b8c655801e6af5366ccec46.tar.xz
drm/xe: drop xe_device_mem_access_get() from guc_ct_send
The callers should already be holding the mem_access reference, before calling into this. Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_guc_ct.c')
-rw-r--r--drivers/gpu/drm/xe/xe_guc_ct.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
index 5d9ed5de5dbb..cb75db30800c 100644
--- a/drivers/gpu/drm/xe/xe_guc_ct.c
+++ b/drivers/gpu/drm/xe/xe_guc_ct.c
@@ -625,14 +625,10 @@ static int guc_ct_send(struct xe_guc_ct *ct, const u32 *action, u32 len,
XE_BUG_ON(g2h_len && g2h_fence);
- xe_device_mem_access_get(ct_to_xe(ct));
-
mutex_lock(&ct->lock);
ret = guc_ct_send_locked(ct, action, len, g2h_len, num_g2h, g2h_fence);
mutex_unlock(&ct->lock);
- xe_device_mem_access_put(ct_to_xe(ct));
-
return ret;
}