[Skiboot] [PATCH 2/2] phb4: Default to PCIe GEN2 on DD1
Michael Neuling
mikey at neuling.org
Tue Mar 28 17:14:57 AEDT 2017
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 at neuling.org>
---
hw/phb4.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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)
--
2.9.3
More information about the Skiboot
mailing list