[comedi] MITE transfer error with the NI PCIe card

'Éric Piel' via Comedi: Linux Control and Measurement Device Interface <[email protected]> Mon, 16 May 2022 07:51:28 -0700 (PDT)
Newsgroups gmane.linux.comedi
Message-ID <[email protected]>
------=_Part_6106_284365517.1652712688687
Content-Type: multipart/alternative; 
	boundary="----=_Part_6107_2120231593.1652712688687"

------=_Part_6107_2120231593.1652712688687
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,

We have several systems which experience the same error from time to time.=
=20
During an acquisition (analog input), the read fails. Then, any following=
=20
commands to the board fails with "input/output error" (5). The only way to=
=20
restore the functionality is to power off the computer, wait a few seconds,=
=20
and power it on again.=20

On the time of the error, I see such message on the kernel side:
[ 2843.893823] comedi comedi0: mite: transfer error ffffffff
[ 2843.893856] comedi comedi0: ni_tio_handle_interrupt: Gi_Gate_Error=20
detected.
[ 2843.893861] comedi comedi0: ni_tio_handle_interrupt: Gi_DRQ_Error=20
detected.
[ 2843.893867] comedi comedi0: ni_tio_handle_interrupt: Gi_Gate_Error=20
detected.
[ 2843.893870] comedi comedi0: ni_tio_handle_interrupt: Gi_DRQ_Error=20
detected.
[ 2845.107044] comedi comedi0: timeout loading channel/gain list
[ 2845.109086] comedi comedi0: timed out waiting for=20
AO_TMRDACWRs_In_Progress_St to clear
[ 2845.615575] comedi comedi0: timeout loading channel/gain list
[ 2845.617689] comedi comedi0: timed out waiting for=20
AO_TMRDACWRs_In_Progress_St to clear
[ 2846.123539] comedi comedi0: timeout loading channel/gain list
[ 2846.125651] comedi comedi0: timed out waiting for=20
AO_TMRDACWRs_In_Progress_St to clear
[ 2846.631557] comedi comedi0: timeout loading channel/gain list
[ 2846.633673] comedi comedi0: timed out waiting for=20
AO_TMRDACWRs_In_Progress_St to clear

Our systems are x86-64 with Ubuntu 18.04 (Linux 5.4) or Ubuntu 20.04 (Linux=
=20
5.13). The errors are quite hard to reproduce. On some systems, it doesn't=
=20
seem to ever happen, on some others, it's only once in a month, and few=20
systems experience it almost daily. All the boards are NI PCIe-6251.

Any idea of what a "MITE transfer error" is? Is there any way we could=20
recover from it in an easier way? Could it be a sign of a hardware issue?=
=20
Any hint is welcome!

Best,
=C3=89ric Piel

--=20
You received this message because you are subscribed to the Google Groups "=
Comedi: Linux Control and Measurement Device Interface" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/=
comedi_list/c6965ef1-e110-488a-8473-207ee85b0006n%40googlegroups.com.

------=_Part_6107_2120231593.1652712688687
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div>Hi,</div><div><br></div><div>We have several systems which experience =
the same error from time to time. During an acquisition (analog input), the=
 read fails. Then, any following commands to the board fails with "input/ou=
tput error" (5). The only way to restore the functionality is to power off =
the computer, wait a few seconds, and power it on again. <br></div><div><br=
></div><div>On the time of the error, I see such message on the kernel side=
:</div><div><span style=3D"font-family: Courier New;">[ 2843.893823] comedi=
 comedi0: mite: transfer error ffffffff<br>[ 2843.893856] comedi comedi0: n=
i_tio_handle_interrupt: Gi_Gate_Error detected.<br>[ 2843.893861] comedi co=
medi0: ni_tio_handle_interrupt: Gi_DRQ_Error detected.<br>[ 2843.893867] co=
medi comedi0: ni_tio_handle_interrupt: Gi_Gate_Error detected.<br>[ 2843.89=
3870] comedi comedi0: ni_tio_handle_interrupt: Gi_DRQ_Error detected.<br>[ =
2845.107044] comedi comedi0: timeout loading channel/gain list<br>[ 2845.10=
9086] comedi comedi0: timed out waiting for AO_TMRDACWRs_In_Progress_St to =
clear<br>[ 2845.615575] comedi comedi0: timeout loading channel/gain list<b=
r>[ 2845.617689] comedi comedi0: timed out waiting for AO_TMRDACWRs_In_Prog=
ress_St to clear<br>[ 2846.123539] comedi comedi0: timeout loading channel/=
gain list<br>[ 2846.125651] comedi comedi0: timed out waiting for AO_TMRDAC=
WRs_In_Progress_St to clear<br>[ 2846.631557] comedi comedi0: timeout loadi=
ng channel/gain list<br>[ 2846.633673] comedi comedi0: timed out waiting fo=
r AO_TMRDACWRs_In_Progress_St to clear</span></div><div><span style=3D"font=
-family: Courier New;"><br></span></div><div><span style=3D"font-family: Sa=
ns Serif;">Our systems are x86-64 with Ubuntu 18.04 (Linux 5.4) or Ubuntu 2=
0.04 (Linux 5.13). The errors are quite hard to reproduce. On some systems,=
 it doesn't seem to ever happen, on some others, it's only once in a month,=
 and few systems experience it almost daily. All the boards are NI PCIe-625=
1.</span></div><div><span style=3D"font-family: Sans Serif;"><br></span></d=
iv><div><span style=3D"font-family: Sans Serif;">Any idea of what a "MITE t=
ransfer error" is? Is there any way we could recover from it in an easier w=
ay? Could it be a sign of a hardware issue? Any hint is welcome!</span></di=
v><div><span style=3D"font-family: Sans Serif;"><br></span></div><div><span=
 style=3D"font-family: Sans Serif;">Best,</span></div><div><span style=3D"f=
ont-family: Sans Serif;">=C3=89ric Piel<br></span></div><div><span style=3D=
"font-family: Courier New;"><br></span></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Comedi: Linux Control and Measurement Device Interface&quot; group.<br=
 />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">comedi_=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/comedi_list/c6965ef1-e110-488a-8473-207ee85b0006n%40googlegroups=
.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/ms=
gid/comedi_list/c6965ef1-e110-488a-8473-207ee85b0006n%40googlegroups.com</a=
>.<br />

------=_Part_6107_2120231593.1652712688687--

------=_Part_6106_284365517.1652712688687--