Message ID | 20170328061457.25104-2-mikey@neuling.org |
---|---|
State | Accepted |
Headers | show |
diff --git a/hw/phb4.c b/hw/phb4.c index 694a475aa7..27213c43fa 100644 --- a/hw/phb4.c +++ b/hw/phb4.c @@ -3168,8 +3168,10 @@ static void phb4_create(struct dt_node *np) if (!phb4_read_capabilities(p)) goto failed; - /* Priority order: NVRAM -> dt -> GEN4 */ + /* Priority order: NVRAM -> dt -> GEN2 dd1 -> GEN4 */ p->max_link_speed = 4; + if (p->rev == PHB4_REV_NIMBUS_DD10) + p->max_link_speed = 2; if (dt_has_node_property(np, "ibm,max-link-speed", NULL)) p->max_link_speed = dt_prop_get_u32(np, "ibm,max-link-speed"); if (pcie_max_link_speed)
Default to PCIe GEN2 link speeds on DD1 for stability. Can be overridden using nvram pcie-max-link-speed=4 parameter. Signed-off-by: Michael Neuling <mikey@neuling.org> --- hw/phb4.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)