Home
last modified time | relevance | path

Searched hist:b039f1c4d3727c3e44a7e89ff79e7e8533e1beec (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/accel/ivpu/
H A Divpu_mmu.cdiff b039f1c4d3727c3e44a7e89ff79e7e8533e1beec Fri Jan 26 13:27:59 CET 2024 Wachowski, Karol <karol.wachowski@intel.com> accel/ivpu: Correct MMU queue size checking functions

Do not use kernel CIRC_SPACE and CIRC_CNT that
incorrectly return space of a queue when wrap bit was set.
Use correct implementation that compares producer, consumer and
wrap bit values.

Without this fix it was possible to lose events in case when event
queue was full.

Signed-off-by: Wachowski, Karol <karol.wachowski@intel.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240126122804.2169129-3-jacek.lawrynowicz@linux.intel.com