Skip to content

Commit 0f6482c

Browse files
committed
accel/ivpu: Fix WARN in ivpu_ipc_send_receive_internal()
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: 8ed520f ("accel/ivpu: Move set autosuspend delay to HW specific code") Cc: [email protected] # v6.7+ Reviewed-by: Karol Wachowski <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Signed-off-by: Jacek Lawrynowicz <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 6c9ba75 commit 0f6482c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/accel/ivpu/ivpu_pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ void ivpu_pm_init(struct ivpu_device *vdev)
378378

379379
pm_runtime_use_autosuspend(dev);
380380
pm_runtime_set_autosuspend_delay(dev, delay);
381+
pm_runtime_set_active(dev);
381382

382383
ivpu_dbg(vdev, PM, "Autosuspend delay = %d\n", delay);
383384
}
@@ -392,7 +393,6 @@ void ivpu_pm_enable(struct ivpu_device *vdev)
392393
{
393394
struct device *dev = vdev->drm.dev;
394395

395-
pm_runtime_set_active(dev);
396396
pm_runtime_allow(dev);
397397
pm_runtime_mark_last_busy(dev);
398398
pm_runtime_put_autosuspend(dev);

0 commit comments

Comments
 (0)