[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v9 0/4] xen/arm: scmi: introduce SCI SCMI SMC single-agent support


  • To: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Oleksii Moisieiev <Oleksii_Moisieiev@xxxxxxxx>
  • Date: Mon, 8 Sep 2025 15:30:05 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DtRI3CwvtHt/pVDL3t/9fNTT5Irk0ITL3afcRpnstds=; b=U0YT3WF1LYLHc0cBUikGY/jkYieEciYNT2ZXwkkXbnGLn3CC3UgLZ9dgmZcQXU+7e3+Lh6m7qxGebFPKmd7lUbCpl5Ic9UKN0aPbSXbM01VT1FCzLgfVWnxsnNSuPyIqaQYDh6EbvWYgUmWSJu5sF6h3RIM0bGd8hrSelXuWuNPZI1CXd/OM44H01wtPhbA0Ah8T7jbvEAjWTOanv0EUwkSG5ZoiZQ475uxgyMRt/tDg5VcupLexTR34IJOUpgvB6Twy63rXlNzeVO7VJeiltVosksPIjN8ou+4NIJ+Ng9JxaNBKMqUb6BSqzBt1uOGCafEtemqm38IdC/g3JGwzrg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fUIOx/X5+lF/hEV2xKxIzKOjEtCqV6h0Oi8PYPj7uHv1rG7XZj22whgljVqejahtTcg8vqMOjbTUxr4HAWKUVSQR6OtuoDpBQxlSwHhZ7x/qkHJBa506hY8qCvIQyLCeKxql1wCGr5i6ympb+430IBis1bj8qQa74Etl5jr9ogy77EnHgW9CWMlLea+Px6Tm+iGqgmS55Ap5sYsXjJheuKyIB/j7NCNvzCzA3xwbtDQCLtBo85lkMbh2d0Q2OEoBTE0YVMwyRO+A1zowuF+53EE7UUDQZK5GFHayVfA3zBhWLE/fIBGvyC4qafQVtxx8JJhtLXV40grwqXFkxAr+fQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Grygorii Strashko <grygorii_strashko@xxxxxxxx>
  • Delivery-date: Mon, 08 Sep 2025 15:30:27 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcHaczzFSreK7re0KgM50DbxoBaLSJWYOAgAAC2ACAAALtAIAAEE2A
  • Thread-topic: [PATCH v9 0/4] xen/arm: scmi: introduce SCI SCMI SMC single-agent support


