18c2ecf20Sopenharmony_ciPCIe Device AER statistics
28c2ecf20Sopenharmony_ci--------------------------
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciThese attributes show up under all the devices that are AER capable. These
58c2ecf20Sopenharmony_cistatistical counters indicate the errors "as seen/reported by the device".
68c2ecf20Sopenharmony_ciNote that this may mean that if an endpoint is causing problems, the AER
78c2ecf20Sopenharmony_cicounters may increment at its link partner (e.g. root port) because the
88c2ecf20Sopenharmony_cierrors may be "seen" / reported by the link partner and not the
98c2ecf20Sopenharmony_ciproblematic endpoint itself (which may report all counters as 0 as it never
108c2ecf20Sopenharmony_cisaw any problems).
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciWhat:		/sys/bus/pci/devices/<dev>/aer_dev_correctable
138c2ecf20Sopenharmony_ciDate:		July 2018
148c2ecf20Sopenharmony_ciKernelVersion: 4.19.0
158c2ecf20Sopenharmony_ciContact:	linux-pci@vger.kernel.org, rajatja@google.com
168c2ecf20Sopenharmony_ciDescription:	List of correctable errors seen and reported by this
178c2ecf20Sopenharmony_ci		PCI device using ERR_COR. Note that since multiple errors may
188c2ecf20Sopenharmony_ci		be reported using a single ERR_COR message, thus
198c2ecf20Sopenharmony_ci		TOTAL_ERR_COR at the end of the file may not match the actual
208c2ecf20Sopenharmony_ci		total of all the errors in the file. Sample output::
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci		    localhost /sys/devices/pci0000:00/0000:00:1c.0 # cat aer_dev_correctable
238c2ecf20Sopenharmony_ci		    Receiver Error 2
248c2ecf20Sopenharmony_ci		    Bad TLP 0
258c2ecf20Sopenharmony_ci		    Bad DLLP 0
268c2ecf20Sopenharmony_ci		    RELAY_NUM Rollover 0
278c2ecf20Sopenharmony_ci		    Replay Timer Timeout 0
288c2ecf20Sopenharmony_ci		    Advisory Non-Fatal 0
298c2ecf20Sopenharmony_ci		    Corrected Internal Error 0
308c2ecf20Sopenharmony_ci		    Header Log Overflow 0
318c2ecf20Sopenharmony_ci		    TOTAL_ERR_COR 2
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ciWhat:		/sys/bus/pci/devices/<dev>/aer_dev_fatal
348c2ecf20Sopenharmony_ciDate:		July 2018
358c2ecf20Sopenharmony_ciKernelVersion: 4.19.0
368c2ecf20Sopenharmony_ciContact:	linux-pci@vger.kernel.org, rajatja@google.com
378c2ecf20Sopenharmony_ciDescription:	List of uncorrectable fatal errors seen and reported by this
388c2ecf20Sopenharmony_ci		PCI device using ERR_FATAL. Note that since multiple errors may
398c2ecf20Sopenharmony_ci		be reported using a single ERR_FATAL message, thus
408c2ecf20Sopenharmony_ci		TOTAL_ERR_FATAL at the end of the file may not match the actual
418c2ecf20Sopenharmony_ci		total of all the errors in the file. Sample output::
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci		    localhost /sys/devices/pci0000:00/0000:00:1c.0 # cat aer_dev_fatal
448c2ecf20Sopenharmony_ci		    Undefined 0
458c2ecf20Sopenharmony_ci		    Data Link Protocol 0
468c2ecf20Sopenharmony_ci		    Surprise Down Error 0
478c2ecf20Sopenharmony_ci		    Poisoned TLP 0
488c2ecf20Sopenharmony_ci		    Flow Control Protocol 0
498c2ecf20Sopenharmony_ci		    Completion Timeout 0
508c2ecf20Sopenharmony_ci		    Completer Abort 0
518c2ecf20Sopenharmony_ci		    Unexpected Completion 0
528c2ecf20Sopenharmony_ci		    Receiver Overflow 0
538c2ecf20Sopenharmony_ci		    Malformed TLP 0
548c2ecf20Sopenharmony_ci		    ECRC 0
558c2ecf20Sopenharmony_ci		    Unsupported Request 0
568c2ecf20Sopenharmony_ci		    ACS Violation 0
578c2ecf20Sopenharmony_ci		    Uncorrectable Internal Error 0
588c2ecf20Sopenharmony_ci		    MC Blocked TLP 0
598c2ecf20Sopenharmony_ci		    AtomicOp Egress Blocked 0
608c2ecf20Sopenharmony_ci		    TLP Prefix Blocked Error 0
618c2ecf20Sopenharmony_ci		    TOTAL_ERR_FATAL 0
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ciWhat:		/sys/bus/pci/devices/<dev>/aer_dev_nonfatal
648c2ecf20Sopenharmony_ciDate:		July 2018
658c2ecf20Sopenharmony_ciKernelVersion: 4.19.0
668c2ecf20Sopenharmony_ciContact:	linux-pci@vger.kernel.org, rajatja@google.com
678c2ecf20Sopenharmony_ciDescription:	List of uncorrectable nonfatal errors seen and reported by this
688c2ecf20Sopenharmony_ci		PCI device using ERR_NONFATAL. Note that since multiple errors
698c2ecf20Sopenharmony_ci		may be reported using a single ERR_FATAL message, thus
708c2ecf20Sopenharmony_ci		TOTAL_ERR_NONFATAL at the end of the file may not match the
718c2ecf20Sopenharmony_ci		actual total of all the errors in the file. Sample output::
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci		    localhost /sys/devices/pci0000:00/0000:00:1c.0 # cat aer_dev_nonfatal
748c2ecf20Sopenharmony_ci		    Undefined 0
758c2ecf20Sopenharmony_ci		    Data Link Protocol 0
768c2ecf20Sopenharmony_ci		    Surprise Down Error 0
778c2ecf20Sopenharmony_ci		    Poisoned TLP 0
788c2ecf20Sopenharmony_ci		    Flow Control Protocol 0
798c2ecf20Sopenharmony_ci		    Completion Timeout 0
808c2ecf20Sopenharmony_ci		    Completer Abort 0
818c2ecf20Sopenharmony_ci		    Unexpected Completion 0
828c2ecf20Sopenharmony_ci		    Receiver Overflow 0
838c2ecf20Sopenharmony_ci		    Malformed TLP 0
848c2ecf20Sopenharmony_ci		    ECRC 0
858c2ecf20Sopenharmony_ci		    Unsupported Request 0
868c2ecf20Sopenharmony_ci		    ACS Violation 0
878c2ecf20Sopenharmony_ci		    Uncorrectable Internal Error 0
888c2ecf20Sopenharmony_ci		    MC Blocked TLP 0
898c2ecf20Sopenharmony_ci		    AtomicOp Egress Blocked 0
908c2ecf20Sopenharmony_ci		    TLP Prefix Blocked Error 0
918c2ecf20Sopenharmony_ci		    TOTAL_ERR_NONFATAL 0
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ciPCIe Rootport AER statistics
948c2ecf20Sopenharmony_ci----------------------------
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ciThese attributes show up under only the rootports (or root complex event
978c2ecf20Sopenharmony_cicollectors) that are AER capable. These indicate the number of error messages as
988c2ecf20Sopenharmony_ci"reported to" the rootport. Please note that the rootports also transmit
998c2ecf20Sopenharmony_ci(internally) the ERR_* messages for errors seen by the internal rootport PCI
1008c2ecf20Sopenharmony_cidevice, so these counters include them and are thus cumulative of all the error
1018c2ecf20Sopenharmony_cimessages on the PCI hierarchy originating at that root port.
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_ciWhat:		/sys/bus/pci/devices/<dev>/aer_stats/aer_rootport_total_err_cor
1048c2ecf20Sopenharmony_ciDate:		July 2018
1058c2ecf20Sopenharmony_ciKernelVersion: 4.19.0
1068c2ecf20Sopenharmony_ciContact:	linux-pci@vger.kernel.org, rajatja@google.com
1078c2ecf20Sopenharmony_ciDescription:	Total number of ERR_COR messages reported to rootport.
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ciWhat:	    /sys/bus/pci/devices/<dev>/aer_stats/aer_rootport_total_err_fatal
1108c2ecf20Sopenharmony_ciDate:		July 2018
1118c2ecf20Sopenharmony_ciKernelVersion: 4.19.0
1128c2ecf20Sopenharmony_ciContact:	linux-pci@vger.kernel.org, rajatja@google.com
1138c2ecf20Sopenharmony_ciDescription:	Total number of ERR_FATAL messages reported to rootport.
1148c2ecf20Sopenharmony_ci
1158c2ecf20Sopenharmony_ciWhat:	    /sys/bus/pci/devices/<dev>/aer_stats/aer_rootport_total_err_nonfatal
1168c2ecf20Sopenharmony_ciDate:		July 2018
1178c2ecf20Sopenharmony_ciKernelVersion: 4.19.0
1188c2ecf20Sopenharmony_ciContact:	linux-pci@vger.kernel.org, rajatja@google.com
1198c2ecf20Sopenharmony_ciDescription:	Total number of ERR_NONFATAL messages reported to rootport.
120