diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-22 17:50:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-22 17:50:12 -0400 |
commit | ece236ce2fad9c27a6fd2530f899289025194bce (patch) | |
tree | 474b793205872206a2a3f7d409ff9b1f81f3a9a8 /drivers/infiniband/hw/cxgb4 | |
parent | 441c196e84b11aad3123baa9320eee7abc6b5c98 (diff) | |
parent | 4460207561290c3be7e6c7538f22690028170c1d (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (26 commits)
IB/qib: Defer HCA error events to tasklet
mlx4_core: Bump the driver version to 1.0
RDMA/cxgb4: Use printk_ratelimited() instead of printk_ratelimit()
IB/mlx4: Support PMA counters for IBoE
IB/mlx4: Use flow counters on IBoE ports
IB/pma: Add include file for IBA performance counters definitions
mlx4_core: Add network flow counters
mlx4_core: Fix location of counter index in QP context struct
mlx4_core: Read extended capabilities into the flags field
mlx4_core: Extend capability flags to 64 bits
IB/mlx4: Generate GID change events in IBoE code
IB/core: Add GID change event
RDMA/cma: Don't allow IPoIB port space for IBoE
RDMA: Allow for NULL .modify_device() and .modify_port() methods
IB/qib: Update active link width
IB/qib: Fix potential deadlock with link down interrupt
IB/qib: Add sysfs interface to read free contexts
IB/mthca: Remove unnecessary read of PCI_CAP_ID_EXP
IB/qib: Remove double define
IB/qib: Remove unnecessary read of PCI_CAP_ID_EXP
...
Diffstat (limited to 'drivers/infiniband/hw/cxgb4')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/provider.c | 8 | ||||
-rw-r--r-- | drivers/infiniband/hw/cxgb4/resource.c | 9 |
2 files changed, 5 insertions, 12 deletions
diff --git a/drivers/infiniband/hw/cxgb4/provider.c b/drivers/infiniband/hw/cxgb4/provider.c index 5b9e4220ca08..247fe706e7fa 100644 --- a/drivers/infiniband/hw/cxgb4/provider.c +++ b/drivers/infiniband/hw/cxgb4/provider.c | |||
@@ -58,13 +58,6 @@ static int fastreg_support = 1; | |||
58 | module_param(fastreg_support, int, 0644); | 58 | module_param(fastreg_support, int, 0644); |
59 | MODULE_PARM_DESC(fastreg_support, "Advertise fastreg support (default=1)"); | 59 | MODULE_PARM_DESC(fastreg_support, "Advertise fastreg support (default=1)"); |
60 | 60 | ||
61 | static int c4iw_modify_port(struct ib_device *ibdev, | ||
62 | u8 port, int port_modify_mask, | ||
63 | struct ib_port_modify *props) | ||
64 | { | ||
65 | return -ENOSYS; | ||
66 | } | ||
67 | |||
68 | static struct ib_ah *c4iw_ah_create(struct ib_pd *pd, | 61 | static struct ib_ah *c4iw_ah_create(struct ib_pd *pd, |
69 | struct ib_ah_attr *ah_attr) | 62 | struct ib_ah_attr *ah_attr) |
70 | { | 63 | { |
@@ -456,7 +449,6 @@ int c4iw_register_device(struct c4iw_dev *dev) | |||
456 | dev->ibdev.dma_device = &(dev->rdev.lldi.pdev->dev); | 449 | dev->ibdev.dma_device = &(dev->rdev.lldi.pdev->dev); |
457 | dev->ibdev.query_device = c4iw_query_device; | 450 | dev->ibdev.query_device = c4iw_query_device; |
458 | dev->ibdev.query_port = c4iw_query_port; | 451 | dev->ibdev.query_port = c4iw_query_port; |
459 | dev->ibdev.modify_port = c4iw_modify_port; | ||
460 | dev->ibdev.query_pkey = c4iw_query_pkey; | 452 | dev->ibdev.query_pkey = c4iw_query_pkey; |
461 | dev->ibdev.query_gid = c4iw_query_gid; | 453 | dev->ibdev.query_gid = c4iw_query_gid; |
462 | dev->ibdev.alloc_ucontext = c4iw_alloc_ucontext; | 454 | dev->ibdev.alloc_ucontext = c4iw_alloc_ucontext; |
diff --git a/drivers/infiniband/hw/cxgb4/resource.c b/drivers/infiniband/hw/cxgb4/resource.c index 4fb50d58b493..407ff3924150 100644 --- a/drivers/infiniband/hw/cxgb4/resource.c +++ b/drivers/infiniband/hw/cxgb4/resource.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <linux/spinlock.h> | 37 | #include <linux/spinlock.h> |
38 | #include <linux/errno.h> | 38 | #include <linux/errno.h> |
39 | #include <linux/genalloc.h> | 39 | #include <linux/genalloc.h> |
40 | #include <linux/ratelimit.h> | ||
40 | #include "iw_cxgb4.h" | 41 | #include "iw_cxgb4.h" |
41 | 42 | ||
42 | #define RANDOM_SIZE 16 | 43 | #define RANDOM_SIZE 16 |
@@ -311,8 +312,8 @@ u32 c4iw_pblpool_alloc(struct c4iw_rdev *rdev, int size) | |||
311 | { | 312 | { |
312 | unsigned long addr = gen_pool_alloc(rdev->pbl_pool, size); | 313 | unsigned long addr = gen_pool_alloc(rdev->pbl_pool, size); |
313 | PDBG("%s addr 0x%x size %d\n", __func__, (u32)addr, size); | 314 | PDBG("%s addr 0x%x size %d\n", __func__, (u32)addr, size); |
314 | if (!addr && printk_ratelimit()) | 315 | if (!addr) |
315 | printk(KERN_WARNING MOD "%s: Out of PBL memory\n", | 316 | printk_ratelimited(KERN_WARNING MOD "%s: Out of PBL memory\n", |
316 | pci_name(rdev->lldi.pdev)); | 317 | pci_name(rdev->lldi.pdev)); |
317 | return (u32)addr; | 318 | return (u32)addr; |
318 | } | 319 | } |
@@ -373,8 +374,8 @@ u32 c4iw_rqtpool_alloc(struct c4iw_rdev *rdev, int size) | |||
373 | { | 374 | { |
374 | unsigned long addr = gen_pool_alloc(rdev->rqt_pool, size << 6); | 375 | unsigned long addr = gen_pool_alloc(rdev->rqt_pool, size << 6); |
375 | PDBG("%s addr 0x%x size %d\n", __func__, (u32)addr, size << 6); | 376 | PDBG("%s addr 0x%x size %d\n", __func__, (u32)addr, size << 6); |
376 | if (!addr && printk_ratelimit()) | 377 | if (!addr) |
377 | printk(KERN_WARNING MOD "%s: Out of RQT memory\n", | 378 | printk_ratelimited(KERN_WARNING MOD "%s: Out of RQT memory\n", |
378 | pci_name(rdev->lldi.pdev)); | 379 | pci_name(rdev->lldi.pdev)); |
379 | return (u32)addr; | 380 | return (u32)addr; |
380 | } | 381 | } |