Re: [PATCH v8 0/6] Switch Arm SMCCC firmware services to an SMCCC bus
Aneesh Kumar K.V <[email protected]> Thu, 23 Jul 2026 13:25:52 +0530
| Newsgroups | dev.linux.lists.linux-coco,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
"Aneesh Kumar K.V (Arm)" <[email protected]> writes: > As discussed here: > https://lore.kernel.org/all/[email protected] > > The earlier CCA guest support used an arm-cca-dev platform device as a pure > software anchor for the TSM class device. That platform device did not > correspond to a DT/ACPI described device, MMIO range, interrupt, or other > platform resource; it existed only to make the CCA guest driver bind and to > place the resulting TSM device in the driver model. The same pattern also > exists for smccc_trng. Creating separate platform devices for such > SMCCC-discovered features is misleading, because those features are not > independent platform devices. > > This series adds an Arm SMCCC bus for services discovered through the SMCCC > firmware interface. The bus provides SMCCC device and driver registration > helpers, name-based matching, uevent modalias generation, and a sysfs modalias > attribute. SMCCC service drivers can use MODULE_DEVICE_TABLE(arm_smccc, ...) > to emit arm_smccc:<name> aliases, allowing userspace to autoload service > drivers when the SMCCC core registers matching firmware-service devices. > > The series then moves SMCCC TRNG and the Arm CCA guest RSI service off the > platform bus. When the SMCCC core discovers the corresponding firmware > service, it registers an arm-smccc device for that service. The hwrng > arm_smccc_trng driver and the Arm CCA guest TSM provider are converted to > SMCCC drivers that bind to those discovered devices. > > The old arm-cca-dev platform device has also been used by userspace as a Realm > guest indicator. Removing it without a replacement would leave userspace > depending on an internal driver-binding device. This series therefore adds > /sys/firmware/cca/realm_guest as a stable, architecture-provided ABI for > detecting whether the kernel is running as an Arm CCA Realm guest, and then > removes the dummy arm-cca-dev platform-device registration. > Hi Will and Catalin, Gentle ping. Can this be picked up for the next merge window? -aneesh