Thread (5 messages) 5 messages, 3 authors, 2021-07-02

Re: [PATCH] Documentation: PCI: pci-error-recovery: rearrange the general sequence

flat view

From: Wesley Sheng <hidden>
Date: 2021-06-29 03:34:55
Also in: linux-doc, linux-pci, lkml

On Fri, Jun 18, 2021 at 05:21:32PM +1000, Oliver O'Halloran wrote:
On Fri, Jun 18, 2021 at 4:05 PM Wesley Sheng [off-list ref] wrote:
quoted
Reset_link() callback function was called before mmio_enabled() in
pcie_do_recovery() function actually, so rearrange the general
sequence betwen step 2 and step 3 accordingly.
I don't think this is true in all cases. If pcie_do_recovery() is
called with state==pci_channel_io_normal (i.e. non-fatal AER) the link
won't be reset. EEH (ppc PCI error recovery thing) also uses
.mmio_enabled() as described.
Yes, in case of non-fatal AER, reset_link() callback (aer_root_reset() for 
AER and dpc_reset_link() for DPC) will not be invoked. And if 
.error_detected() return PCI_ERS_RESULT_CAN_RECOVER, .mmio_enabled() be
called followed.

But if pcie_do_recovery() is called with state == pci_channel_io_frozen,
reset_link() callback is called after .error_detected() but before
.mmio_enabled(). So I thought Step 2: MMIO Enabled and Step 3: Link Reset
should rearrange their sequence.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help