From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Vladimir Oltean <olteanv@gmail.com>,
wg@grandegger.com, pankaj.bansal@nxp.com,
pankaj.bansal@oss.nxp.com, linux-can@vger.kernel.org
Cc: qiangqing.zhang@nxp.com, linux-kernel@vger.kernel.org,
vladimir.oltean@nxp.com
Subject: Re: canfdtest on flexcan loopback
Date: Wed, 16 Sep 2020 13:32:49 +0200 [thread overview]
Message-ID: <12688d2b-a198-ef5e-dd8f-64957df36574@pengutronix.de> (raw)
In-Reply-To: <20200916110448.dsla6vjzy4fvdr22@skbuf>
[-- Attachment #1.1: Type: text/plain, Size: 1493 bytes --]
On 9/16/20 1:04 PM, Vladimir Oltean wrote:
> [ resending, forgot to copy Wolfgang ]
>
> On Wed 9/2/2020 10:09 AM, Wolfgang Grandegger wrote:
>> canfdtest normally runs on the DUT *and* a the host. The DUT receives
>> the messages from the host, increments the frame data bytes and then
>> sends them back to the host. With "loopback" mode, the data bytes are
>> not incremented and that's what you see above.
>>
>> Wolfgang
>
> Wolfgang is of course right, but we're nonetheless investigating what
> seems to be a real problem, and what Pankaj had seen was a red herring.
>
> So currently what I suspect is going on, when I am running canfdtest
> between 2 LS1028A-RDB boards, is that the DUT is reordering frames on
> TX.
>
> See, for example, the screenshot below:
> https://drive.google.com/file/d/1rOeW3aXh3kPh1CJ39lCccRfjFz5JN5I6/view?usp=sharing
>
> I have added trace points to the end of the flexcan_start_xmit function,
> which print the entire skb, and the frames appear to be written to the
> TX message buffer in the correct order. They are seen, however, in the
> incorrect order on the wire.
Which driver are you using? The mainline driver only uses one TX buffer.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2020-09-16 20:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <VI1PR04MB4093944944C574B138371F51F12F0@VI1PR04MB4093.eurprd04.prod.outlook.com>
2020-09-16 11:01 ` Vladimir Oltean
2020-09-16 11:04 ` Vladimir Oltean
2020-09-16 11:32 ` Marc Kleine-Budde [this message]
2020-09-16 11:45 ` Vladimir Oltean
2020-09-16 12:01 ` Marc Kleine-Budde
2020-09-16 12:14 ` Vladimir Oltean
2020-09-17 12:59 ` Vladimir Oltean
2020-09-17 13:10 ` Marc Kleine-Budde
2020-09-18 12:27 ` Vladimir Oltean
2020-09-18 12:35 ` Marc Kleine-Budde
2020-09-17 2:28 ` Joakim Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12688d2b-a198-ef5e-dd8f-64957df36574@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pankaj.bansal@nxp.com \
--cc=pankaj.bansal@oss.nxp.com \
--cc=qiangqing.zhang@nxp.com \
--cc=vladimir.oltean@nxp.com \
--cc=wg@grandegger.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®