2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 23:31:39 +00:00

Map the whole of physical memory

This commit is contained in:
Michael Brown 2007-09-15 03:22:04 +01:00
parent 970951666f
commit 37a036bd48
2 changed files with 9 additions and 7 deletions

View File

@ -333,9 +333,11 @@ static void prep_sw2hw_mpt_buf(void *buf, __u32 mkey)
INS_FLD(1, buf, arbelprm_mpt_st, r_w);
INS_FLD(mkey, buf, arbelprm_mpt_st, mem_key);
INS_FLD(GLOBAL_PD, buf, arbelprm_mpt_st, pd);
INS_FLD(virt_to_bus(dev_buffers_p), buf, arbelprm_mpt_st,
start_address_l);
INS_FLD(memreg_size, buf, arbelprm_mpt_st, reg_wnd_len_l);
// INS_FLD(virt_to_bus(dev_buffers_p), buf, arbelprm_mpt_st,
// start_address_l);
// INS_FLD(memreg_size, buf, arbelprm_mpt_st, reg_wnd_len_l);
INS_FLD(0xffffffffUL, buf, arbelprm_mpt_st, reg_wnd_len_l);
INS_FLD(0xffffffffUL, buf, arbelprm_mpt_st, reg_wnd_len_h);
}
static void prep_sw2hw_eq_buf(void *buf, struct eqe_t *eq_buf)

View File

@ -366,11 +366,11 @@ static int arbel_post_send ( struct ib_device *ibdev, struct io_buffer *iobuf,
MLX_POPULATE_1 ( &wqe->udseg, arbelprm_wqe_segment_ud_st, 9,
q_key, av->qkey );
// wqe->mpointer[0].local_addr_l =
// cpu_to_be32 ( virt_to_bus ( iobuf->data ) );
wqe->mpointer[0].local_addr_l =
cpu_to_be32 ( virt_to_bus ( iobuf->data ) );
memcpy ( bus_to_virt ( be32_to_cpu ( wqe->mpointer[0].local_addr_l ) ),
iobuf->data, iob_len ( iobuf ) );
// memcpy ( bus_to_virt ( be32_to_cpu ( wqe->mpointer[0].local_addr_l ) ),
// iobuf->data, iob_len ( iobuf ) );
wqe->mpointer[0].byte_count = cpu_to_be32 ( iob_len ( iobuf ) );