瀏覽代碼

mm-drivers: hw_fence: fix ioctl support for ipcc signaling

Currently, the ioctl to trigger ipcc signals uses the client virtual id
as the tx client and the client physical id as the rx client. This
should be reversed to correctly perform ipcc signaling.

Change-Id: I61e7ec0e4bfd63f2d7e1cd1dd4e62dd4f6a82143
Signed-off-by: Grace An <[email protected]>
Grace An 2 年之前
父節點
當前提交
e443a11c83
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      hw_fence/src/hw_fence_ioctl.c

+ 3 - 3
hw_fence/src/hw_fence_ioctl.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  */
 
 #include <linux/file.h>
@@ -542,8 +542,8 @@ static long hw_sync_ioctl_fence_signal(struct hw_sync_obj *obj, unsigned long ar
 	if (signal_id < 0)
 		return -EINVAL;
 
-	tx_client = hw_fence_client->ipc_client_vid;
-	rx_client = hw_fence_client->ipc_client_pid;
+	tx_client = hw_fence_client->ipc_client_pid;
+	rx_client = hw_fence_client->ipc_client_vid;
 	ret = msm_hw_fence_trigger_signal(obj->client_handle, tx_client, rx_client, signal_id);
 	if (ret) {
 		HWFNC_ERR("hw fence trigger signal has failed\n");