]> git.baikalelectronics.ru Git - kernel.git/commit
s390/pci: add error record for CC 2 retries
authorNiklas Schnelle <schnelle@linux.ibm.com>
Fri, 25 Feb 2022 08:45:24 +0000 (09:45 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 25 Apr 2022 11:54:15 +0000 (13:54 +0200)
commit09c346356d3045c04b956441b65ea5999ef6d6f4
treea3e10fd2398c342ce0f784e4ce3883387ab62ac5
parent66d62013636f225d830432c9c749a84a804c0ce0
s390/pci: add error record for CC 2 retries

Currently it is not detectable from within Linux when PCI instructions
are retried because of a busy condition. Detecting such conditions and
especially how long they lasted can however be quite useful in problem
determination. This patch enables this by adding an s390dbf error log
when a CC 2 is first encountered as well as after the retried
instruction.

Despite being unlikely it may be possible that these added debug
messages drown out important other messages so allow setting the debug
level in zpci_err_insn*() and set their level to 1 so they can be
filtered out if need be.

Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/pci_debug.h
arch/s390/pci/pci_insn.c