ven-el3-service.rst 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Vendor Specific EL3 Monitor Service Calls
  2. =========================================
  3. This document enumerates and describes the Vendor Specific EL3 Monitor Service
  4. Calls.
  5. These are Service Calls defined by the vendor of the EL3 Monitor.
  6. They are accessed via ``SMC`` ("SMC calls") instruction executed from Exception
  7. Levels below EL3. SMC calls for Vendor Specific EL3 Monitor Services:
  8. - Follow `SMC Calling Convention`_;
  9. - Use SMC function IDs that fall in the vendor-specific EL3 range, which are
  10. +---------------------------+--------------------------------------------------+
  11. | SMC Function Identifier | Service Type |
  12. +===========================+==================================================+
  13. | 0x87000000 - 0x8700FFFF | SMC32: Vendor Specific EL3 Monitor Service Calls |
  14. +---------------------------+--------------------------------------------------+
  15. | 0xC7000000 - 0xC700FFFF | SMC64: Vendor Specific EL3 Monitor Service Calls |
  16. +---------------------------+--------------------------------------------------+
  17. Vendor-specific EL3 monitor services are as follows:
  18. +-----------------------------------+-----------------------+---------------------------------------------+
  19. | SMC Function Identifier | Service Type | FID's Usage |
  20. +===================================+=======================+=============================================+
  21. | 0x87000010 - 0x8700001F (SMC32) | DebugFS Interface | | 0 - 11 are in use. |
  22. +-----------------------------------+ | | 12 - 15 are reserved for future expansion.|
  23. | 0xC7000010 - 0xC700001F (SMC64) | | |
  24. +-----------------------------------+-----------------------+---------------------------------------------+
  25. | 0x87000020 - 0x8700002F (SMC32) | Performance | | 0,1 is in use. |
  26. +-----------------------------------+ Measurement Framework | | 2 - 15 are reserved for future expansion. |
  27. | 0xC7000020 - 0xC700002F (SMC64) | (PMF) | |
  28. +-----------------------------------+-----------------------+---------------------------------------------+
  29. | 0x87000030 - 0x8700FFFF (SMC32) | Reserved | | reserved for future expansion |
  30. +-----------------------------------+ | |
  31. | 0xC7000030 - 0xC700FFFF (SMC64) | | |
  32. +-----------------------------------+-----------------------+---------------------------------------------+
  33. Source definitions for vendor-specific EL3 Monitor Service Calls used by TF-A are located in
  34. the ``ven_el3_svc.h`` header file.
  35. +----------------------------+----------------------------+--------------------------------+
  36. | VEN_EL3_SVC_VERSION_MAJOR | VEN_EL3_SVC_VERSION_MINOR | Changes |
  37. +============================+============================+================================+
  38. | 1 | 0 | Added Debugfs and PMF services.|
  39. +----------------------------+----------------------------+--------------------------------+
  40. *Table 1: Showing different versions of Vendor-specific service and changes done with each version*
  41. Each sub service will have its own version, one FID allocated for sub service version.
  42. Some ground rules when one should update top level version.
  43. - VEN_EL3_SVC_VERSION_MAJOR is incremented when any of the sub service version discovery
  44. FID changes or the FID that was allocated for discovery changes. So any breaking subfeature
  45. discovery changes will lead to major version update.
  46. - VEN_EL3_SVC_VERSION_MINOR is incremented when we add a new FID or a new sub service.
  47. For example adding an new monitor service at 0x30, Debugfs starts at 0x10 and PMF
  48. starts at 0x20 next one will start at 0x30, this will need a update to minor version.
  49. Performance Measurement Framework (PMF)
  50. ---------------------------------------
  51. The :ref:`Performance Measurement Framework <firmware_design_pmf>`
  52. allows callers to retrieve timestamps captured at various paths in TF-A
  53. execution.
  54. DebugFS interface
  55. -----------------
  56. The optional DebugFS interface is accessed through Vendor specific EL3 service. Refer
  57. to :ref:`DebugFS interface` documentation for further details and usage.
  58. --------------
  59. *Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.*
  60. .. _SMC Calling Convention: https://developer.arm.com/docs/den0028/latest