|
@@ -21,7 +21,7 @@
|
21
|
21
|
|
22
|
22
|
#include "mt23108.h"
|
23
|
23
|
#include "ib_driver.h"
|
24
|
|
-#include "pci.h"
|
|
24
|
+#include <gpxe/pci.h>
|
25
|
25
|
|
26
|
26
|
struct device_buffers_st {
|
27
|
27
|
union recv_wqe_u mads_qp_rcv_queue[NUM_MADS_RCV_WQES]
|
|
@@ -203,7 +203,7 @@ static int ib_device_init(struct pci_device *dev)
|
203
|
203
|
eprintf("");
|
204
|
204
|
return -1;
|
205
|
205
|
}
|
206
|
|
- tprintf("uar_base (pa:va) = 0x%lx 0x%lx",
|
|
206
|
+ tprintf("uar_base (pa:va) = 0x%lx %p",
|
207
|
207
|
tavor_pci_dev.dev.bar[2] + UAR_IDX * 0x1000, tavor_pci_dev.uar);
|
208
|
208
|
|
209
|
209
|
tprintf("");
|
|
@@ -225,7 +225,7 @@ static int init_dev_data(void)
|
225
|
225
|
|
226
|
226
|
dev_buffers_p = bus_to_virt(tmp);
|
227
|
227
|
memreg_size = (__u32) (&memreg_size) - (__u32) dev_buffers_p;
|
228
|
|
- tprintf("src_buf=0x%lx, dev_buffers_p=0x%lx, memreg_size=0x%x", src_buf,
|
|
228
|
+ tprintf("src_buf=%p, dev_buffers_p=%p, memreg_size=0x%lx", src_buf,
|
229
|
229
|
dev_buffers_p, memreg_size);
|
230
|
230
|
|
231
|
231
|
return 0;
|
|
@@ -551,9 +551,9 @@ static int setup_hca(__u8 port, void **eq_p)
|
551
|
551
|
tprintf("fw_rev_major=%d", qfw.fw_rev_major);
|
552
|
552
|
tprintf("fw_rev_minor=%d", qfw.fw_rev_minor);
|
553
|
553
|
tprintf("fw_rev_subminor=%d", qfw.fw_rev_subminor);
|
554
|
|
- tprintf("error_buf_start_h=0x%x", qfw.error_buf_start_h);
|
555
|
|
- tprintf("error_buf_start_l=0x%x", qfw.error_buf_start_l);
|
556
|
|
- tprintf("error_buf_size=%d", qfw.error_buf_size);
|
|
554
|
+ tprintf("error_buf_start_h=0x%lx", qfw.error_buf_start_h);
|
|
555
|
+ tprintf("error_buf_start_l=0x%lx", qfw.error_buf_start_l);
|
|
556
|
+ tprintf("error_buf_size=%ld", qfw.error_buf_size);
|
557
|
557
|
}
|
558
|
558
|
|
559
|
559
|
if (qfw.error_buf_start_h) {
|
|
@@ -944,7 +944,7 @@ static int post_send_req(void *qph, void *wqeh, __u8 num_gather)
|
944
|
944
|
__u32 *psrc, *pdst;
|
945
|
945
|
__u32 nds;
|
946
|
946
|
|
947
|
|
- tprintf("snd_wqe=0x%lx, virt_to_bus(snd_wqe)=0x%lx", snd_wqe,
|
|
947
|
+ tprintf("snd_wqe=%p, virt_to_bus(snd_wqe)=0x%lx", snd_wqe,
|
948
|
948
|
virt_to_bus(snd_wqe));
|
949
|
949
|
|
950
|
950
|
memset(&dbell, 0, sizeof dbell);
|
|
@@ -1068,7 +1068,7 @@ static int create_ipoib_qp(void **qp_pp,
|
1068
|
1068
|
/* update data */
|
1069
|
1069
|
qp->rcv_wq[i].wqe_cont.qp = qp;
|
1070
|
1070
|
qp->rcv_bufs[i] = ib_buffers.ipoib_rcv_buf[i];
|
1071
|
|
- tprintf("rcv_buf=%lx", qp->rcv_bufs[i]);
|
|
1071
|
+ tprintf("rcv_buf=%p", qp->rcv_bufs[i]);
|
1072
|
1072
|
}
|
1073
|
1073
|
|
1074
|
1074
|
/* init send queue WQEs list */
|
|
@@ -1401,7 +1401,7 @@ static int ib_poll_cq(void *cqh, struct ib_cqe_st *ib_cqe_p, u8 * num_cqes)
|
1401
|
1401
|
eprintf("syndrome=0x%lx",
|
1402
|
1402
|
EX_FLD(cqe.error_cqe, tavorprm_completion_with_error_st,
|
1403
|
1403
|
syndrome));
|
1404
|
|
- eprintf("wqe_addr=0x%lx", wqe_p);
|
|
1404
|
+ eprintf("wqe_addr=%p", wqe_p);
|
1405
|
1405
|
eprintf("wqe_size=0x%lx",
|
1406
|
1406
|
EX_FLD(cqe.error_cqe, tavorprm_completion_with_error_st,
|
1407
|
1407
|
wqe_size));
|
|
@@ -1530,7 +1530,7 @@ static struct recv_wqe_st *alloc_rcv_wqe(struct udqp_st *qp)
|
1530
|
1530
|
wqe->mpointer[1].lkey = dev_ib_data.mkey;
|
1531
|
1531
|
wqe->mpointer[1].byte_count = qp->rcv_buf_sz;
|
1532
|
1532
|
|
1533
|
|
- tprintf("rcv_buf=%lx\n", qp->rcv_bufs[new_entry]);
|
|
1533
|
+ tprintf("rcv_buf=%p\n", qp->rcv_bufs[new_entry]);
|
1534
|
1534
|
|
1535
|
1535
|
/* we do it only on the data segment since the control
|
1536
|
1536
|
segment is always owned by HW */
|
|
@@ -1657,7 +1657,7 @@ static int poll_eq(struct ib_eqe_st *ib_eqe_p, __u8 * num_eqes)
|
1657
|
1657
|
struct eq_st *eq = &dev_ib_data.eq;
|
1658
|
1658
|
|
1659
|
1659
|
ptr = (__u32 *) (&(eq->eq_buf[eq->cons_idx]));
|
1660
|
|
- tprintf("cons)idx=%d, addr(eqe)=%x, val=0x%x", eq->cons_idx, virt_to_bus(ptr), ptr[7]);
|
|
1660
|
+ tprintf("cons)idx=%ld, addr(eqe)=%lx, val=0x%lx", eq->cons_idx, virt_to_bus(ptr), ptr[7]);
|
1661
|
1661
|
owner = (ptr[7] & 0x80000000) ? OWNER_HW : OWNER_SW;
|
1662
|
1662
|
if (owner == OWNER_SW) {
|
1663
|
1663
|
tprintf("got eqe");
|