Re: [PATCH] i2c: designware: demote arbitration lost message to debug level

From: Andy Shevchenko

Date: Tue Nov 24 2026 - 11:15:07 EST


On Tue, Nov 24, 2026 at 08:59:56PM +0800, WangYuli wrote:
>
> On a MECHREVO XINGYAO 14 (Ryzen AI 9 H 365) the DesignWare controller
> behind AMDI0010:01 repeatedly reports arbitration loss on the touchpad
> bus while the system runs on battery:
>
> [162434.524491] i2c_designware AMDI0010:01: i2c_dw_handle_tx_abort: lost arbitration
> [162437.878670] i2c_designware AMDI0010:01: i2c_dw_handle_tx_abort: lost arbitration
> [162452.208445] i2c_designware AMDI0010:01: i2c_dw_handle_tx_abort: lost arbitration
> ...
>
> Up to 94 messages within one hour were recorded, while the touchpad
> remained usable during testing.

What is the speed used for this touchpad? 400kHz?

> Losing arbitration is a defined part of the I2C protocol [1], and the
> I2C core already handles it by retrying the transfer [2]. The driver
> logs each aborted attempt before the I2C core determines the final
> transfer result, so at error level these messages flood the log.
>
> Log the arbitration-loss reason at debug level.

With this on debug level the observation of the possible issue is made harder.

> The driver continues to return -EAGAIN, allowing the I2C core to retry
> the transfer within the adapter's retry and timeout limits. The log
> level of the other abort reasons and all return values stay unchanged;
> in particular NACK-type aborts are already reported at debug level.
>
> This follows the practice of i2c-imx (commit 1de67a3dee7a ("i2c: imx:
> Check for I2SR_IAL after every byte")), i2c-mpc (commit 1538d82f4647
> ("i2c: mpc: Interrupt driven transfer")) and i2c-synquacer
> (commit 0d676a6c4390 ("i2c: add support for Socionext SynQuacer I2C
> controller")), which report arbitration loss at debug level.
>
> As a consequence, the arbitration-loss message is also hidden for the
> last attempt of a transfer whose retries are exhausted. Arbitration
> losses remain available through dynamic debug, and the final result of
> a transfer through the i2c_result tracepoint.
>
> NOTE: The cause of the arbitration loss on this machine is still unknown.

What's the typo of the touchpad? Or are there more i2c peripherals that also
loose arbitration from time to time?

--
With Best Regards,
Andy Shevchenko