On 08/09/2025 17:31, Oleksii Kurochko wrote:
> Hello Oleksii,
> On 9/8/25 4:21 PM, Oleksii Moisieiev wrote:
>> On 08/09/2025 17:11, Oleksii Kurochko wrote:
>>> Hello everyone,
>>> Based on the message from the previous version, the MISRA issues have been 
>>> fixed,
>>> and aside from one remaining documentation patch ("docs: arm: add docs for 
>>> SCMI
>>> over SMC calls forwarding driver"), the patch series appears to be ready.
>> It seems to me that I have fixed all comments for the documentation
>> patch. Did I miss something? Why do you think it's not ready for merge?
> I don't see any proper/Reviewed-by/ or/Acked-by/ tags, only/Signed-off-by/:
>    Signed-off-by: Grygorii Strashko<grygorii_strashko@xxxxxxxx>
>    Signed-off-by: Oleksii Moisieiev<oleksii_moisieiev@xxxxxxxx>
>
> Am I missing something?
Stefano added his R-B in v6:
https://lore.kernel.org/xen-devel/alpine.DEB.2.22.394.2508281436010.8757@ubuntu-linux-20-04-desktop/

Haven't added this R-B tag manually because of the following comment to 
the first patch:
https://lore.kernel.org/xen-devel/alpine.DEB.2.22.394.2508281431180.8757@ubuntu-linux-20-04-desktop/
>>> I believe we can consider including it in 4.21. We should have sufficient 
>>> time
>>> to address any bugs that may arise.
>>> By the way, it would also be good to prepare a CHANGELOG patch.
>> Is it going to be changed during release process or it requires separate
>> patch to be sent?
> I'm not entirely sure I understand the first part of the sentence correctly,
> but both options could work (IIUC).
> I can send an update to the CHANGELOG as part of the release process,
> but I'm also fine if you prefer to send a separate patch or apply a new patch
> to this series using the Message-ID.
>
> Please let me know which option you prefer.
>
> ~ Oleksii
I would be grateful if you could include an update to the
CHANGELOG as part of the release process.
>>> Does anyone have any objections?
>>> Best regards,
>>>    Oleksii
>>> On 9/4/25 4:21 PM, Oleksii Moisieiev wrote:
>>>> Inroducing V9 patch series  on top of the Xen version 4.20-rc2
>>>> which includes implementation of the SCI SCMI SMC single-agent support.
>>>>
>>>> This patch series is the first chunk of the
>>>> "xen/arm: scmi: introduce SCI SCMI SMC multi-agent support" which can
>>>> be found at [0]
>>>>
>>>> SCMI-multiagent support will be provided as the followup patch series.
>>>>
>>>> [0]https://lore.kernel.org/xen-devel/cover.1753184487.git.oleksii_moisieiev@xxxxxxxx/
>>>>
>>>> Patch 1 "xen/arm: add generic SCI subsystem"
>>>> - rebased and refactored
>>>> - introduced DEVICE_ARM_SCI DT device class and used for SCI drivers 
>>>> probing
>>>> instead of custom,
>>>>     linker sections based implementation.
>>>> - added SCI API for Dom0 DT handling, instead of manipulating with ARM arch
>>>> dom0 code directly.
>>>> - RFC changes in XEN_DOMCTL_assign_device OP processing
>>>> - Introduce arch_handle_passthrough_prop call to handle arm specific
>>>> nodes
>>>>
>>>> Patch 2 "xen/arm: scmi-smc: update to be used under sci subsystem"
>>>> - update driver introduced by commit 3e322bef8bc0 ("xen/arm: firmware: Add 
>>>> SCMI
>>>> over SMC calls
>>>> handling layer") be used under sci subsystem.
>>>> - no functional changes in general
>>>>
>>>> Patch 3 "xen/arm: scmi-smc: passthrough SCMI SMC to guest domain
>>>> This is new change which allows passthrough SCMI SMC, single agent 
>>>> interface to
>>>> guest domain
>>>> cover use case "thin Dom0 with guest domain, which serves as Driver 
>>>> domain".
>>>> See patch commit message for full description.
>>>>
>>>> Patch 4 - docs: arm: add docs for SCMI over SMC calls forwarding
>>>> driver
>>>> - add documentation section for Simple Arm SCMI over SMC calls
>>>> forwarding driver.
>>>>
>>>> Code can be found at:
>>>> https://github.com/oleksiimoisieiev/xen/tree/scmi_upstrv5
>>>>
>>>> [1] RFC v2:
>>>> http://patchwork.kernel.org/project/xen-devel/cover/cover.1644341635.git.oleksii_moisieiev@xxxxxxxx/
>>>> [2] RFC v3:
>>>> https://patchwork.kernel.org/project/xen-devel/patch/20250311111618.1850927-1-grygorii_strashko@xxxxxxxx
>>>> SCMI spec:
>>>> https://developer.arm.com/documentation/den0056/e/?lang=en
>>>>
>>>> SCMI bindings:
>>>> https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
>>>> https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/access-controllers/access-controllers.yaml
>>>>
>>>> Reference EL3 FW:
>>>> RPI5:https://github.com/xen-troops/arm-trusted-firmware/commits/rpi5_dev/
>>>> Renesas v4h:
>>>> https://github.com/GrygiriiS/arm-trusted-firmware/commits/rcar_gen4_v2.7_v4x-scmi_upd/
>>>>
>>>> base-commit: dbe60f244c (Update Xen to 4.21, 2025-02-21)
>>>>
>>>> Changes in v9:
>>>> - change input param name for sci_handle_call function to match MISRA rules
>>>> - update domu_dt_sci_parse declaration to match MC3A2.R8.4 MISRA rule
>>>>
>>>> Changes in v8:
>>>> - reneregated {helpers/types}.gen.go, dropped unneeded parameters
>>>>
>>>> Changes in v7:
>>>> - fix sci_handl_call to make changes more readable
>>>> - fix build error when DOM0LESS_BUILD is disabled (removed
>>>>    arch_handle_passthrough_prop from the header)
>>>> - sort headers in alphabetical order in sci.h
>>>> - sort headers in scmi-smc.c file
>>>> - Fix commit description.
>>>> - Move scmi-smc-passthrough definition to match alphaberical order
>>>> - remove unneeded initialization with NULL
>>>> - changed u64 to uint64_t
>>>> - Send warning if iomem permit access was failed
>>>> - fixed typos
>>>>
>>>> Changes in v6:
>>>> - rebase on top of the latest master
>>>> - fix return value of sci_dt_finalize() call
>>>> - add R-b tag
>>>> - added generated helpers and types go files
>>>> - rename cmdline parameter to scmi-smc-passthrough
>>>> - fix goto tag in parse_arm_sci_config
>>>> - add link to the scmi bindings used in the doc
>>>> - remove mentions about HVC calls from doc
>>>> - rename cmdline parameter to scmi-smc-passthrough
>>>>
>>>> Changes in v5:
>>>> - update Maintainers file. Set role as a Reviewer
>>>> - rebased on the latest master branch
>>>> - Introduce arch_handle_passthrough_prop call to handle arm specific nodes
>>>> - rename dom0_scmi_smc_passthrough to scmi_smc_passthrough
>>>> - rename dom0_scmi_smc_passthrough in documentation
>>>>
>>>> Changes in v4:
>>>> - fix SPDX-License
>>>> - rename DEVICE_ARM_SCI DT device class to FIRMWARE_DEVICE
>>>> - move XEN_DOMCTL_assign_device code in separate patch
>>>> - Add documentation for SCI SCMI drivers
>>>> - xl.cfg doc
>>>> - fix comments from Stefano Stabellini
>>>> - fix toolstack code as sugested by Anthony PERARD
>>>>     - use MATCH_OPTION()
>>>>     - move arm_sci struct and cfg params in "arch_arm"
>>>> - add SCMI passthrough for dom0less case
>>>>
>>>> Grygorii Strashko (3):
>>>>     xen/arm: scmi-smc: update to be used under sci subsystem
>>>>     xen/arm: scmi-smc: passthrough SCMI SMC to domain, single agent
>>>>     docs: arm: add docs for SCMI over SMC calls forwarding driver
>>>>
>>>> Oleksii Moisieiev (1):
>>>>     xen/arm: add generic SCI subsystem
>>>>
>>>>    MAINTAINERS                                   |   6 +
>>>>    .../arm/firmware/arm-scmi.rst                 | 180 ++++++++++++++++
>>>>    docs/hypervisor-guide/arm/index.rst           |   9 +
>>>>    docs/hypervisor-guide/index.rst               |   1 +
>>>>    docs/man/xl.cfg.5.pod.in                      |  34 +++
>>>>    docs/misc/arm/device-tree/booting.txt         |  15 ++
>>>>    docs/misc/xen-command-line.pandoc             |   9 +
>>>>    tools/golang/xenlight/helpers.gen.go          |  35 +++
>>>>    tools/golang/xenlight/types.gen.go            |  11 +
>>>>    tools/include/libxl.h                         |   5 +
>>>>    tools/libs/light/libxl_arm.c                  |  14 ++
>>>>    tools/libs/light/libxl_types.idl              |  10 +
>>>>    tools/xl/xl_parse.c                           |  36 ++++
>>>>    xen/arch/arm/device.c                         |   5 +
>>>>    xen/arch/arm/dom0less-build.c                 |  40 ++++
>>>>    xen/arch/arm/domain.c                         |  12 +-
>>>>    xen/arch/arm/domain_build.c                   |   8 +
>>>>    xen/arch/arm/firmware/Kconfig                 |  25 ++-
>>>>    xen/arch/arm/firmware/Makefile                |   1 +
>>>>    xen/arch/arm/firmware/sci.c                   | 154 ++++++++++++++
>>>>    xen/arch/arm/firmware/scmi-smc.c              | 194 +++++++++++++----
>>>>    xen/arch/arm/include/asm/domain.h             |   5 +
>>>>    xen/arch/arm/include/asm/firmware/sci.h       | 200 ++++++++++++++++++
>>>>    xen/arch/arm/include/asm/firmware/scmi-smc.h  |  41 ----
>>>>    xen/arch/arm/vsmc.c                           |   4 +-
>>>>    xen/common/device-tree/dom0less-build.c       |   4 +
>>>>    xen/include/asm-generic/device.h              |   1 +
>>>>    xen/include/public/arch-arm.h                 |   5 +
>>>>    xen/include/xen/dom0less-build.h              |   3 +
>>>>    29 files changed, 982 insertions(+), 85 deletions(-)
>>>>    create mode 100644 docs/hypervisor-guide/arm/firmware/arm-scmi.rst
>>>>    create mode 100644 docs/hypervisor-guide/arm/index.rst
>>>>    create mode 100644 xen/arch/arm/firmware/sci.c
>>>>    create mode 100644 xen/arch/arm/include/asm/firmware/sci.h
>>>>    delete mode 100644 xen/arch/arm/include/asm/firmware/scmi-smc.h
>>>>

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.