Netdev List
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Anurag Dutta <a-dutta@ti.com>
Cc: u-kumar1@ti.com, vigneshr@ti.com, gehariprasath@ti.com,
	 rcsekar@samsung.com, mailhol.vincent@wanadoo.fr,
	andrew+netdev@lunn.ch,  davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com,  linux-can@vger.kernel.org,
	netdev@vger.kernel.org, msp@baylibre.com
Subject: Re: [PATCH] can: m_can: Implement workaround for errata i2278 and i2279
Date: Thu, 14 May 2026 12:05:51 +0200	[thread overview]
Message-ID: <20260514-tiny-koel-of-order-65ade7-mkl@pengutronix.de> (raw)
In-Reply-To: <20260514065511.3573223-1-a-dutta@ti.com>

[-- Attachment #1: Type: text/plain, Size: 1540 bytes --]

On 14.05.2026 12:25:11, Anurag Dutta wrote:
> Message transmit order is not guaranteed when dedicated TX buffers
> configured with the same Message ID are submitted simultaneously via
> TXBAR write. This is described in J7 errata i2278 and i2279.
>
> As a workaround, introduce m_can_tx_peripheral_submit() to submit
> buffers one at a time using ffs() to find the next pending buffer.
> The TX complete interrupt(IR_TC) triggers submission of the next
> buffer, ensuring strict FIFO ordering.
>
> Link: https://www.ti.com/lit/pdf/sprz530

This errata is for the "J721S2/TDA4VE/TDA4AL/TDA4VL/AM68A Processor
Silicon Revision 1.0". The code path you modify is only active for the
is_peripheral case.

is_peripheral is only set for the tcan4x5x SPI CAN controller, and not
set for memory mapped M_CAN cores as found on the above mentioned TI
processor:

| $ git grep peripheral\ = drivers/net/can/m_can
| drivers/net/can/m_can/m_can_platform.c:149:      mcan_class->is_peripheral = false;
| drivers/net/can/m_can/tcan4x5x-core.c:460:       mcan_class->is_peripheral = true;

The latest Bosch m_can documentation doesn't mention this problem,
neither the TCAN4550 docs. Can this be an integration problem of the SoC
on TI's side?

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde          |
Embedded Linux                   | https://www.pengutronix.de |
Vertretung Nürnberg              | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-9   |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

      reply	other threads:[~2026-05-14 10:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-14  6:55 [PATCH] can: m_can: Implement workaround for errata i2278 and i2279 Anurag Dutta
2026-05-14 10:05 ` Marc Kleine-Budde [this message]

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=20260514-tiny-koel-of-order-65ade7-mkl@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=a-dutta@ti.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gehariprasath@ti.com \
    --cc=kuba@kernel.org \
    --cc=linux-can@vger.kernel.org \
    --cc=mailhol.vincent@wanadoo.fr \
    --cc=msp@baylibre.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rcsekar@samsung.com \
    --cc=u-kumar1@ti.com \
    --cc=vigneshr@ti.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