Skip to content

Commit

Permalink
PHB3: Wait 2s for electrical link to come up
Browse files Browse the repository at this point in the history
We have problem with some Mellanox cards

Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
ozbenh committed Jul 1, 2015
1 parent 6be837c commit f469c1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hw/phb3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2026,12 +2026,12 @@ static int64_t phb3_start_link_poll(struct phb3 *p)
{
/*
* Wait for link up to 10s. However, we give up after
* only a second if the electrical connection isn't
* only two seconds if the electrical connection isn't
* stablished according to the DLP link control register
*/
p->retries = PHB3_LINK_ELECTRICAL_RETRIES;
p->state = PHB3_STATE_WAIT_LINK_ELECTRICAL;
return phb3_set_sm_timeout(p, msecs_to_tb(1000));
return phb3_set_sm_timeout(p, msecs_to_tb(100));
}

static int64_t phb3_sm_hot_reset(struct phb3 *p)
Expand Down
2 changes: 1 addition & 1 deletion include/phb3.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ struct phb3_err {

/* Link timeouts, increments of 100ms */
#define PHB3_LINK_WAIT_RETRIES 20
#define PHB3_LINK_ELECTRICAL_RETRIES 10
#define PHB3_LINK_ELECTRICAL_RETRIES 20

/* PHB3 flags */
#define PHB3_AIB_FENCED 0x00000001
Expand Down

0 comments on commit f469c1f

Please sign in to comment.