Enumerations

enum class DmaFaultType : uint32_t
Name Value Comments
kNone 0 --
kUnidentifiedStream 1 --
kStreamMatchConflict 2 --
kInvalidContext 3 --
kTranslation 4 --
kAddressSize 5

A next-level table address or page output address does not fit the
configured stage 1 output address size.

kAccessFlag 6

A next-level table address or page output address does not fit the
configured stage 1 output address size.

kPermission 7

A next-level table address or page output address does not fit the
configured stage 1 output address size.

kTlbMatchConflict 8

A next-level table address or page output address does not fit the
configured stage 1 output address size.

kStaleTlbHit 9

A next-level table address or page output address does not fit the
configured stage 1 output address size.

Defined at line 79 of file ../../zircon/kernel/dev/iommu/arm_smmu/tests/sim_smmu_hardware_model.h

Records

Functions

  • bool DescLeafPermits (uint64_t pte, uint32_t perms, bool privileged)

    Returns true if stage 1 leaf descriptor |pte| permits every access in |perms|

    (IOMMU_FLAG_PERM_*) for a transaction of the given privilege, with WXN clear.

    AP[2:1]: 00 privileged read/write only; 01 read/write at both; 10 privileged

    read-only; 11 read-only at both. Unprivileged execute needs UXN == 0.

    Privileged execute needs PXN == 0, and is never permitted for memory that is

    writable by unprivileged accesses.

    Defined at line 63 of file ../../zircon/kernel/dev/iommu/arm_smmu/tests/sim_smmu_hardware_model.h

Variables

const uint64_t kDescValid

Defined at line 43 of file ../../zircon/kernel/dev/iommu/arm_smmu/tests/sim_smmu_hardware_model.h

const uint64_t kDescAddrMask

Defined at line 46 of file ../../zircon/kernel/dev/iommu/arm_smmu/tests/sim_smmu_hardware_model.h

const uint64_t kDescTableHierAttrMask

Defined at line 50 of file ../../zircon/kernel/dev/iommu/arm_smmu/tests/sim_smmu_hardware_model.h

const uint64_t kDescPxn

Defined at line 52 of file ../../zircon/kernel/dev/iommu/arm_smmu/tests/sim_smmu_hardware_model.h

const uint64_t kDescUxn

Defined at line 54 of file ../../zircon/kernel/dev/iommu/arm_smmu/tests/sim_smmu_hardware_model.h

const uint32_t kDescEntriesPerTable

Defined at line 77 of file ../../zircon/kernel/dev/iommu/arm_smmu/tests/sim_smmu_hardware_model.h