Skip to main content

TECH VEDA

Corporate on-site training - Submit proposal Pick your modulesSharpen your kernel skills: deep dives, drivers, Yocto, CVEs, careers — updated daily. Read the blog →
Talks

Asymmetric Multiprocessing on Embedded Linux: Which Kernel Building Blocks Can You Rely On?

Which kernel subsystems does asymmetric multiprocessing depend on, and are they maintained? A report on Wolfram Sang's ELC Europe 2026 talk.

Asymmetric Multiprocessing on Embedded Linux: Which Kernel Building Blocks Can You Rely On?

At Embedded Linux Conference Europe in October 2026, Wolfram Sang reviewed the kernel subsystems that asymmetric multiprocessing depends on: hardware spinlocks, mailboxes, remoteproc, rpmsg and virtio. His slides judge the building blocks sound in general, with the hardware spinlock subsystem as the exception, and describe the layers above them as still changing. On 18 November 2026 his hardware spinlock rework was not in mainline or linux-next, and the virtio-msg transport was still under review.

Asymmetric multiprocessing means running different software on different cores of one system: Linux on the application cores and, typically, an RTOS or firmware on a microcontroller core or DSP in the same SoC. Most teams meet asymmetric multiprocessing through a vendor BSP. This report covers a talk that asked how well maintained the mainline kernel subsystems underneath are, and whether a system can be assembled from standard parts. It is based on the slides only.

The talk

The talk is “Asymmetric Multi-Processing (AMP) for Embedded – Where Are We?”, by Wolfram Sang, whose affiliation the slides give as Renesas / Consultant. It was given on 7 October 2026 at Open Source Summit + Embedded Linux Conference Europe 2026 in Prague. The deck has 59 slides. The programme page did not load during this run, so the slot time is not given here.

The problem: asymmetric multiprocessing rests on small subsystems

A product that pairs Linux with a real-time core needs a small set of services: a way to load and start the other core, a way to signal it, a way to exchange messages, and sometimes a lock that both sides take. Linux provides each of these in a separate subsystem, and the slides date four of them to the years 2011 to 2014. TECH VEDA covered the decision that comes first, whether a second processor is justified at all, in Application Processor Plus MCU: When a Two-Processor Design Is Worth It.

The argument: where asymmetric multiprocessing stands

The slides proceed in four steps. First they show what asymmetric multiprocessing looks like in practice: the basic OpenAMP arrangement, with Linux cores and a microcontroller core joined by a mailbox and shared memory; a system controlled through SCMI, the Arm System Control and Management Interface; and the Automotive Grade Linux SoDeV reference platform, in which a hypervisor hosts Zephyr, Linux and Android guests that use virtio devices.

Second, they list the building blocks. Hardware spinlocks are a take-and-release lock implemented in SoC hardware; of them the slide says “all components need to respect it”, and it calls them a kind of last resort. Mailboxes carry a notification from one processor to another, and the slide notes that serialisation is often inherent in them. Remoteproc starts and stops remote cores, and uploads their firmware. Rpmsg transfers messages to the remote core, usually over virtio queues that remoteproc provides. Virtio-msg, a virtio transport that uses messages where the existing transports use PCI or memory-mapped registers, is marked as not upstream. System Devicetree, in which one description covers all the hardware and a tool produces a subset for each operating system, is presented as still under discussion.

Third, the slides assess the health of each block with graphs of commits, drivers and authors per kernel release from v5.0 to the v7 series. Fourth, they ask whether asymmetric multiprocessing is available off the shelf. The stated ideal is one kernel configuration, one configuration for the other operating system, and standard tools in user space. Against this the slides set the test instructions for one hardware spinlock driver, which require a modified firmware from a personal fork and a matching bootloader fork. The conclusion has two parts: the building blocks are in general in order, except hardware spinlocks, and the upper layers are still changing.

The points worth your attention

1. The hardware spinlock subsystem is the weak block

A hardware spinlock is a register in the SoC that implements an atomic test-and-set visible to every processor. Linux and the firmware on the other core agree on a lock number, and each takes that lock before it touches a shared resource. The kernel side lives in drivers/hwspinlock: SoC drivers register a bank of locks, and consumer drivers request one.

The speaker’s account of why he gave the talk is a sequence of blocked steps. He wanted to upstream a hardware spinlock driver that could not live outside the subsystem directory because of an internal header. Refactoring the header needed a refactoring of the core. The core could not be changed with confidence because there were no debug capabilities to prove that nothing had broken, and an automated review system returned dozens of reports about life-cycle issues. Adding debug support needed an extension to the radix-tree interface, and the slide gives the result: “Rejected. radix-tree is deprecated.”

As we read the graphs, the hardware spinlock one shows one author with more than five patches for the whole period, and a driver count that stays at seven and falls to six in 2026. These are the speaker’s counts, by a method the slides do not describe; most curves only rise, so they appear to be cumulative. A lock that both operating systems depend on for the integrity of shared data therefore sits in the least maintained of the five subsystems.

2. Mailboxes are active, and the channel layout decides the protocol

The mailbox graphs move in the opposite direction. As we read them, the number of mailbox drivers roughly doubles over the period, from about 20 to about 42, and the number of authors with more than five patches goes from one to four in the most recent releases. In his personal remarks the speaker writes that hardware spinlock work was slow and mailbox work was fast, that review was always thorough, and that the difficulties are already known, maintainer overload among them.

