linux/drivers/accel/ivpu
Jacek Lawrynowicz 578874b2bb accel/ivpu: Fix WARN in ivpu_ipc_send_receive_internal()
commit 0f6482caa6 upstream.

Move pm_runtime_set_active() to ivpu_pm_init() so when
ivpu_ipc_send_receive_internal() is executed before ivpu_pm_enable()
it already has correct runtime state, even if last resume was
not successful.

Fixes: 8ed520ff46 ("accel/ivpu: Move set autosuspend delay to HW specific code")
Cc: stable@vger.kernel.org # v6.7+
Reviewed-by: Karol Wachowski <karol.wachowski@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/20241210130939.1575610-4-jacek.lawrynowicz@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-12-27 14:02:16 +01:00
..
ivpu_debugfs.c accel/ivpu: Fix NOC firewall interrupt handling 2024-10-30 10:17:00 +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: Synchronize device unbind with recovery work 2024-06-14 09:14:57 +02:00
ivpu_drv.h accel/ivpu: Add test mode flag for disabling timeouts 2024-06-14 09:14:36 +02:00
ivpu_fw.c accel/ivpu: Add missing MODULE_FIRMWARE metadata 2024-07-15 11:13:04 +02:00
ivpu_fw.h accel/ivpu: Make parts of FW image read-only 2024-06-14 09:14:29 +02:00
ivpu_fw_log.c accel/ivpu: Rename VPU to NPU in message strings 2024-02-19 10:52:35 +01:00
ivpu_fw_log.h accel/ivpu: Add firmware tracing support 2023-07-07 09:33:20 +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: Fix NOC firewall interrupt handling 2024-10-30 10:17:00 +01:00
ivpu_hw.h accel/ivpu: Fix NOC firewall interrupt handling 2024-10-30 10:17:00 +01: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: Implement DCT handling 2024-06-14 09:13:32 +02:00
ivpu_hw_btrs.h accel/ivpu: Implement DCT handling 2024-06-14 09:13:32 +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: Prevent recovery invocation during probe and resume 2024-12-05 14:01:44 +01:00
ivpu_ipc.h accel/ivpu: Prevent recovery invocation during probe and resume 2024-12-05 14:01:44 +01:00
ivpu_job.c accel/ivpu: Abort jobs of faulty context 2024-06-14 09:12:11 +02:00
ivpu_job.h accel/ivpu: Abort jobs of faulty context 2024-06-14 09:12:11 +02:00
ivpu_jsm_msg.c accel/ivpu: Prevent recovery invocation during probe and resume 2024-12-05 14:01:44 +01:00
ivpu_jsm_msg.h accel/ivpu: Implement DCT handling 2024-06-14 09:13:32 +02:00
ivpu_mmu.c accel/ivpu: Abort jobs of faulty context 2024-06-14 09:12:11 +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: Add NPU profiling support 2024-05-15 07:42:23 +02:00
ivpu_ms.h accel/ivpu: Add NPU profiling support 2024-05-15 07:42:23 +02:00
ivpu_pm.c accel/ivpu: Fix WARN in ivpu_ipc_send_receive_internal() 2024-12-27 14:02:16 +01: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: Share NPU busy time in sysfs 2024-05-15 07:42:29 +02:00
ivpu_sysfs.h accel/ivpu: Share NPU busy time in sysfs 2024-05-15 07:42:29 +02:00
Kconfig accel/ivpu: Use GEM shmem helper for all buffers 2023-11-08 16:27:43 +01:00
Makefile accel/ivpu: Split IP and buttress code 2024-05-17 08:30:24 +02:00
vpu_boot_api.h accel/ivpu: Update FW BOOT API headers 2024-06-14 09:14:11 +02:00
vpu_jsm_api.h accel/ivpu: Update VPU FW API headers 2024-05-15 07:37:30 +02:00