<div dir="ltr">>Indeed but it does not make sense tu run it with a different baud rates,<br>>since the data are not transmitted at all.  <br><div>The data exchanged between Tx|Rx and buffer have nothing to do with baudrate?</div><div>I think the baudrate is control Tx|Rx send and receive date rate to|from buffer.</div><div>>Unfortunately it does not seem to work on my AMD based desktop at all,<br>>my guess is that the loopback bit is silently ignored by the hardware.<br>>Which means that we cannot enable the test by default in loopback mode<br>>after all</div><div>I will test on my laptop and feedback result today, if it does no work , we should</div><div>check the uart driver what different between x86 and arm64.   <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Cyril Hrubis <<a href="mailto:chrubis@suse.cz">chrubis@suse.cz</a>> 于2020年4月1日周三 下午9:12写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
> >If I understand this properly if we set a bit in the modem control<br>
> >register we will test mostly the circuits between CPU and UART<br>
> >controller which is better than nothing, but we are not really testing<br>
> >if the port speed was set correctly since the data are just being copied<br>
> >between registers in the UART controller, so it does not make sense to<br>
> >change the speed in this mode. Or am I mistaken?<br>
> <br>
> >Also it does not seem to work for me and I've tried with both serial<br>
> >ports on my desktop PC as well as with USB-to-Serial dongle. I can set<br>
> >the bit just fine but loopback does not work.<br>
> <br>
> In the loopback mode , the data will be transferred in buffer ,and back to<br>
> CPU<br>
> by FIFO way.<br>
> I understand the test flow is CPU->uart Tx-> buffer file->uart Rx->CPU,<br>
> so it does make sense to the uart driver .<br>
<br>
Indeed but it does not make sense tu run it with a different baud rates,<br>
since the data are not transmitted at all.<br>
<br>
>  BTW??? I found the latest seriacheck git is<br>
> <a href="https://github.com/nsekhar/serialcheck.git" rel="noreferrer" target="_blank">https://github.com/nsekhar/serialcheck.git</a><br>
> and I test on my arm64 machine of sprdtream. and it does works.<br>
> the test log I had send in another patch<br>
> <a href="https://patchwork.ozlabs.org/patch/1264553/" rel="noreferrer" target="_blank">https://patchwork.ozlabs.org/patch/1264553/</a><br>
<br>
Unfortunately it does not seem to work on my AMD based desktop at all,<br>
my guess is that the loopback bit is silently ignored by the hardware.<br>
<br>
Which means that we cannot enable the test by default in loopback mode<br>
after all.<br>
<br>
-- <br>
Cyril Hrubis<br>
<a href="mailto:chrubis@suse.cz" target="_blank">chrubis@suse.cz</a><br>
</blockquote></div>