linux-next/drivers/accel
Wachowski, Karol b039f1c4d3 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
2024-02-06 13:36:33 +01:00
..
habanalabs drm-next for 6.8: 2024-01-12 11:32:19 -08:00
ivpu accel/ivpu: Correct MMU queue size checking functions 2024-02-06 13:36:33 +01:00
qaic drm-next for 6.8: 2024-01-12 11:32:19 -08:00
drm_accel.c accel: Include <drm/drm_auth.h> 2023-12-06 10:08:09 +01:00
Kconfig accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00
Makefile accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00