Skip to content

Commit 6b4568b

Browse files
committed
accel/ivpu: Fix warning in ivpu_ipc_send_receive_internal()
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
1 parent 8ec0fbb commit 6b4568b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/accel/ivpu/ivpu_ipc.c

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

305-
drm_WARN_ON(&vdev->drm, pm_runtime_status_suspended(vdev->drm.dev));
305+
drm_WARN_ON(&vdev->drm, pm_runtime_status_suspended(vdev->drm.dev) &&
306+
pm_runtime_enabled(vdev->drm.dev));
306307

307308
ivpu_ipc_consumer_add(vdev, &cons, channel, NULL);
308309

0 commit comments

Comments
 (0)