Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105653
b: refs/heads/master
c: 7644264
h: refs/heads/master
i:
  105651: b7f5c50
v: v3
  • Loading branch information
Roland Dreier committed Jul 23, 2008
1 parent 07f2505 commit 4a8a64f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95d04f0735b4fc837bff9aedcc3f3efb20ddc3d1
refs/heads/master: 76442640829163d0cdb67c2bf0cb4b81a0fe537b
7 changes: 7 additions & 0 deletions trunk/drivers/net/mlx4/pd.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ EXPORT_SYMBOL_GPL(mlx4_uar_free);

int mlx4_init_uar_table(struct mlx4_dev *dev)
{
if (dev->caps.num_uars <= 128) {
mlx4_err(dev, "Only %d UAR pages (need more than 128)\n",
dev->caps.num_uars);
mlx4_err(dev, "Increase firmware log2_uar_bar_megabytes?\n");
return -ENODEV;
}

return mlx4_bitmap_init(&mlx4_priv(dev)->uar_table.bitmap,
dev->caps.num_uars, dev->caps.num_uars - 1,
max(128, dev->caps.reserved_uars));
Expand Down

0 comments on commit 4a8a64f

Please sign in to comment.