Re: [PATCH] can: ctucanfd: ctucan_err_interrupt(): do not emit info messages on Arbitration Lost or CAN Bus Error IRQs

Pavel Pisa <[email protected]>
Newsgroups org.kernel.vger.linux-can,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Hello Marc,

On Thursday 06 of August 2026 16:07:29 Marc Kleine-Budde wrote:
> Since commit e74bae899529 ("can: ctucanfd: handle bus error interrupts")
> CAN bus error interrupts are properly handled.
>
> With activated CAN Bus Error reporting, Arbitration Lost (ALI) and Bus
> Error (BEI) interrupts are enabled. These can occur at a very high rate
> (~10kHz).
>
> To avoid flooding the system, don't emit a netdev_info() for these.
>
> Fixes: e74bae899529 ("can: ctucanfd: handle bus error interrupts")
> Signed-off-by: Marc Kleine-Budde <[email protected]>
> ---
>  drivers/net/can/ctucanfd/ctucanfd_base.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/net/can/ctucanfd/ctucanfd_base.c
> b/drivers/net/can/ctucanfd/ctucanfd_base.c index 07d4aa43c700..9aec18681fc5
> 100644
> --- a/drivers/net/can/ctucanfd/ctucanfd_base.c
> +++ b/drivers/net/can/ctucanfd/ctucanfd_base.c
> @@ -884,8 +884,6 @@ static void ctucan_err_interrupt(struct net_device
> *ndev, u32 isr)
>
>  	/* Check for Arbitration Lost interrupt */
>  	if (FIELD_GET(REG_INT_STAT_ALI, isr)) {
> -		if (dologerr)
> -			netdev_info(ndev, "arbitration lost\n");
>  		priv->can.can_stats.arbitration_lost++;
>  		if (skb) {
>  			cf->can_id |= CAN_ERR_LOSTARB;
> @@ -895,7 +893,6 @@ static void ctucan_err_interrupt(struct net_device
> *ndev, u32 isr)
>
>  	/* Check for Bus Error interrupt */
>  	if (FIELD_GET(REG_INT_STAT_BEI, isr)) {
> -		netdev_info(ndev, "bus error\n");
>  		priv->can.can_stats.bus_error++;
>  		stats->rx_errors++;
>  		if (skb) {
>
> ---
> base-commit: cd0784790d921ff4f7438d3b7ccda86068c8b766
> change-id: 20260805-ctucanfd-silence-can-bus-error-messages-5c5bcd6860f8

Acked-by: Pavel Pisa <[email protected]>

In the fact, I am in doubts if ALI Arbitration lost interrupt
should be enabled even by CAN_CTRLMODE_BERR_REPORTING unconditionally.
There are lot of situations when error reporting is valuable
but overhead of arbitration lost could load system quite lot.
But on the other hand SocketCAN does not provide separate
reporting option to enable can_stats.arbitration_lost
updates so current code in ctucan_chip_start is proper option


	if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) {
		int_ena |= REG_INT_STAT_ALI |
			   REG_INT_STAT_BEI;
	}

PS1: I have been on vacations without e-mail and I will be next
week too, so sorry for possible delays and these PSs to
wrap up quickly what seems on hold before my leave. 

PS2: Marc and others, please, can you confirm if my patch
"docs: ctucanfd: fix swapped colors in legend for TX buffer FSM of CTU CAN FD"
https://lore.kernel.org/linux-can/d775feefa1c16d7ea7f42482483c81491f75ce6c.1785574572.git.pisa@cmp.felk.cvut.cz/
is on the right track or if I should repost it to somebody
other than Randy Dunlap and linux-doc to reach right
documentation maintainers.

PS3: Marc, please, have you received my question about problems
with CAN FD on iMX8plus CompuLab's IOT-DIN-IMX8PLUS.
Even manual specifies it as Std CAN only... Can it be
related to some SoC problems, even much lowered speeds
do not help so probably not transceiver HW, may be missing
information for TDC in DTS???

PS4: LPC and Open Source Summit Europe will be held in Prague.
Our submissions to OSSE have not been accepted, one
is on wait list still. Price is too high for my budget
when I bring open technology to others. I am not sure about LPC,
I consider to pay for Real-Time and Scheduling microconference
or something like that. I could presnet something about our mainline
and RT CAN latency testing or our other RT, RISC-V embedded
knowledge if there is interest and suggestion for miniconference, BoF,
so then I would be allowed. Anyway if you have interest to meet,
I will be in Prague and when not teaching, I will be happy to
reserve time. There would be real local enthusiast, free community
and access conference before these Linux Foundation ones

https://www.linuxdays.cz/2026/

I expect to show our HW ZOO there on the booth there as usual
so you can visit us at our university ground.

If there is interest in some community open and free access
meeting then I can negotiate lecture hall, computer rooms etc.
at our faculty when they are not used for teaching or other
events. For something relay interesting which fits in weekend
October 3-4, I would consider even abandon part pr whole of my
LinuxDays presence. No chance to meet during weekend after LPC
and next days, I have already taken these by Apache/NuttX conference
in Glasgow where we present our projects including Matlab Simulink
target for NuttX (and Linux).

Best wishes,

                Pavel

                Pavel Pisa
    phone:      +420 603531357
    e-mail:     [email protected]
    Department of Control Engineering FEE CVUT
    Karlovo namesti 13, 121 35, Prague 2
    university: http://control.fel.cvut.cz/
    personal:   http://cmp.felk.cvut.cz/~pisa
    social:     https://social.kernel.org/ppisa
    projects:   https://www.openhub.net/accounts/ppisa
    CAN related:http://canbus.pages.fel.cvut.cz/
    RISC-V education: https://comparch.edu.cvut.cz/
    Open Technologies Research Education and Exchange Services
    https://gitlab.fel.cvut.cz/otrees/org/-/wikis/home
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.