Skip to content

Commit 875bc9c

Browse files
committed
accel/ivpu: Put NPU back to D3hot after failed resume
Put NPU in D3hot after ivpu_resume() fails to power up the device. This will assure that D3->D0 power cycle will be performed before the next resume and also will minimize power usage in this corner case. Fixes: 28083ff ("accel/ivpu: Fix DevTLB errors on suspend/resume and recovery") Cc: <[email protected]> # v6.8+ Signed-off-by: Jacek Lawrynowicz <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 3534eac commit 875bc9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/accel/ivpu/ivpu_pm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ static int ivpu_resume(struct ivpu_device *vdev)
9797
ivpu_mmu_disable(vdev);
9898
err_power_down:
9999
ivpu_hw_power_down(vdev);
100+
pci_set_power_state(to_pci_dev(vdev->drm.dev), PCI_D3hot);
100101

101102
if (!ivpu_fw_is_cold_boot(vdev)) {
102103
ivpu_pm_prepare_cold_boot(vdev);

0 commit comments

Comments
 (0)