1FF-A manifests binding to device tree 2===================================== 3 4This document defines the nodes and properties used to define a partition, 5according to the FF-A specification, and the SPMC manifest. 6 7FF-A Partition Manifest Properties 8---------------------------------- 9 10The FF-A partition manifest is consumed by the SPMC to configure the state 11associated with the related Secure Partition. 12 13- compatible [mandatory] 14 - value type: <string> 15 - Must be the string "arm,ffa-manifest-X.Y" which specifies the major and 16 minor versions of the device tree binding for the FFA manifest represented 17 by this node. The minor number is incremented if the binding changes in a 18 backwards compatible manner. 19 20 - X is an integer representing the major version number of this document. 21 - Y is an integer representing the minor version number of this document. 22 23- ffa-version [mandatory] 24 - value type: <u32> 25 - Must be two 16 bits values (X, Y), concatenated as 31:16 -> X, 26 15:0 -> Y, where: 27 28 - X is the major version of FF-A expected by the partition at the FFA 29 instance it will execute. 30 - Y is the minor version of FF-A expected by the partition at the FFA 31 instance it will execute. 32 33- uuid [mandatory] 34 - value type: <prop-encoded-array> 35 - An array of comma separated tuples each consisting of 4 <u32> values, 36 identifying the UUID of the services implemented by this partition. 37 The UUID format is described in RFC 4122. 38 - These 4 <u32> values are packed similar to the UUID register mapping 39 specified in section '5.3 Unique Identification format', SMC Calling 40 Convention, DEN0028, v1.6 G BET0 41 (https://developer.arm.com/documentation/den0028/latest/). 42 43- id 44 - value type: <u32> 45 - Pre-allocated partition ID. 46 47- auxiliary-id 48 - value type: <u32> 49 - Pre-allocated ID that could be used in memory management transactions. 50 51- description 52 - value type: <string> 53 - Name of the partition e.g. for debugging purposes. 54 55- execution-ctx-count [mandatory] 56 - value type: <u32> 57 - Number of vCPUs that a VM or SP wants to instantiate. 58 59 - In the absence of virtualization, this is the number of execution 60 contexts that a partition implements. 61 - If value of this field = 1 and number of PEs > 1 then the partition is 62 treated as UP & migrate capable. 63 - If the value of this field > 1 then the partition is treated as a MP 64 capable partition irrespective of the number of PEs. 65 66- exception-level [mandatory] 67 - value type: <u32> 68 - The target exception level for the partition: 69 70 - 0x0: EL1 71 - 0x1: S_EL0 72 - 0x2: S_EL1 73 74- execution-state [mandatory] 75 - value type: <u32> 76 - The target execution state of the partition: 77 78 - 0: AArch64 79 - 1: AArch32 80 81- load-address 82 - value type: <u64> 83 - Physical base address of the partition in memory. Absence of this field 84 indicates that the partition is position independent and can be loaded at 85 any address chosen at boot time. 86 87- entrypoint-offset 88 - value type: <u64> 89 - Offset from the base of the partition's binary image to the entry point of 90 the partition. Absence of this field indicates that the entry point is at 91 offset 0x0 from the base of the partition's binary. 92 93- xlat-granule 94 - value type: <u32> 95 - Translation granule used with the partition: 96 97 - 0x0: 4k 98 - 0x1: 16k 99 - 0x2: 64k 100 101- boot-order 102 - value type: <u32> 103 - A unique number amongst all partitions that specifies if this partition 104 must be booted before others. The partition with the smaller number will be 105 booted first. Highest vlue allowed for this field is 0xFFFF. 106 107- rx-tx-buffer 108 - value type: "memory-regions" node 109 - Specific "memory-regions" nodes that describe the RX/TX buffers expected 110 by the partition. 111 The "compatible" must be the string "arm,ffa-manifest-rx_tx-buffer". 112 113- messaging-method [mandatory] 114 - value type: <u32> 115 - Specifies which messaging methods are supported by the partition, set bit 116 means the feature is supported, clear bit - not supported: 117 118 - Bit[0]: partition can receive direct requests via FFA_MSG_SEND_DIRECT_REQ ABI if set 119 - Bit[1]: partition can send direct requests via FFA_MSG_SEND_DIRECT_REQ ABI if set 120 - Bit[2]: partition can send and receive indirect messages 121 - Bit[9]: partition can receive direct requests via FFA_MSG_SEND_DIRECT_REQ2 ABI if set 122 - Bit[10]: partition can send direct requests via FFA_MSG_SEND_DIRECT_REQ2 ABI if set 123 124- managed-exit 125 - value type: <empty> 126 - Specifies if managed exit is supported. 127 - This field is deprecated in favor of ns-interrupts-action field in the FF-A 128 v1.1 EAC0 spec. 129 130- managed-exit-virq 131 - value type: <empty> 132 - Indicates if the partition needs managed exit, if supported, to be signaled 133 through vIRQ signal. 134 135- ns-interrupts-action [mandatory] 136 - value type: <u32> 137 - Specifies the action that the SPMC must take in response to a Non-secure 138 physical interrupt. 139 140 - 0x0: Non-secure interrupt is queued 141 - 0x1: Non-secure interrupt is signaled after a managed exit 142 - 0x2: Non-secure interrupt is signaled 143 144 - This field supersedes the managed-exit field in the FF-A v1.0 spec. 145 146- other-s-interrupts-action 147 - value type: <u32> 148 - Specifies the action that the SPMC must take in response to a Other-Secure 149 physical interrupt. 150 151 - 0x0: Other-Secure interrupt is queued 152 - 0x1: Other-Secure interrupt is signaled 153 154- has-primary-scheduler 155 - value type: <empty> 156 - Presence of this field indicates that the partition implements the primary 157 scheduler. If so, run-time EL must be EL1. 158 159- time-slice-mem 160 - value type: <empty> 161 - Presence of this field indicates that the partition doesn't expect the 162 partition manager to time slice long running memory management functions. 163 164- gp-register-num 165 - value type: <u32> 166 - The field specifies the general purpose register number but not its width. 167 The width is derived from the partition's execution state, as specified in 168 the partition properties. For example, if the number value is 1 then the 169 general-purpose register used will be x1 in AArch64 state and w1 in AArch32 170 state. 171 Presence of this field indicates that the partition expects the address of 172 the FF-A boot information blob to be passed in the specified general purpose 173 register. 174 175- power-management-messages 176 - value type: <u32> 177 - Specifies which power management messages a partition subscribes to. 178 A set bit means the partition should be informed of the power event, clear 179 bit - should not be informed of event: 180 181 - Bit[0]: CPU_OFF 182 - Bit[1]: CPU_SUSPEND 183 - Bit[2]: CPU_SUSPEND_RESUME 184 185- vm-availability-messages 186 - value type: <u32> 187 - Specifies which VM availability messages a partition subscribes to. A set 188 bit means the partition should be informed of the event, clear bit - should 189 not be informed of event: 190 191 - Bit[0]: VM created 192 - Bit[1]: VM destroyed 193 194.. _memory_region_node: 195 196Memory Regions 197~~~~~~~~~~~~~~ 198 199- compatible [mandatory] 200 - value type: <string> 201 - Must be the string "arm,ffa-manifest-memory-regions". 202 203- description 204 - value type: <string> 205 - Name of the memory region e.g. for debugging purposes. 206 207- pages-count [mandatory] 208 - value type: <u32> 209 - Count of pages of memory region as a multiple of the translation granule 210 size 211 212- attributes [mandatory] 213 - value type: <u32> 214 - Mapping modes: ORed to get required permission 215 216 - 0x1: Read 217 - 0x2: Write 218 - 0x4: Execute 219 - 0x8: Security state 220 221- base-address 222 - value type: <u64> 223 - Base address of the region. The address must be aligned to the translation 224 granule size. 225 The address given may be a Physical Address (PA), Virtual Address (VA), or 226 Intermediate Physical Address (IPA). Refer to the FF-A specification for 227 more information on the restrictions around the address type. 228 If the base address is omitted then the partition manager must map a memory 229 region of the specified size into the partition's translation regime and 230 then communicate the region properties (including the base address chosen 231 by the partition manager) to the partition. 232 233- load-address-relative-offset 234 - value type: <u64> 235 - Offset relative to the load address of the partition. 236 When this is provided in the partition manifest, it should be added to the 237 load address to get the base address of the region. The secure partition 238 manifest can have either "base-address" or "load-address-relative-offset". 239 It cannot have both. 240 241- stream-ids 242 - value type: <prop-encoded-array> 243 - List of IDs belonging to a DMA capable peripheral device that has access to 244 the memory region represented by current node. 245 - Each ID must have been declared in exactly one device region node. 246 247- smmu-id 248 - value type: <u32> 249 - Identifies the SMMU IP that enforces the access control for the DMA device 250 that owns the above stream-ids. 251 252- stream-ids-access-permissions 253 - value type: <prop-encoded-array> 254 - List of attributes representing the instruction and data access permissions 255 used by the DMA device streams to access the memory region represented by 256 current node. 257 258.. _device_region_node: 259 260Device Regions 261~~~~~~~~~~~~~~ 262 263- compatible [mandatory] 264 - value type: <string> 265 - Must be the string "arm,ffa-manifest-device-regions". 266 267- description 268 - value type: <string> 269 - Name of the device region e.g. for debugging purposes. 270 271- pages-count [mandatory] 272 - value type: <u32> 273 - Count of pages of memory region as a multiple of the translation granule 274 size 275 276- attributes [mandatory] 277 - value type: <u32> 278 - Mapping modes: ORed to get required permission 279 280 - 0x1: Read 281 - 0x2: Write 282 - 0x4: Execute 283 - 0x8: Security state 284 285- base-address [mandatory] 286 - value type: <u64> 287 - Base address of the region. The address must be aligned to the translation 288 granule size. 289 The address given may be a Physical Address (PA), Virtual Address (VA), or 290 Intermediate Physical Address (IPA). Refer to the FF-A specification for 291 more information on the restrictions around the address type. 292 293- smmu-id 294 - value type: <u32> 295 - On systems with multiple System Memory Management Units (SMMUs) this 296 identifier is used to inform the partition manager which SMMU the device is 297 upstream of. If the field is omitted then it is assumed that the device is 298 not upstream of any SMMU. 299 300- stream-ids 301 - value type: <prop-encoded-array> 302 - List of IDs where an ID is a unique <u32> value amongst all devices assigned 303 to the partition. 304 305- interrupts 306 - value type: <prop-encoded-array> 307 - A list of (id, attributes) pair describing the device interrupts, where: 308 309 - id: The <u32> interrupt IDs. 310 - attributes: A <u32> value, containing attributes for each interrupt ID: 311 312 +----------------------+----------+ 313 |Field | Bit(s) | 314 +----------------------+----------+ 315 | Priority | 7:0 | 316 +----------------------+----------+ 317 | Security state | 8 | 318 +----------------------+----------+ 319 | Config(Edge/Level) | 9 | 320 +----------------------+----------+ 321 | Type(SPI/PPI/SGI) | 11:10 | 322 +----------------------+----------+ 323 324 Security state: 325 - Secure: 1 326 - Non-secure: 0 327 328 Configuration: 329 - Edge triggered: 0 330 - Level triggered: 1 331 332 Type: 333 - SPI: 0b10 334 - PPI: 0b01 335 - SGI: 0b00 336 337- interrupts-target 338 - value type: <prop-encoded-array> 339 - A list of (id, mpdir upper bits, mpidr lower bits) tuples describing which 340 mpidr the interrupt is routed to, where: 341 342 - id: The <u32> interrupt ID. Must be one of those specified in the 343 "interrupts" field. 344 - mpidr upper bits: The <u32> describing the upper bits of the 64 bits 345 mpidr 346 - mpidr lower bits: The <u32> describing the lower bits of the 64 bits 347 mpidr 348 349- exclusive-access 350 - value type: <empty> 351 - Presence of this field implies that this endpoint must be granted exclusive 352 access and ownership of this device's MMIO region. 353 354SPMC Manifest Properties 355------------------------ 356 357This manifest contains the SPMC *attribute* node consumed by the SPMD at 358boot time. 359 360attribute 361~~~~~~~~~ 362 363- spmc_id 364 - value type: <u32> 365 - Defines the endpoint ID value that SPMC can query through ``FFA_ID_GET``. 366- maj_ver 367 - value type: <u32> 368 - Major of the FF-A version implemented by the SPMC. SPMD checks against its own 369 version. 370- min_ver 371 - value type>: <u32> 372 - Minor of the FF-A version implemented by the SPMC. SPMD checks against its own 373 version. 374- exec_state 375 - value type: <u32> 376 - Defines the SPMC execution state (AArch64 or AArch32). 377- load_address 378 - value type: <u64> 379 - Base physical address in which the SPMC binary is placed. Should be page aligned. 380- entrypoint: 381 - value type: <u64> 382 - Defines the physical address for the cold boot primary core entrypoint used by the SPMD 383 (currently matches ``BL32_BASE``) to enter the SPMC. 384- binary_size 385 - value type: <u32> 386 - Defines the maximum size of the SPMC binary. It is used with load_address to sanitize the 387 specified entrypoint. 388 389-------------- 390 391*Copyright (c) 2019-2025, Arm Limited and Contributors. All rights reserved.* 392