aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2017-07-12 12:06:55 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-07-13 10:19:45 +1000
commitde360495f69a117cadcbffbb8ebe930014c75e2a (patch)
treefcec1b8d7b1aa7e5aa3f9bcc22173340b1ce0fb9
parent652340ac11a2f163bb860d698d8110057c618bef (diff)
downloadskiboot-de360495f69a117cadcbffbb8ebe930014c75e2a.zip
skiboot-de360495f69a117cadcbffbb8ebe930014c75e2a.tar.gz
skiboot-de360495f69a117cadcbffbb8ebe930014c75e2a.tar.bz2
phb4: Do more retries on link training failures
Currently we only retry once when we have a link training failure. This changes this to be 3 retries as 1 retry is not giving us enough reliablity. This will increase the boot time, especially on systems where we incorrectly detect a link presence when there really is nothing present. I'll post a followup patch to optimise our timings to help mitigate this later. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--hw/phb4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/phb4.c b/hw/phb4.c
index 041c626..2f3af3a 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -2512,7 +2512,7 @@ static struct pci_slot *phb4_slot_create(struct phb *phb)
slot->ops.hreset = phb4_hreset;
slot->ops.freset = phb4_freset;
slot->ops.creset = phb4_creset;
- slot->link_retries = 1;
+ slot->link_retries = 3;
return slot;
}