The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Arun Iyengar via B4 Relay <devnull+aiyengar1990.gmail.com@kernel.org>
To: Mark Brown <broonie@kernel.org>, Lee Jones <lee@kernel.org>,
	 Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	 "Rafael J. Wysocki" <rafael@kernel.org>,
	Danilo Krummrich <dakr@kernel.org>,
	 Johan Hovold <johan@kernel.org>,
	driver-core@lists.linux.dev,  mfd@lists.linux.dev,
	linux-kernel@vger.kernel.org,  Heiko Stuebner <heiko@sntech.de>,
	linux-rockchip@lists.infradead.org,
	 linux-arm-kernel@lists.infradead.org,
	Arun Iyengar <aiyengar1990@gmail.com>
Subject: [PATCH v3 0/2] mfd: syscon: Give each syscon its own lockdep class
Date: Sat, 28 Nov 2026 19:06:23 +0000	[thread overview]
Message-ID: <20261128-syscon-lockdep-v3-0-2c786aa075bf@gmail.com> (raw)

All syscon regmaps share one lockdep class, so on RK3588 lockdep reports
a false circular dependency and turns itself off. Patch 1 adds an
optional lockdep key to regmap_config, patch 2 gives each syscon one.

Patch 2 needs patch 1, so both could go through regmap with Lee's ack,
or through mfd with Mark's. Based on regmap for-next; patch 2 also
merges cleanly with for-mfd-next.

Tested on an Orange Pi 5 (RK3588S) with a 7.3 based kernel that has
out-of-tree DisplayPort patches, lockdep and KASAN on. Without the series
lockdep reports the cycle during boot. With it there is no report and
lockdep stays on.

Developed with Claude (Anthropic), which wrote the code and the commit
messages. I reviewed every change.

Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
---
Changes in v3:
- Move the fix into regmap: new regmap_config.lock_key; syscon passes a
  per-syscon key and drops its own lock (Lee).
- Drop the prerequisite, it is in for-mfd-next.
- Link to v2: https://patch.msgid.link/20261122-syscon-lockdep-v2-1-868056a6a808@gmail.com

Changes in v2:
- __acquires/__releases: name the argument, not a local (Sashiko).
- Link to v1: https://patch.msgid.link/20261120-syscon-lockdep-v1-1-aed779a004b8@gmail.com

---
Arun Iyengar (2):
      regmap: Add an optional lockdep class to struct regmap_config
      mfd: syscon: Give each syscon its own lockdep class

 drivers/base/regmap/regmap.c | 3 +++
 drivers/mfd/syscon.c         | 6 ++++++
 include/linux/regmap.h       | 3 +++
 3 files changed, 12 insertions(+)
---
base-commit: 222b61e9c570dac6c7a786d039e4c226624b426d
change-id: 20261115-syscon-lockdep-d133fb58c2be

Best regards,
--  
Arun Iyengar <aiyengar1990@gmail.com>



             reply	other threads:[~2026-11-28 19:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 19:06 Arun Iyengar via B4 Relay [this message]
2026-11-28 19:06 ` [PATCH v3 1/2] regmap: Add an optional lockdep class to struct regmap_config Arun Iyengar via B4 Relay
2026-11-28 19:06 ` [PATCH v3 2/2] mfd: syscon: Give each syscon its own lockdep class Arun Iyengar via B4 Relay

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=20261128-syscon-lockdep-v3-0-2c786aa075bf@gmail.com \
    --to=devnull+aiyengar1990.gmail.com@kernel.org \
    --cc=aiyengar1990@gmail.com \
    --cc=arnd@arndb.de \
    --cc=broonie@kernel.org \
    --cc=dakr@kernel.org \
    --cc=driver-core@lists.linux.dev \
    --cc=gregkh@linuxfoundation.org \
    --cc=heiko@sntech.de \
    --cc=johan@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=mfd@lists.linux.dev \
    --cc=rafael@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