Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61417
b: refs/heads/master
c: fbb9318
h: refs/heads/master
i:
  61415: 7d9a56c
v: v3
  • Loading branch information
Joachim Fenkes authored and Roland Dreier committed Jul 18, 2007
1 parent 85f356d commit 6f75540
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8fcea95a2a15444d5cc4bee174bb12233aa0a2aa
refs/heads/master: fbb9318be4b6eba36482e1275729c5c3dfdf8156
29 changes: 17 additions & 12 deletions trunk/drivers/infiniband/hw/ehca/ehca_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,22 +263,27 @@ int ehca_sense_attributes(struct ehca_shca *shca)

ehca_gen_dbg(" ... hardware version=%x:%x", hcaaver, revid);

if ((hcaaver == 1) && (revid == 0))
shca->hw_level = 0x11;
else if ((hcaaver == 1) && (revid == 1))
shca->hw_level = 0x12;
else if ((hcaaver == 1) && (revid == 2))
shca->hw_level = 0x13;
else if ((hcaaver == 2) && (revid == 0))
shca->hw_level = 0x21;
else if ((hcaaver == 2) && (revid == 0x10))
shca->hw_level = 0x22;
else {
if (hcaaver == 1) {
if (revid <= 3)
shca->hw_level = 0x10 | (revid + 1);
else
shca->hw_level = 0x14;
} else if (hcaaver == 2) {
if (revid == 0)
shca->hw_level = 0x21;
else if (revid == 0x10)
shca->hw_level = 0x22;
else if (revid == 0x20 || revid == 0x21)
shca->hw_level = 0x23;
}

if (!shca->hw_level) {
ehca_gen_warn("unknown hardware version"
" - assuming default level");
shca->hw_level = 0x22;
}
}
} else
shca->hw_level = ehca_hw_level;
ehca_gen_dbg(" ... hardware level=%x", shca->hw_level);

shca->sport[0].rate = IB_RATE_30_GBPS;
Expand Down

0 comments on commit 6f75540

Please sign in to comment.