Skip to content

Commit

Permalink
s390/pci: inform when missing required facilities
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
  • Loading branch information
niklas88 authored and hcahca committed Nov 18, 2020
1 parent ab177c5 commit da78693
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/s390/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit da78693

Please sign in to comment.