All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] hwspinlock: convert to XArray and add summary in debugfs
@ 2026-07-13 12:46 Wolfram Sang
  2026-07-13 12:46 ` [PATCH v3 1/2] hwspinlock: Convert to XArray Wolfram Sang
  2026-07-13 12:46 ` [PATCH v3 2/2] hwspinlock: add list of mailboxes to debugfs Wolfram Sang
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfram Sang @ 2026-07-13 12:46 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Matthew Wilcox, Wolfram Sang, Baolin Wang, Bjorn Andersson,
	linux-remoteproc

TLDR: Changes since v2:

* don't hack radix-tree, convert to XArray instead

Renesas R-Car SoCs have their spinlocks inside a unit called MFIS. Up to
R-Car Gen4, there was only one MFIS unit on the SoC. Gen5, though, has
multiple instances and, thus, multiple spinlock providers. The spinlocks
are meant for specific cases (AP<->AP, AP<->RT, AP<->SCP...). For
development on these systems, it is helpful to have an overview of
registered spinlocks in debugfs. This series adds support for that. The
first patch converts the subsystem from the deprecated radix-tree to the
easier to handle XArray (Thank you again, Matthew!). The second patch
adds the summary in debugfs based on the new XArray implementation.

Patches are based on linux-next as of today plus the already applied
patch[1] "[PATCH] hwspinlock: propagate errno when registering single lock"

[1] https://lore.kernel.org/r/178370682988.2572738.9921265128936208294.b4-ty@kernel.org

A branch for testing is here:

git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/mfis/hwspinlock

It has been tested on a SparrowHawk board (R-Car V4H) with one MFIS
instance and an Ironhide board (R-Car X5H) with two MFIS instances.

Looking forward to comments.


Matthew Wilcox (Oracle) (1):
  hwspinlock: Convert to XArray

Wolfram Sang (1):
  hwspinlock: add list of mailboxes to debugfs

 drivers/hwspinlock/hwspinlock_core.c | 220 ++++++++++++++++-----------
 1 file changed, 127 insertions(+), 93 deletions(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-14 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-13 12:46 [PATCH v3 0/2] hwspinlock: convert to XArray and add summary in debugfs Wolfram Sang
2026-07-13 12:46 ` [PATCH v3 1/2] hwspinlock: Convert to XArray Wolfram Sang
2026-07-14 19:49   ` 3 XArray questions (was: Re: [PATCH v3 1/2] hwspinlock: Convert to XArray) Wolfram Sang
2026-07-13 12:46 ` [PATCH v3 2/2] hwspinlock: add list of mailboxes to debugfs Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.