[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected. No action required from the submitter.
The upstream commit SHA1 provided is correct: eadf88ecf6ac7d6a9f47a76c6055d9a1987a8991
WARNING: Author mismatch between patch and upstream commit: Backport author: Feng LiuFeng.Liu3@windriver.com Commit author: Abhishek Sahuabhsahu@nvidia.com
Status in newer kernel trees: 6.14.y | Present (exact SHA1) 6.13.y | Present (exact SHA1) 6.12.y | Present (exact SHA1) 6.6.y | Present (exact SHA1) 6.1.y | Present (exact SHA1) 5.15.y | Present (different SHA1: 4319f17fb826)
Note: The patch differs from the upstream commit: --- 1: eadf88ecf6ac7 ! 1: 29252935ed497 vfio/pci: fix memory leak during D3hot to D0 transition @@ Metadata ## Commit message ## vfio/pci: fix memory leak during D3hot to D0 transition
+ [ Upstream commit eadf88ecf6ac7d6a9f47a76c6055d9a1987a8991 ] + If 'vfio_pci_core_device::needs_pm_restore' is set (PCI device does not have No_Soft_Reset bit set in its PMCSR config register), then the current PCI state will be saved locally in @@ Commit message Signed-off-by: Abhishek Sahu abhsahu@nvidia.com Link: https://lore.kernel.org/r/20220217122107.22434-2-abhsahu@nvidia.com Signed-off-by: Alex Williamson alex.williamson@redhat.com + [Minor context change fixed] + Signed-off-by: Feng Liu Feng.Liu3@windriver.com + Signed-off-by: He Zhe Zhe.He@windriver.com
- ## drivers/vfio/pci/vfio_pci_core.c ## -@@ drivers/vfio/pci/vfio_pci_core.c: int vfio_pci_set_power_state(struct vfio_pci_core_device *vdev, pci_power_t stat + ## drivers/vfio/pci/vfio_pci.c ## +@@ drivers/vfio/pci/vfio_pci.c: int vfio_pci_set_power_state(struct vfio_pci_device *vdev, pci_power_t state) if (!ret) { /* D3 might be unsupported via quirk, skip unless in D3 */ if (needs_save && pdev->current_state >= PCI_D3hot) { ---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-5.10.y | Success | Success |