[PATCH] nvme-pci: fix resume after AER recovery
Grochowski, Maciej
Maciej.Grochowski at sony.com
Thu Feb 2 17:29:46 PST 2023
I run remove/rescan for this Samsung PM1733 and it looks like it works fine on both 5.15 and 6.1.9
See the log below:
# echo 1 > /sys/bus/pci/devices/0000:0b:00.0/remove
```
[ 2915.510903] nvme 0000:0b:00.0: PME# disabled
[ 2917.286586] pci 0000:0b:00.0: device released
```
# echo 1 > /sys/bus/pci/rescan
```
[ 2920.627012] pci_bus 0000:c0: scanning bus
[ 2920.632857] pcieport 0000:c0:01.1: scanning [bus c1-c1] behind bridge, pass 0
[ 2920.641819] pci_bus 0000:c1: scanning bus
...
[ 2921.881870] pcieport 0000:00:03.3: scanning [bus 0a-0a] behind bridge, pass 0
[ 2921.892102] pci_bus 0000:0a: scanning bus
[ 2921.898621] pci_bus 0000:0a: bus scan returning with max=0a
[ 2921.906664] pcieport 0000:00:03.4: scanning [bus 0b-0b] behind bridge, pass 0
[ 2921.916322] pci_bus 0000:0b: scanning bus
[ 2921.923143] pci 0000:0b:00.0: [144d:a824] type 00 class 0x010802
[ 2921.931767] pci 0000:0b:00.0: reg 0x10: [mem 0xf0210000-0xf0217fff 64bit]
[ 2921.941367] pci 0000:0b:00.0: reg 0x30: [mem 0xf2d00000-0xf2d0ffff pref]
[ 2921.951365] pci 0000:0b:00.0: reg 0x20c: [mem 0xf0218000-0xf021ffff 64bit]
[ 2921.960879] pci 0000:0b:00.0: VF(n) BAR0 space: [mem 0xf0218000-0xf0317fff 64bit] (contains BAR0 for 32 VFs)
[ 2921.975227] pci_bus 0000:0b: bus scan returning with max=0b
[ 2921.983650] pcieport 0000:00:07.1: scanning [bus 0c-0c] behind bridge, pass 0
[ 2921.993646] pci_bus 0000:0c: scanning bus
[ 2922.000333] pci_bus 0000:0c: bus scan returning with max=0c
[ 2922.008557] pcieport 0000:00:08.1: scanning [bus 0d-0d] behind bridge, pass 0
[ 2922.018366] pci_bus 0000:0d: scanning bus
[ 2922.025031] pci_bus 0000:0d: bus scan returning with max=0d
[ 2922.033234] pcieport 0000:00:01.1: scanning [bus 01-08] behind bridge, pass 1
[ 2922.043121] pcieport 0000:00:03.1: scanning [bus 09-09] behind bridge, pass 1
[ 2922.052866] pcieport 0000:00:03.3: scanning [bus 0a-0a] behind bridge, pass 1
[ 2922.062577] pcieport 0000:00:03.4: scanning [bus 0b-0b] behind bridge, pass 1
[ 2922.072232] pcieport 0000:00:07.1: scanning [bus 0c-0c] behind bridge, pass 1
[ 2922.081835] pcieport 0000:00:08.1: scanning [bus 0d-0d] behind bridge, pass 1
[ 2922.091437] pci_bus 0000:00: bus scan returning with max=0d
[ 2922.499469] pci 0000:0b:00.0: BAR 6: assigned [mem 0xf0200000-0xf020ffff pref]
[ 2922.509087] pci 0000:0b:00.0: BAR 0: assigned [mem 0xf0210000-0xf0217fff 64bit]
[ 2922.518830] pci 0000:0b:00.0: BAR 7: assigned [mem 0xf0218000-0xf0317fff 64bit]
[ 2922.528871] nvme 0000:0b:00.0: runtime IRQ mapping not provided by arch
[ 2922.539667] nvme nvme5: pci function 0000:0b:00.0
[ 2922.548225] nvme 0000:0b:00.0: enabling bus mastering
[ 2922.555997] nvme 0000:0b:00.0: saving config space at offset 0x0 (reading 0xa824144d)
[ 2922.566124] nvme 0000:0b:00.0: saving config space at offset 0x4 (reading 0x100406)
[ 2922.576334] nvme 0000:0b:00.0: saving config space at offset 0x8 (reading 0x1080200)
[ 2922.586310] nvme 0000:0b:00.0: saving config space at offset 0xc (reading 0x10)
[ 2922.595446] nvme 0000:0b:00.0: saving config space at offset 0x10 (reading 0xf0210004)
[ 2922.605199] nvme 0000:0b:00.0: saving config space at offset 0x14 (reading 0x0)
[ 2922.614322] nvme 0000:0b:00.0: saving config space at offset 0x18 (reading 0x0)
[ 2922.623452] nvme 0000:0b:00.0: saving config space at offset 0x1c (reading 0x0)
[ 2922.632541] nvme 0000:0b:00.0: saving config space at offset 0x20 (reading 0x0)
[ 2922.641630] nvme 0000:0b:00.0: saving config space at offset 0x24 (reading 0x0)
[ 2922.650659] nvme 0000:0b:00.0: saving config space at offset 0x28 (reading 0x0)
[ 2922.659654] nvme 0000:0b:00.0: saving config space at offset 0x2c (reading 0xa801144d)
[ 2922.669236] nvme 0000:0b:00.0: saving config space at offset 0x30 (reading 0xf2d00000)
[ 2922.678813] nvme 0000:0b:00.0: saving config space at offset 0x34 (reading 0x40)
[ 2922.687822] nvme 0000:0b:00.0: saving config space at offset 0x38 (reading 0x0)
[ 2922.696721] nvme 0000:0b:00.0: saving config space at offset 0x3c (reading 0x10a)
[ 2922.723443] nvme nvme5: Shutdown timeout set to 10 seconds
[ 2922.765257] nvme nvme5: 63/0/0 default/read/poll queues
[ 2922.842614] nvme5n1: p1
```
More information about the Linux-nvme
mailing list