[PATCH v23 0/5] [PCI] Error recovery for vfio-pci devices on s390x

Farhan Ali posted 5 patches 1 month, 3 weeks ago
drivers/pci/hotplug/pnv_php.c     |  2 +-
drivers/pci/hotplug/rpaphp_slot.c |  2 +-
drivers/pci/msi/msi.c             | 10 +++++++
drivers/pci/pci.c                 | 32 ++++++++++++++++++--
drivers/pci/slot.c                | 50 +++++++++++++++++++++----------
include/linux/pci.h               |  8 +++--
6 files changed, 82 insertions(+), 22 deletions(-)
[PATCH v23 0/5] [PCI] Error recovery for vfio-pci devices on s390x
Posted by Farhan Ali 1 month, 3 weeks ago
Hi Bjorn,

This patch set includes only the PCI patches of the original series for
error recovery for vfio-pci devices on s390x [1]. Breaking up the patch
series into PCI and VFIO only patches to make merging easier based on
discussion with Alex [2].

Thanks
Farhan

[1] https://lore.kernel.org/all/20260520171113.1111-1-alifm@linux.ibm.com/
[2] https://lore.kernel.org/all/20260602163344.1eda12d2@shazbot.org/

ChangeLog
---------
v22: https://lore.kernel.org/all/20260720192505.2957-1-alifm@linux.ibm.com/
v22 -> v23:
  - Split placeholder constant into a separate patch (patch 1).
  - Rebase on 7.2-rc6

v21: https://lore.kernel.org/all/20260630164807.643-1-alifm@linux.ibm.com/
v21 -> v22
  - Ammend commit message for patch 1.
  - Rebase on 7.2-rc4

v20 https://lore.kernel.org/all/20260622171840.1618-1-alifm@linux.ibm.com/
v20 -> v21
  - Amend commit message to include Fixes tag and cc stable (patch 4).
  - Rebase on 7.2-rc1.

v19 https://lore.kernel.org/all/20260615183524.2880-1-alifm@linux.ibm.com/
v19 -> v20
  - Unconditionally enable Memory bit while restoring MSI-X (patch 4).
  Fixes an issue found with sashiko. 

v18 https://lore.kernel.org/all/20260603181647.2215-1-alifm@linux.ibm.com/
v18 -> v19
  - Move config space accessible check to pcie_flr() function (based on
  discussion of Sashiko review)

  - Fix a gap in MSI-X restoration (patch 4).

  - Rebase on 7.1-rc7

v17 -> v18
  - Rebase on 7.1-rc6.

Farhan Ali (5):
  PCI: Introduce PCI_SLOT_PLACEHOLDER constant for slot_nr placeholder
    value
  PCI: Allow per function PCI slots to fix slot reset on s390
  PCI: Avoid saving config space state if inaccessible
  PCI: Fail FLR when config space is inaccessible
  PCI/MSI: Enable memory decoding before restoring MSI-X messages

 drivers/pci/hotplug/pnv_php.c     |  2 +-
 drivers/pci/hotplug/rpaphp_slot.c |  2 +-
 drivers/pci/msi/msi.c             | 10 +++++++
 drivers/pci/pci.c                 | 32 ++++++++++++++++++--
 drivers/pci/slot.c                | 50 +++++++++++++++++++++----------
 include/linux/pci.h               |  8 +++--
 6 files changed, 82 insertions(+), 22 deletions(-)

-- 
2.43.0
Re: [PATCH v23 0/5] [PCI] Error recovery for vfio-pci devices on s390x
Posted by Bjorn Helgaas 1 month, 2 weeks ago
On Wed, Aug 05, 2026 at 09:55:13AM -0700, Farhan Ali wrote:
> Hi Bjorn,
> 
> This patch set includes only the PCI patches of the original series for
> error recovery for vfio-pci devices on s390x [1]. Breaking up the patch
> series into PCI and VFIO only patches to make merging easier based on
> discussion with Alex [2].
> 
> Thanks
> Farhan
> 
> [1] https://lore.kernel.org/all/20260520171113.1111-1-alifm@linux.ibm.com/
> [2] https://lore.kernel.org/all/20260602163344.1eda12d2@shazbot.org/
> 
> ChangeLog
> ---------
> v22: https://lore.kernel.org/all/20260720192505.2957-1-alifm@linux.ibm.com/
> v22 -> v23:
>   - Split placeholder constant into a separate patch (patch 1).
>   - Rebase on 7.2-rc6

