1 .. _elf_hwcaps_index: 2 3 ================ 4 ARM64 ELF hwcaps 5 ================ 6 7 This document describes the usage and semantic 8 9 10 1. Introduction 11 --------------- 12 13 Some hardware or software features are only av 14 implementations, and/or with certain kernel co 15 architected discovery mechanism available to u 16 kernel exposes the presence of these features 17 of flags called hwcaps, exposed in the auxilia 18 19 Userspace software can test for features by ac 20 AT_HWCAP2 entry of the auxiliary vector, and t 21 flags are set, e.g.:: 22 23 bool floating_point_is_present(void) 24 { 25 unsigned long hwcaps = getauxv 26 if (hwcaps & HWCAP_FP) 27 return true; 28 29 return false; 30 } 31 32 Where software relies on a feature described b 33 the relevant hwcap flag to verify that the fea 34 attempting to make use of the feature. 35 36 Features cannot be probed reliably through oth 37 is not available, attempting to use it may res 38 behaviour, and is not guaranteed to result in 39 that the feature is unavailable, such as a SIG 40 41 42 2. Interpretation of hwcaps 43 --------------------------- 44 45 The majority of hwcaps are intended to indicat 46 which are described by architected ID register 47 userspace code at EL0. These hwcaps are define 48 fields, and should be interpreted with referen 49 these fields in the ARM Architecture Reference 50 51 Such hwcaps are described below in the form:: 52 53 Functionality implied by idreg.field == va 54 55 Such hwcaps indicate the availability of funct 56 defines as being present when idreg.field has 57 indicate that idreg.field is precisely equal t 58 indicate the absence of functionality implied 59 idreg.field. 60 61 Other hwcaps may indicate the presence of feat 62 described by ID registers alone. These may be 63 reference to ID registers, and may refer to ot 64 65 66 3. The hwcaps exposed in AT_HWCAP 67 --------------------------------- 68 69 HWCAP_FP 70 Functionality implied by ID_AA64PFR0_EL1.F 71 72 HWCAP_ASIMD 73 Functionality implied by ID_AA64PFR0_EL1.A 74 75 HWCAP_EVTSTRM 76 The generic timer is configured to generat 77 approximately 10KHz. 78 79 HWCAP_AES 80 Functionality implied by ID_AA64ISAR0_EL1. 81 82 HWCAP_PMULL 83 Functionality implied by ID_AA64ISAR0_EL1. 84 85 HWCAP_SHA1 86 Functionality implied by ID_AA64ISAR0_EL1. 87 88 HWCAP_SHA2 89 Functionality implied by ID_AA64ISAR0_EL1. 90 91 HWCAP_CRC32 92 Functionality implied by ID_AA64ISAR0_EL1. 93 94 HWCAP_ATOMICS 95 Functionality implied by ID_AA64ISAR0_EL1. 96 97 HWCAP_FPHP 98 Functionality implied by ID_AA64PFR0_EL1.F 99 100 HWCAP_ASIMDHP 101 Functionality implied by ID_AA64PFR0_EL1.A 102 103 HWCAP_CPUID 104 EL0 access to certain ID registers is avai 105 described by Documentation/arch/arm64/cpu- 106 107 These ID registers may imply the availabil 108 109 HWCAP_ASIMDRDM 110 Functionality implied by ID_AA64ISAR0_EL1. 111 112 HWCAP_JSCVT 113 Functionality implied by ID_AA64ISAR1_EL1. 114 115 HWCAP_FCMA 116 Functionality implied by ID_AA64ISAR1_EL1. 117 118 HWCAP_LRCPC 119 Functionality implied by ID_AA64ISAR1_EL1. 120 121 HWCAP_DCPOP 122 Functionality implied by ID_AA64ISAR1_EL1. 123 124 HWCAP_SHA3 125 Functionality implied by ID_AA64ISAR0_EL1. 126 127 HWCAP_SM3 128 Functionality implied by ID_AA64ISAR0_EL1. 129 130 HWCAP_SM4 131 Functionality implied by ID_AA64ISAR0_EL1. 132 133 HWCAP_ASIMDDP 134 Functionality implied by ID_AA64ISAR0_EL1. 135 136 HWCAP_SHA512 137 Functionality implied by ID_AA64ISAR0_EL1. 138 139 HWCAP_SVE 140 Functionality implied by ID_AA64PFR0_EL1.S 141 142 HWCAP_ASIMDFHM 143 Functionality implied by ID_AA64ISAR0_EL1.F 144 145 HWCAP_DIT 146 Functionality implied by ID_AA64PFR0_EL1.D 147 148 HWCAP_USCAT 149 Functionality implied by ID_AA64MMFR2_EL1. 150 151 HWCAP_ILRCPC 152 Functionality implied by ID_AA64ISAR1_EL1. 153 154 HWCAP_FLAGM 155 Functionality implied by ID_AA64ISAR0_EL1. 156 157 HWCAP_SSBS 158 Functionality implied by ID_AA64PFR1_EL1.S 159 160 HWCAP_SB 161 Functionality implied by ID_AA64ISAR1_EL1. 162 163 HWCAP_PACA 164 Functionality implied by ID_AA64ISAR1_EL1. 165 ID_AA64ISAR1_EL1.API == 0b0001, as describ 166 Documentation/arch/arm64/pointer-authentic 167 168 HWCAP_PACG 169 Functionality implied by ID_AA64ISAR1_EL1. 170 ID_AA64ISAR1_EL1.GPI == 0b0001, as describ 171 Documentation/arch/arm64/pointer-authentic 172 173 HWCAP2_DCPODP 174 Functionality implied by ID_AA64ISAR1_EL1. 175 176 HWCAP2_SVE2 177 Functionality implied by ID_AA64ZFR0_EL1.S 178 179 HWCAP2_SVEAES 180 Functionality implied by ID_AA64ZFR0_EL1.A 181 182 HWCAP2_SVEPMULL 183 Functionality implied by ID_AA64ZFR0_EL1.A 184 185 HWCAP2_SVEBITPERM 186 Functionality implied by ID_AA64ZFR0_EL1.B 187 188 HWCAP2_SVESHA3 189 Functionality implied by ID_AA64ZFR0_EL1.S 190 191 HWCAP2_SVESM4 192 Functionality implied by ID_AA64ZFR0_EL1.S 193 194 HWCAP2_FLAGM2 195 Functionality implied by ID_AA64ISAR0_EL1. 196 197 HWCAP2_FRINT 198 Functionality implied by ID_AA64ISAR1_EL1. 199 200 HWCAP2_SVEI8MM 201 Functionality implied by ID_AA64ZFR0_EL1.I 202 203 HWCAP2_SVEF32MM 204 Functionality implied by ID_AA64ZFR0_EL1.F 205 206 HWCAP2_SVEF64MM 207 Functionality implied by ID_AA64ZFR0_EL1.F 208 209 HWCAP2_SVEBF16 210 Functionality implied by ID_AA64ZFR0_EL1.B 211 212 HWCAP2_I8MM 213 Functionality implied by ID_AA64ISAR1_EL1. 214 215 HWCAP2_BF16 216 Functionality implied by ID_AA64ISAR1_EL1. 217 218 HWCAP2_DGH 219 Functionality implied by ID_AA64ISAR1_EL1. 220 221 HWCAP2_RNG 222 Functionality implied by ID_AA64ISAR0_EL1. 223 224 HWCAP2_BTI 225 Functionality implied by ID_AA64PFR1_EL1.B 226 227 HWCAP2_MTE 228 Functionality implied by ID_AA64PFR1_EL1.M 229 by Documentation/arch/arm64/memory-tagging 230 231 HWCAP2_ECV 232 Functionality implied by ID_AA64MMFR0_EL1. 233 234 HWCAP2_AFP 235 Functionality implied by ID_AA64MMFR1_EL1. 236 237 HWCAP2_RPRES 238 Functionality implied by ID_AA64ISAR2_EL1. 239 240 HWCAP2_MTE3 241 Functionality implied by ID_AA64PFR1_EL1.M 242 by Documentation/arch/arm64/memory-tagging 243 244 HWCAP2_SME 245 Functionality implied by ID_AA64PFR1_EL1.S 246 by Documentation/arch/arm64/sme.rst. 247 248 HWCAP2_SME_I16I64 249 Functionality implied by ID_AA64SMFR0_EL1. 250 251 HWCAP2_SME_F64F64 252 Functionality implied by ID_AA64SMFR0_EL1. 253 254 HWCAP2_SME_I8I32 255 Functionality implied by ID_AA64SMFR0_EL1. 256 257 HWCAP2_SME_F16F32 258 Functionality implied by ID_AA64SMFR0_EL1. 259 260 HWCAP2_SME_B16F32 261 Functionality implied by ID_AA64SMFR0_EL1. 262 263 HWCAP2_SME_F32F32 264 Functionality implied by ID_AA64SMFR0_EL1. 265 266 HWCAP2_SME_FA64 267 Functionality implied by ID_AA64SMFR0_EL1. 268 269 HWCAP2_WFXT 270 Functionality implied by ID_AA64ISAR2_EL1. 271 272 HWCAP2_EBF16 273 Functionality implied by ID_AA64ISAR1_EL1. 274 275 HWCAP2_SVE_EBF16 276 Functionality implied by ID_AA64ZFR0_EL1.B 277 278 HWCAP2_CSSC 279 Functionality implied by ID_AA64ISAR2_EL1. 280 281 HWCAP2_RPRFM 282 Functionality implied by ID_AA64ISAR2_EL1. 283 284 HWCAP2_SVE2P1 285 Functionality implied by ID_AA64ZFR0_EL1.S 286 287 HWCAP2_SME2 288 Functionality implied by ID_AA64SMFR0_EL1. 289 290 HWCAP2_SME2P1 291 Functionality implied by ID_AA64SMFR0_EL1. 292 293 HWCAP2_SMEI16I32 294 Functionality implied by ID_AA64SMFR0_EL1. 295 296 HWCAP2_SMEBI32I32 297 Functionality implied by ID_AA64SMFR0_EL1. 298 299 HWCAP2_SMEB16B16 300 Functionality implied by ID_AA64SMFR0_EL1. 301 302 HWCAP2_SMEF16F16 303 Functionality implied by ID_AA64SMFR0_EL1. 304 305 HWCAP2_MOPS 306 Functionality implied by ID_AA64ISAR2_EL1. 307 308 HWCAP2_HBC 309 Functionality implied by ID_AA64ISAR2_EL1. 310 311 HWCAP2_SVE_B16B16 312 Functionality implied by ID_AA64ZFR0_EL1.B 313 314 HWCAP2_LRCPC3 315 Functionality implied by ID_AA64ISAR1_EL1. 316 317 HWCAP2_LSE128 318 Functionality implied by ID_AA64ISAR0_EL1. 319 320 HWCAP2_FPMR 321 Functionality implied by ID_AA64PFR2_EL1.F 322 323 HWCAP2_LUT 324 Functionality implied by ID_AA64ISAR2_EL1. 325 326 HWCAP2_FAMINMAX 327 Functionality implied by ID_AA64ISAR3_EL1. 328 329 HWCAP2_F8CVT 330 Functionality implied by ID_AA64FPFR0_EL1. 331 332 HWCAP2_F8FMA 333 Functionality implied by ID_AA64FPFR0_EL1. 334 335 HWCAP2_F8DP4 336 Functionality implied by ID_AA64FPFR0_EL1. 337 338 HWCAP2_F8DP2 339 Functionality implied by ID_AA64FPFR0_EL1. 340 341 HWCAP2_F8E4M3 342 Functionality implied by ID_AA64FPFR0_EL1. 343 344 HWCAP2_F8E5M2 345 Functionality implied by ID_AA64FPFR0_EL1. 346 347 HWCAP2_SME_LUTV2 348 Functionality implied by ID_AA64SMFR0_EL1. 349 350 HWCAP2_SME_F8F16 351 Functionality implied by ID_AA64SMFR0_EL1. 352 353 HWCAP2_SME_F8F32 354 Functionality implied by ID_AA64SMFR0_EL1. 355 356 HWCAP2_SME_SF8FMA 357 Functionality implied by ID_AA64SMFR0_EL1. 358 359 HWCAP2_SME_SF8DP4 360 Functionality implied by ID_AA64SMFR0_EL1. 361 362 HWCAP2_SME_SF8DP2 363 Functionality implied by ID_AA64SMFR0_EL1. 364 365 HWCAP2_SME_SF8DP4 366 Functionality implied by ID_AA64SMFR0_EL1. 367 368 HWCAP2_POE 369 Functionality implied by ID_AA64MMFR3_EL1. 370 371 4. Unused AT_HWCAP bits 372 ----------------------- 373 374 For interoperation with userspace, the kernel 375 and 63 of AT_HWCAP will always be returned as
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.