From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: WangYuli <wangyuli@aosc.io>
Cc: westeri@kernel.org, andi.shyti@kernel.org,
linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org,
shinya.kuribayashi@necel.com, ben-linux@fluff.org,
WangYuli <wangyl5933@chinaunicom.cn>,
stable@vger.kernel.org
Subject: Re: [PATCH] i2c: designware: demote arbitration lost message to debug level
Date: Tue, 24 Nov 2026 17:57:21 +0200 [thread overview]
Message-ID: <awWz4bggKK0EJAng@ashevche-desk.local> (raw)
In-Reply-To: <20261124125956.755858-1-wangyuli@aosc.io>
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
prev parent reply other threads:[~2026-11-24 16:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 12:59 WangYuli
2026-11-24 15:57 ` Andy Shevchenko [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=awWz4bggKK0EJAng@ashevche-desk.local \
--to=andriy.shevchenko@linux.intel.com \
--cc=andi.shyti@kernel.org \
--cc=ben-linux@fluff.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shinya.kuribayashi@necel.com \
--cc=stable@vger.kernel.org \
--cc=wangyl5933@chinaunicom.cn \
--cc=wangyuli@aosc.io \
--cc=westeri@kernel.org \
/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®