Skip to content

Commit

Permalink
connectx4.lua: fix alignment of HCA command queue
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergall committed Jul 19, 2018
1 parent 580cf9b commit 10ceea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/mellanox/connectx4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ local data_per_mailbox = 0x200 -- Bytes of input/output data in a mailbox

-- Create a command queue with dedicated/reusable DMA memory.
function HCA:new (init_seg)
local entry = ffi.cast("uint32_t*", memory.dma_alloc(0x40))
local entry = ffi.cast("uint32_t*", memory.dma_alloc(0x40, 4096))
local inboxes, outboxes = {}, {}
for i = 0, max_mailboxes-1 do
-- XXX overpadding.. 0x240 alignment is not accepted?
Expand Down

0 comments on commit 10ceea4

Please sign in to comment.