Skip to content

Commit 5c200b7

Browse files
jlawrynogregkh
authored andcommitted
accel/ivpu: Fix warning in ivpu_ipc_send_receive_internal()
commit 6b4568b upstream. Warn if device is suspended only when runtime PM is enabled. Runtime PM is disabled during reset/recovery and it is not an error to use ivpu_ipc_send_receive_internal() in such cases. Fixes: 5eaa497 ("accel/ivpu: Prevent recovery invocation during probe and resume") Cc: stable@vger.kernel.org # v6.13+ Signed-off-by: Maciej Falkowski <maciej.falkowski@linux.intel.com> Reviewed-by: Lizhi Hou <lizhi.hou@amd.com> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Link: https://lore.kernel.org/r/20250325114219.3739951-1-maciej.falkowski@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7022946 commit 5c200b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/accel/ivpu/ivpu_ipc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ ivpu_ipc_send_receive_internal(struct ivpu_device *vdev, struct vpu_jsm_msg *req
299299
struct ivpu_ipc_consumer cons;
300300
int ret;
301301

302-
drm_WARN_ON(&vdev->drm, pm_runtime_status_suspended(vdev->drm.dev));
302+
drm_WARN_ON(&vdev->drm, pm_runtime_status_suspended(vdev->drm.dev) &&
303+
pm_runtime_enabled(vdev->drm.dev));
303304

304305
ivpu_ipc_consumer_add(vdev, &cons, channel, NULL);
305306

0 commit comments

Comments
 (0)