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 <quic_gracan@quicinc.com>
Dieser Commit ist enthalten in:
Grace An
2023-02-09 11:46:49 -08:00
Ursprung e0d65b7cca
Commit e443a11c83

Datei anzeigen

@@ -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");