ivpu_ipc.c (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) ivpu_ipc.c (b563e47957af4ff71736c5cc4120a59b055ab583)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2020-2023 Intel Corporation
4 */
5
6#include <linux/genalloc.h>
7#include <linux/highmem.h>
8#include <linux/kthread.h>

--- 169 unchanged lines hidden (view full) ---

178}
179
180static int
181ivpu_ipc_send(struct ivpu_device *vdev, struct ivpu_ipc_consumer *cons, struct vpu_jsm_msg *req)
182{
183 struct ivpu_ipc_info *ipc = vdev->ipc;
184 int ret;
185
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2020-2023 Intel Corporation
4 */
5
6#include <linux/genalloc.h>
7#include <linux/highmem.h>
8#include <linux/kthread.h>

--- 169 unchanged lines hidden (view full) ---

178}
179
180static int
181ivpu_ipc_send(struct ivpu_device *vdev, struct ivpu_ipc_consumer *cons, struct vpu_jsm_msg *req)
182{
183 struct ivpu_ipc_info *ipc = vdev->ipc;
184 int ret;
185
186 ret = mutex_lock_interruptible(&ipc->lock);
187 if (ret)
188 return ret;
186 mutex_lock(&ipc->lock);
189
190 if (!ipc->on) {
191 ret = -EAGAIN;
192 goto unlock;
193 }
194
195 ret = ivpu_ipc_tx_prepare(vdev, cons, req);
196 if (ret)

--- 314 unchanged lines hidden ---
187
188 if (!ipc->on) {
189 ret = -EAGAIN;
190 goto unlock;
191 }
192
193 ret = ivpu_ipc_tx_prepare(vdev, cons, req);
194 if (ret)

--- 314 unchanged lines hidden ---