Commit 2d8f6db8 authored by Michel Arruat's avatar Michel Arruat
Browse files

New masterFIP lib version 1.1.2



        This pacth fixes a bug in libmasterfip-irq.c: the library gets from
        mockturtle message one by one to avoid any packing effect (read comment
        in the source code)
        Library version is bumped to 1.1.3
Signed-off-by: Michel Arruat's avatarMichel Arruat <michel.arruat@cern.ch>
parent 21b9a802
......@@ -131,9 +131,14 @@ static int mstrfip_read_trtlmsg(struct mstrfip_desc *mstrfip, int mq_slot,
* try to read a maximum of trtl messages in once: we don't know how
* many messages are accumulated in the driver, but we can't read more
* than the remaining space in the msglist
* FIX introduces in LIB version 1.1.3
* Read one message at once to avoid packing of two messages containing
* both an irq entry. When interrupt rate is very high (interrupt on
* each variable for instance), mockturtle drive starts to accumulate
* messages and receive_n function can return several messages.
* To avoid this problem messages are get one by one.
*/
res = trtl_hmq_receive_n(mstrfip->hmq_acq_slot[mq_slot], trtlmsg,
trtl->msglist_size - trtl->msg_count);
res = trtl_hmq_receive_n(mstrfip->hmq_acq_slot[mq_slot], trtlmsg, 1);
if (res == -1) {
snprintf(mstrfip_errors[MSTRFIP_TRTL_MSG_READ_ERR
- MSTRFIP_ERROR_CODE_OFFSET],
......
......@@ -7,7 +7,7 @@ MFIP_GIT_USR = $(shell git config --get-all user.name)
# patch indicates bug fixes
# version of the library
MFIP_LIB_VERSION=0x10102
MFIP_LIB_VERSION=0x10103
# version of the RT software
MFIP_RT_VERSION=0x10101
# version of the FPGA
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment