Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

accel/ivpu: Fix Qemu crash when running in passthrough

Restore PCI state after putting the NPU in D0.
Restoring state before powering up the device caused a Qemu crash
if NPU was running in passthrough mode and recovery was performed.

Fixes: 3534eacbf101 ("accel/ivpu: Fix PCI D0 state entry in resume")
Cc: stable@vger.kernel.org # v6.8+
Reviewed-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241106105549.2757115-1-jacek.lawrynowicz@linux.intel.com

+1 -1
+1 -1
drivers/accel/ivpu/ivpu_pm.c
··· 78 78 int ret; 79 79 80 80 retry: 81 - pci_restore_state(to_pci_dev(vdev->drm.dev)); 82 81 pci_set_power_state(to_pci_dev(vdev->drm.dev), PCI_D0); 82 + pci_restore_state(to_pci_dev(vdev->drm.dev)); 83 83 84 84 ret = ivpu_hw_power_up(vdev); 85 85 if (ret) {