[Skiboot] [PATCH 1/3] phb4: Minimise wait when moving through FRESET states

Michael Neuling mikey at neuling.org
Fri Jun 29 16:32:19 AEST 2018


We want to get through this as fast as possible so minimise by
removing msecs_to_tb() call.  Changes number passed from 512 -> 1.

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 hw/phb4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/phb4.c b/hw/phb4.c
index ae584d67fb..755bfe2034 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -2839,7 +2839,7 @@ static int64_t phb4_freset(struct pci_slot *slot)
 		phb4_training_trace(p);
 
 		/* Move on to link poll right away */
-		return pci_slot_set_sm_timeout(slot, msecs_to_tb(1));
+		return pci_slot_set_sm_timeout(slot, 1);
 	case PHB4_SLOT_FRESET_DEASSERT_DELAY:
 		pci_slot_set_state(slot, PHB4_SLOT_LINK_START);
 		return slot->ops.poll_link(slot);
-- 
2.17.1



More information about the Skiboot mailing list