projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b270757
)
IB/mthca: Don't use privileged UAR for kernel access
author
Michael S. Tsirkin
<mst@mellanox.co.il>
Fri, 22 Sep 2006 22:17:18 +0000
(15:17 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Fri, 22 Sep 2006 22:17:18 +0000
(15:17 -0700)
Make kernel use UAR2 instead of UAR1 for hardware access: this adds
sanity checking from the hardware side, without any performance cost.
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_uar.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mthca/mthca_uar.c
b/drivers/infiniband/hw/mthca/mthca_uar.c
index
8e92198
..
8b72848
100644
(file)
--- a/
drivers/infiniband/hw/mthca/mthca_uar.c
+++ b/
drivers/infiniband/hw/mthca/mthca_uar.c
@@
-60,7
+60,7
@@
int mthca_init_uar_table(struct mthca_dev *dev)
ret = mthca_alloc_init(&dev->uar_table.alloc,
dev->limits.num_uars,
dev->limits.num_uars - 1,
- dev->limits.reserved_uars);
+ dev->limits.reserved_uars
+ 1
);
if (ret)
return ret;