linux/drivers/accel/ivpu
Jacek Lawrynowicz 58517eae32 accel/ivpu: Fix fw log printing
commit 4bc988b470 upstream.

  - Fix empty log detection that couldn't work without read_wrap_count
  - Start printing wrapped log from correct position (log_start)
  - Properly handle logs that are wrapped multiple times in reference
    to reader position
  - Don't add a newline when log buffer is wrapped
  - Always add a newline after printing a log buffer in case log does
    not end with one

Reviewed-by: Tomasz Rusinowicz <tomasz.rusinowicz@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240930195322.461209-6-jacek.lawrynowicz@linux.intel.com
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-05-22 14:29:53 +02:00
..
ivpu_coredump.c accel/ivpu: Add coredump support 2025-02-27 04:30:15 -08:00
ivpu_coredump.h accel/ivpu: Add coredump support 2025-02-27 04:30:15 -08:00
ivpu_debugfs.c accel/ivpu: Refactor functions in ivpu_fw_log.c 2025-05-22 14:29:52 +02:00
ivpu_debugfs.h accel/ivpu: Compile ivpu_debugfs.c conditionally 2023-09-27 13:11:51 +02:00
ivpu_drv.c accel/ivpu: Abort all jobs after command queue unregister 2025-05-09 09:50:50 +02:00
ivpu_drv.h accel/ivpu: Abort all jobs after command queue unregister 2025-05-09 09:50:50 +02:00
ivpu_fw.c accel/ivpu: Rename ivpu_log_level to fw_log_level 2025-05-22 14:29:52 +02:00
ivpu_fw.h accel/ivpu: Add auto selection logic for job scheduler 2025-05-02 07:58:56 +02:00
ivpu_fw_log.c accel/ivpu: Fix fw log printing 2025-05-22 14:29:53 +02:00
ivpu_fw_log.h accel/ivpu: Refactor functions in ivpu_fw_log.c 2025-05-22 14:29:52 +02:00
ivpu_gem.c accel/ivpu: Fix general protection fault in ivpu_bo_list() 2024-12-27 14:02:15 +01:00
ivpu_gem.h accel/ivpu: Add force snoop module parameter 2024-05-15 07:42:26 +02:00
ivpu_hw.c accel/ivpu: Increase state dump msg timeout 2025-05-18 08:24:54 +02:00
ivpu_hw.h accel/ivpu: Fix the NPU's DPU frequency calculation 2025-05-02 07:58:56 +02:00
ivpu_hw_37xx_reg.h accel/ivpu: Split IP and buttress headers 2024-05-17 08:30:23 +02:00
ivpu_hw_40xx_reg.h accel/ivpu: Split IP and buttress headers 2024-05-17 08:30:23 +02:00
ivpu_hw_btrs.c accel/ivpu: Fix the NPU's DPU frequency calculation 2025-05-02 07:58:56 +02:00
ivpu_hw_btrs.h accel/ivpu: Correct DCT interrupt handling 2025-05-09 09:50:39 +02:00
ivpu_hw_btrs_lnl_reg.h accel/ivpu: Implement DCT handling 2024-06-14 09:13:32 +02:00
ivpu_hw_btrs_mtl_reg.h accel/ivpu: Split IP and buttress headers 2024-05-17 08:30:23 +02:00
ivpu_hw_ip.c accel/ivpu: Fix NOC firewall interrupt handling 2024-10-30 10:17:00 +01:00
ivpu_hw_ip.h accel/ivpu: Replace wake_thread with kfifo 2024-05-17 08:30:27 +02:00
ivpu_hw_reg_io.h accel/ivpu: Fix verbose version of REG_POLL macros 2023-10-23 08:57:25 +02:00
ivpu_ipc.c accel/ivpu: Fix warning in ivpu_ipc_send_receive_internal() 2025-04-20 10:15:42 +02:00
ivpu_ipc.h accel/ivpu: Add FW state dump on TDR 2025-02-27 04:30:15 -08:00
ivpu_job.c accel/ivpu: Add handling of VPU_JSM_STATUS_MVNCI_CONTEXT_VIOLATION_HW 2025-05-09 09:50:50 +02:00
ivpu_job.h accel/ivpu: Abort all jobs after command queue unregister 2025-05-09 09:50:50 +02:00
ivpu_jsm_msg.c accel/ivpu: Update VPU FW API headers 2025-05-09 09:50:49 +02:00
ivpu_jsm_msg.h accel/ivpu: Add FW state dump on TDR 2025-02-27 04:30:15 -08:00
ivpu_mmu.c accel/ivpu: Abort all jobs after command queue unregister 2025-05-09 09:50:50 +02:00
ivpu_mmu.h accel/ivpu: Dump MMU events in case of VPU boot timeout 2024-01-22 10:27:37 +01:00
ivpu_mmu_context.c accel/ivpu: Make parts of FW image read-only 2024-06-14 09:14:29 +02:00
ivpu_mmu_context.h accel/ivpu: Make parts of FW image read-only 2024-06-14 09:14:29 +02:00
ivpu_ms.c accel/ivpu: Fix deadlock in ivpu_ms_cleanup() 2025-04-20 10:15:42 +02:00
ivpu_ms.h accel/ivpu: Add NPU profiling support 2024-05-15 07:42:23 +02:00
ivpu_pm.c accel/ivpu: Reset fw log on cold boot 2025-05-22 14:29:52 +02:00
ivpu_pm.h accel/ivpu: Remove unused ivpu_rpm_get_if_active() 2024-06-14 09:15:28 +02:00
ivpu_sysfs.c accel/ivpu: Abort all jobs after command queue unregister 2025-05-09 09:50:50 +02:00
ivpu_sysfs.h accel/ivpu: Share NPU busy time in sysfs 2024-05-15 07:42:29 +02:00
Kconfig accel/ivpu: Add coredump support 2025-02-27 04:30:15 -08:00
Makefile accel/ivpu: Add coredump support 2025-02-27 04:30:15 -08:00
vpu_boot_api.h accel/ivpu: Update VPU FW API headers 2025-05-09 09:50:49 +02:00
vpu_jsm_api.h accel/ivpu: Update VPU FW API headers 2025-05-09 09:50:49 +02:00