s390/pci: inform when missing required facilities
authorNiklas Schnelle <schnelle@linux.ibm.com>
Mon, 26 Oct 2020 09:01:24 +0000 (10:01 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 18 Nov 2020 11:16:02 +0000 (12:16 +0100)
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>
arch/s390/pci/pci.c

index 570016ae8bcd13731fb4504b74d85887a69ef91e..41df8fcfddde28254d9ec0b37cd1c3d454fecfdb 100644 (file)
@@ -851,8 +851,10 @@ static int __init pci_base_init(void)
        if (!s390_pci_probe)
                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;
+       }
 
        if (test_facility(153) && !s390_pci_no_mio) {
                static_branch_enable(&have_mio);