s390/pci: inform when missing required facilities

when we're missing the necessary machine facilities zPCI can
not function. Until now it would silently fail to be initialized,
add an informational print.

Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
Niklas Schnelle 2020-10-26 10:01:24 +01:00 committed by Heiko Carstens
parent ab177c5d00
commit da78693e6e
1 changed files with 3 additions and 1 deletions

View File

@ -851,8 +851,10 @@ static int __init pci_base_init(void)
if (!s390_pci_probe) if (!s390_pci_probe)
return 0; return 0;
if (!test_facility(69) || !test_facility(71)) if (!test_facility(69) || !test_facility(71)) {
pr_info("PCI is not supported because CPU facilities 69 or 71 are not available\n");
return 0; return 0;
}
if (test_facility(153) && !s390_pci_no_mio) { if (test_facility(153) && !s390_pci_no_mio) {
static_branch_enable(&have_mio); static_branch_enable(&have_mio);