[PATCH v3 0/2] hwspinlock: convert to XArray and add summary in debugfs
Wolfram Sang <[email protected]> Mon, 13 Jul 2026 14:46:20 +0200
| Newsgroups | org.kernel.vger.linux-remoteproc,org.kernel.vger.linux-renesas-soc |
|---|---|
| Message-ID | <[email protected]> |
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/[email protected] 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