aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/hw/cxgb3/cxio_dbg.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/drivers/infiniband/hw/cxgb3/cxio_dbg.c b/drivers/infiniband/hw/cxgb3/cxio_dbg.c
index 8bca6b4ec9af..445e89e5e7cf 100644
--- a/drivers/infiniband/hw/cxgb3/cxio_dbg.c
+++ b/drivers/infiniband/hw/cxgb3/cxio_dbg.c
@@ -45,10 +45,9 @@ void cxio_dump_tpt(struct cxio_rdev *rdev, u32 stag)
45 int size = 32; 45 int size = 32;
46 46
47 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); 47 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC);
48 if (!m) { 48 if (!m)
49 PDBG("%s couldn't allocate memory.\n", __func__);
50 return; 49 return;
51 } 50
52 m->mem_id = MEM_PMRX; 51 m->mem_id = MEM_PMRX;
53 m->addr = (stag>>8) * 32 + rdev->rnic_info.tpt_base; 52 m->addr = (stag>>8) * 32 + rdev->rnic_info.tpt_base;
54 m->len = size; 53 m->len = size;
@@ -82,10 +81,9 @@ void cxio_dump_pbl(struct cxio_rdev *rdev, u32 pbl_addr, uint len, u8 shift)
82 size = npages * sizeof(u64); 81 size = npages * sizeof(u64);
83 82
84 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); 83 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC);
85 if (!m) { 84 if (!m)
86 PDBG("%s couldn't allocate memory.\n", __func__);
87 return; 85 return;
88 } 86
89 m->mem_id = MEM_PMRX; 87 m->mem_id = MEM_PMRX;
90 m->addr = pbl_addr; 88 m->addr = pbl_addr;
91 m->len = size; 89 m->len = size;
@@ -144,10 +142,9 @@ void cxio_dump_rqt(struct cxio_rdev *rdev, u32 hwtid, int nents)
144 int rc; 142 int rc;
145 143
146 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); 144 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC);
147 if (!m) { 145 if (!m)
148 PDBG("%s couldn't allocate memory.\n", __func__);
149 return; 146 return;
150 } 147
151 m->mem_id = MEM_PMRX; 148 m->mem_id = MEM_PMRX;
152 m->addr = ((hwtid)<<10) + rdev->rnic_info.rqt_base; 149 m->addr = ((hwtid)<<10) + rdev->rnic_info.rqt_base;
153 m->len = size; 150 m->len = size;
@@ -177,10 +174,9 @@ void cxio_dump_tcb(struct cxio_rdev *rdev, u32 hwtid)
177 int rc; 174 int rc;
178 175
179 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); 176 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC);
180 if (!m) { 177 if (!m)
181 PDBG("%s couldn't allocate memory.\n", __func__);
182 return; 178 return;
183 } 179
184 m->mem_id = MEM_CM; 180 m->mem_id = MEM_CM;
185 m->addr = hwtid * size; 181 m->addr = hwtid * size;
186 m->len = size; 182 m->len = size;