(No need to rebase; I always apply on -rc1 regardless)

> Farhan Ali (5):
>   PCI: Introduce PCI_SLOT_PLACEHOLDER constant for slot_nr placeholder
>     value
>   PCI: Allow per function PCI slots to fix slot reset on s390
>   PCI: Avoid saving config space state if inaccessible
>   PCI: Fail FLR when config space is inaccessible
>   PCI/MSI: Enable memory decoding before restoring MSI-X messages
> 
>  drivers/pci/hotplug/pnv_php.c     |  2 +-
>  drivers/pci/hotplug/rpaphp_slot.c |  2 +-
>  drivers/pci/msi/msi.c             | 10 +++++++
>  drivers/pci/pci.c                 | 32 ++++++++++++++++++--
>  drivers/pci/slot.c                | 50 +++++++++++++++++++++----------
>  include/linux/pci.h               |  8 +++--
>  6 files changed, 82 insertions(+), 22 deletions(-)

Applied to pci/slot for v7.3, thanks!
Re: [PATCH v23 0/5] [PCI] Error recovery for vfio-pci devices on s390x
Posted by Farhan Ali 1 month, 2 weeks ago
Hi Bjorn,

Polite ping on this version.

Thanks

Farhan

On 8/5/2026 9:55 AM, Farhan Ali wrote:
> Hi Bjorn,
>
> This patch set includes only the PCI patches of the original series for
> error recovery for vfio-pci devices on s390x [1]. Breaking up the patch
> series into PCI and VFIO only patches to make merging easier based on
> discussion with Alex [2].
>
> Thanks
> Farhan
>
> [1] https://lore.kernel.org/all/20260520171113.1111-1-alifm@linux.ibm.com/
> [2] https://lore.kernel.org/all/20260602163344.1eda12d2@shazbot.org/
>
> ChangeLog
> ---------
> v22: https://lore.kernel.org/all/20260720192505.2957-1-alifm@linux.ibm.com/
> v22 -> v23:
>    - Split placeholder constant into a separate patch (patch 1).
>    - Rebase on 7.2-rc6
>
> v21: https://lore.kernel.org/all/20260630164807.643-1-alifm@linux.ibm.com/
> v21 -> v22
>    - Ammend commit message for patch 1.
>    - Rebase on 7.2-rc4
>
> v20 https://lore.kernel.org/all/20260622171840.1618-1-alifm@linux.ibm.com/
> v20 -> v21
>    - Amend commit message to include Fixes tag and cc stable (patch 4).
>    - Rebase on 7.2-rc1.
>
> v19 https://lore.kernel.org/all/20260615183524.2880-1-alifm@linux.ibm.com/
> v19 -> v20
>    - Unconditionally enable Memory bit while restoring MSI-X (patch 4).
>    Fixes an issue found with sashiko.
>
> v18 https://lore.kernel.org/all/20260603181647.2215-1-alifm@linux.ibm.com/
> v18 -> v19
>    - Move config space accessible check to pcie_flr() function (based on
>    discussion of Sashiko review)
>
>    - Fix a gap in MSI-X restoration (patch 4).
>
>    - Rebase on 7.1-rc7
>
> v17 -> v18
>    - Rebase on 7.1-rc6.
>
> Farhan Ali (5):
>    PCI: Introduce PCI_SLOT_PLACEHOLDER constant for slot_nr placeholder
>      value
>    PCI: Allow per function PCI slots to fix slot reset on s390
>    PCI: Avoid saving config space state if inaccessible
>    PCI: Fail FLR when config space is inaccessible
>    PCI/MSI: Enable memory decoding before restoring MSI-X messages
>
>   drivers/pci/hotplug/pnv_php.c     |  2 +-
>   drivers/pci/hotplug/rpaphp_slot.c |  2 +-
>   drivers/pci/msi/msi.c             | 10 +++++++
>   drivers/pci/pci.c                 | 32 ++++++++++++++++++--
>   drivers/pci/slot.c                | 50 +++++++++++++++++++++----------
>   include/linux/pci.h               |  8 +++--
>   6 files changed, 82 insertions(+), 22 deletions(-)
>