Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

accel/ivpu: Fix IPC buffer header status field value

IPC messages transmitted to the device must be marked as
allocated - status field must be set to 1. The VPU driver
has IVPU_IPC_HDR_ALLOCATED incorrectly defined. Future VPU
firmware versions will reject all IPC messages with invalid
status and will not work with a VPU driver that is missing
this fix.

Fixes: 5d7422cfb498 ("accel/ivpu: Add IPC driver and JSM messages")
Signed-off-by: Andrzej Kacprowski <andrzej.kacprowski@linux.intel.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230323125504.2586442-9-stanislaw.gruszka@linux.intel.com

authored by

Andrzej Kacprowski and committed by
Jacek Lawrynowicz
34224133 252776b2

+1 -1
+1 -1
drivers/accel/ivpu/ivpu_ipc.h
··· 21 21 #define IVPU_IPC_ALIGNMENT 64 22 22 23 23 #define IVPU_IPC_HDR_FREE 0 24 - #define IVPU_IPC_HDR_ALLOCATED 0 24 + #define IVPU_IPC_HDR_ALLOCATED 1 25 25 26 26 /** 27 27 * struct ivpu_ipc_hdr - The IPC message header structure, exchanged