linux/drivers/accel/ivpu
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
..
ivpu_debugfs.c accel/ivpu: Improve recovery and reset support 2024-01-25 10:17:37 +01:00
ivpu_debugfs.h accel/ivpu: Compile ivpu_debugfs.c conditionally 2023-09-27 13:11:51 +02:00
ivpu_drv.c accel/ivpu: Fix dev open/close races with unbind 2024-01-25 10:16:56 +01:00
ivpu_drv.h accel/ivpu: Fix dev open/close races with unbind 2024-01-25 10:16:56 +01:00
ivpu_fw_log.c accel/ivpu: Add ivpu_bo_vaddr() and ivpu_bo_size() 2023-10-12 12:54:51 +02:00
ivpu_fw_log.h accel/ivpu: Add firmware tracing support 2023-07-07 09:33:20 +02:00
ivpu_fw.c Merge drm/drm-next into drm-misc-next 2023-11-15 10:56:44 +01:00
ivpu_fw.h accel/ivpu: Add dvfs_mode file to debugfs 2023-10-30 11:06:09 +01:00
ivpu_gem.c accel/ivpu: Fix dev open/close races with unbind 2024-01-25 10:16:56 +01:00
ivpu_gem.h accel/ivpu: Fix dev open/close races with unbind 2024-01-25 10:16:56 +01:00
ivpu_hw_37xx_reg.h accel/ivpu: Pass D0i3 residency time to the VPU firmware 2023-10-30 11:06:12 +01:00
ivpu_hw_37xx.c accel/ivpu: Force snooping for MMU writes 2024-02-06 13:36:32 +01:00
ivpu_hw_40xx_reg.h accel/ivpu/40xx: Ensure clock resource ownership Ack before Power-Up 2023-09-27 07:40:23 +02:00
ivpu_hw_40xx.c accel/ivpu: Force snooping for MMU writes 2024-02-06 13:36:32 +01:00
ivpu_hw_reg_io.h accel/ivpu: Fix verbose version of REG_POLL macros 2023-10-23 08:57:25 +02:00
ivpu_hw.h Merge drm/drm-next into drm-misc-next 2023-11-15 10:56:44 +01:00
ivpu_ipc.c accel/ivpu: Improve recovery and reset support 2024-01-25 10:17:37 +01:00
ivpu_ipc.h accel/ivpu: Use threaded IRQ to handle JOB done messages 2023-11-16 13:41:49 +01:00
ivpu_job.c accel/ivpu: Improve recovery and reset support 2024-01-25 10:17:37 +01:00
ivpu_job.h accel/ivpu: Improve stability of ivpu_submit_ioctl() 2024-01-25 10:17:07 +01:00
ivpu_jsm_msg.c accel/ivpu: Add support for delayed D0i3 entry message 2023-10-30 11:06:13 +01:00
ivpu_jsm_msg.h accel/ivpu: Add support for delayed D0i3 entry message 2023-10-30 11:06:13 +01:00
ivpu_mmu_context.c accel/ivpu: Add debug prints for MMU map/unmap operations 2024-01-22 10:27:47 +01:00
ivpu_mmu_context.h accel/ivpu: Fix locking in ivpu_bo_remove_all_bos_from_context() 2023-11-08 16:27:35 +01:00
ivpu_mmu.c accel/ivpu: Correct MMU queue size checking functions 2024-02-06 13:36:33 +01:00
ivpu_mmu.h accel/ivpu: Dump MMU events in case of VPU boot timeout 2024-01-22 10:27:37 +01:00
ivpu_pm.c accel/ivpu: Improve recovery and reset support 2024-01-25 10:17:37 +01:00
ivpu_pm.h accel/ivpu: Improve recovery and reset support 2024-01-25 10:17:37 +01:00
Kconfig accel/ivpu: Use GEM shmem helper for all buffers 2023-11-08 16:27:43 +01:00
Makefile accel/ivpu: Compile ivpu_debugfs.c conditionally 2023-09-27 13:11:51 +02:00
vpu_boot_api.h accel/ivpu: Update FW API 2023-10-30 11:06:07 +01:00
vpu_jsm_api.h accel/ivpu: Update FW API 2023-10-30 11:06:07 +01:00