Skip to content

Commit

Permalink
phb4: Change timeouts prints to error level
Browse files Browse the repository at this point in the history
If the link doesn't have a electrical link or the link doesn't train
we should make that more obvious to the user.

This boosts these prints to error level.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
mikey authored and stewartsmith committed Jul 25, 2017
1 parent d392d5b commit 65d7ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/phb4.c
Original file line number Diff line number Diff line change
Expand Up @@ -2218,7 +2218,7 @@ static int64_t phb4_poll_link(struct pci_slot *slot)
}

if (slot->retries-- == 0) {
PHBDBG(p, "LINK: Timeout waiting for electrical link\n");
PHBERR(p, "LINK: Timeout waiting for electrical link\n");
PHBDBG(p, "LINK: DLP train control: 0x%016llx\n", reg);
rc = phb4_retry_state(slot);
if (rc >= OPAL_SUCCESS)
Expand All @@ -2239,7 +2239,7 @@ static int64_t phb4_poll_link(struct pci_slot *slot)
}

if (slot->retries-- == 0) {
PHBDBG(p, "LINK: Timeout waiting for link up\n");
PHBERR(p, "LINK: Timeout waiting for link up\n");
PHBDBG(p, "LINK: DLP train control: 0x%016llx\n", reg);
rc = phb4_retry_state(slot);
if (rc >= OPAL_SUCCESS)
Expand Down

0 comments on commit 65d7ce5

Please sign in to comment.