The slides also show a detail that matters when SCMI is brought up on a new SoC. A mailbox channel can be unidirectional, with a doorbell on one side and a notification interrupt on the other, or bidirectional, where a second doorbell and interrupt signal completion. For SCMI in both directions the slides draw two arrangements on the example hardware: a second pair of mailboxes on another channel, or one bidirectional channel treated as two unidirectional mailboxes. In each case a register write raises an interrupt on the other processor; what differs is the arrangement, on which the device tree and the firmware must agree.

3. Above the blocks, asymmetric multiprocessing is not yet a product

For remoteproc, rpmsg and virtio the graphs show steady growth: as we read them, remoteproc drivers go from 12 to 24, and virtio has more than 20 authors above the five-patch threshold. On virtio-msg the slides say that there is constant effort to get it upstream and that the specification is harder than the implementation. On integration they say that OpenAMP tries to unify examples, build instructions and test cases, and that the SoDeV builds are a work in progress and currently hard to build. The closing slide asks for stress-testing to be improved and states that “the tech needs to be more accessible”.

What has happened since

Status on 18 November 2026:

  • The speaker’s series that converts the hardware spinlock core from the radix tree to XArray and adds debugfs support reached version 8 on 17 September 2026, before the talk. Its first patch is credited to the author of XArray, and the cover letter states that further fixes to the subsystem depend on this series. Neither the mainline log nor the linux-next log for drivers/hwspinlock contains it, and the mailing list archive shows no reply to version 8 and no version 9.
  • An earlier 15-patch series from the same author, which moves device allocation into the core and removes the internal header, reached version 5 on 19 March 2026. The series as a whole is not in the mainline log. One part of it was merged: the u8500 driver was deleted in April 2026, which matches the drop in the driver graph.
  • Other contributors are active. A series adding Allwinner D1 and T113 support to the sun6i hardware spinlock driver was posted on 27 September 2026, was tested on 22 October by a contributor who ran a contention test between Linux and a DSP core, and received a review tag on 4 November. It is not in linux-next.
  • Virtio-msg is still not in mainline: drivers/virtio contains no virtio-msg transport. The kernel patches linked from the slides are a request for comments from July 2025. A six-patch virtio-msg transport layer series was still receiving review replies on 16 November 2026.
  • The SoDeV workspace repository describes its implementation as provisional, and its most recent commit is dated 5 August 2026.

What it means for a product team

This section is TECH VEDA’s reading, not the speaker’s.

First, list which of the five blocks your asymmetric multiprocessing design uses, and confirm for each whether the driver for your SoC is in mainline or only in the vendor tree. A design that needs only remoteproc, a mailbox and rpmsg stands on the better maintained parts.

Second, treat a hardware spinlock as a dependency that needs its own test. If Linux and the firmware share registers or memory under such a lock, write a contention test that runs both sides for hours and detects overlap, and keep it in your release process. Where the design and its latency budget allow, consider passing a message through a mailbox in place of locking shared state.

Third, plan for the parts that are not standard. The firmware build and the user-space tooling are likely to be vendor-specific, and maintaining them belongs in the estimate.

Fourth, do not plan a product on virtio-msg yet; it cannot be taken from a mainline kernel today. System Devicetree, by the slides’ own account, is still under discussion.

The talk leaves questions open. The slides give no latency or throughput figures and no comparison between SoC vendors. A count of commits and authors shows activity, not correctness: a subsystem with few commits may be complete, and the speaker himself calls hardware spinlocks little used. No merge date is given.

What was checked and what could not be verified

We worked from the slide deck attached to the event programme, read on 18 November 2026. We did not locate a recording, so anything said only aloud is absent. The three quotations are slide text. The figures taken from the graphs are our readings of plotted curves and are approximate. The programme page returned an error during this run, so the title, the name and the affiliation are given as the slides print them, and the slot time is omitted. We did not read the review discussion of the virtio-msg series in full, and we ran none of the code.

Key takeaways

  • Of the kernel blocks under asymmetric multiprocessing, the slides rate mailbox, remoteproc, rpmsg and virtio as in order in general and hardware spinlocks as the exception.
  • The hardware spinlock rework that the speaker describes was not in mainline or linux-next on 18 November 2026.
  • Virtio-msg is not in the mainline kernel, and the slides describe System Devicetree as still under discussion.
  • Asymmetric multiprocessing can be built from mainline blocks, but build instructions, firmware and tooling remain specific to each platform.
  • Test any lock shared between Linux and another core under contention; do not rely on it by inspection.
Was this worth your time?

Frequently asked questions

Which kernel subsystems does asymmetric multiprocessing use?

The slides list hardware spinlocks, mailboxes, remoteproc, rpmsg and virtio as the building blocks, with virtio-msg and System Devicetree as newer work above them.

Which building block did the speaker find in poor condition?

The hardware spinlock subsystem. His own driver work was blocked by an internal header, a core that needed refactoring, missing debug support and a rejected extension to the deprecated radix-tree interface.

Has the hardware spinlock rework been merged?

No. Version 8 of the XArray and debug series was posted on 17 September 2026, and on 18 November 2026 it was in neither the mainline log nor the linux-next log for the subsystem.

Can I use virtio-msg in a product today?

Not from a mainline kernel, so an asymmetric multiprocessing design cannot depend on it yet. The mainline virtio directory contains no virtio-msg transport, and a series for it was still receiving review replies in November 2026.

References

RB
Raghu Bharadwaj

Founder, TECH VEDA — 20+ years teaching the Linux kernel, device drivers and embedded systems.

Follow on LinkedIn

Get new posts by email

Kernel, embedded Linux and AI-era engineering — a few sharp reads a month. No spam.

We email occasionally and never share your address.