Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH v1] PCI: Ignore Immediate Readiness for Samsung a826 device
@ 2026-11-23 21:53 Farhan Ali
  2026-11-23 21:58 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Farhan Ali @ 2026-11-23 21:53 UTC (permalink / raw)
  To: linux-pci, linux-kernel, bhelgaas
  Cc: lukas, alifm, mjrosato, gbayer, schnelle

The Samsung NVMe SSD Controller PM174x [144d:a826] advertises Immediate
Readiness, so pcie_flr() doesn't wait after FLR, but the device isn't ready
yet and config reads return ~0 after the reset. This happens with
firmware version SNA6SNA6 or older.

This was seen on s390x with the nvme driver bound, by resetting the device
via the sysfs reset attribute:

  # echo 1 > /sys/bus/pci/devices/200c:00:00.0/reset

  nvme 200c:00:00.0: Unable to change power state from D3cold to D0, device inaccessible
  nvme nvme0: Disabling device after reset failure: -19

Ignore Immediate Readiness on this device too, so pcie_flr() waits.

Fixes: 10baa9b4df40 ("PCI: Drop unnecessary retries when restoring BARs")
Signed-off-by: Farhan Ali <alifm@linux.ibm.com>
---
 drivers/pci/quirks.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 4a02fc80755d..11c3b45afe78 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -5790,6 +5790,7 @@ static void quirk_no_imm_ready(struct pci_dev *dev)
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SAMSUNG, 0xa80c, quirk_no_imm_ready);
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SAMSUNG, 0xa80d, quirk_no_imm_ready);
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SAMSUNG, 0xa80e, quirk_no_imm_ready);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SAMSUNG, 0xa826, quirk_no_imm_ready);
 
 static void quirk_no_ext_tags(struct pci_dev *pdev)
 {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] PCI: Ignore Immediate Readiness for Samsung a826 device
  2026-11-23 21:53 [PATCH v1] PCI: Ignore Immediate Readiness for Samsung a826 device Farhan Ali
@ 2026-11-23 21:58 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-23 21:58 UTC (permalink / raw)
  To: Farhan Ali, linux-pci

> The Samsung NVMe SSD Controller PM174x [144d:a826] advertises Immediate
> Readiness, so pcie_flr() doesn't wait after FLR, but the device isn't ready
> yet and config reads return ~0 after the reset. This happens with
> firmware version SNA6SNA6 or older.
> 
> This was seen on s390x with the nvme driver bound, by resetting the device
> via the sysfs reset attribute:
> 
>   # echo 1 > /sys/bus/pci/devices/200c:00:00.0/reset
> 
>   nvme 200c:00:00.0: Unable to change power state from D3cold to D0, device inaccessible
>   nvme nvme0: Disabling device after reset failure: -19
> 
> Ignore Immediate Readiness on this device too, so pcie_flr() waits.
> 
> Fixes: 10baa9b4df40 ("PCI: Drop unnecessary retries when restoring BARs")
> Signed-off-by: Farhan Ali <alifm@linux.ibm.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123215308.1285-1-alifm@linux.ibm.com?part=1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-23 21:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 21:53 [PATCH v1] PCI: Ignore Immediate Readiness for Samsung a826 device Farhan Ali
2026-11-23 21:58 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox