Commit 7eed01a9 authored by Matthew Auld's avatar Matthew Auld Committed by Rodrigo Vivi
Browse files

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: default avatarMatthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 03af26c9
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;
}