HiSilicon erratum 162001800 describes the limitation of SMMUv3 PMCG implementation on HiSilicon Hip08 platforms. On these platforms, the PMCG event counter registers (SMMU_PMCG_EVCNTRn) are read only and as a result it is not possible to set the initial counter period value on event monitor start. To work around this, the current value of the counter is read and used for delta calculations. OEM information from ACPI header is used to identify the affected hardware platforms.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -32,6 +32,7 @@ · 31 unmodified lines | |||
| 32 | * do with hardware or with IORT specification. | 32 | * do with hardware or with IORT specification. |
| 33 | */ | 33 | */ |
| 34 | #define IORT_SMMU_V3_PMCG_GENERIC 0x00000000 /* Generic SMMUv3 PMCG */ | 34 | #define IORT_SMMU_V3_PMCG_GENERIC 0x00000000 /* Generic SMMUv3 PMCG */ |
| 35 | #define IORT_SMMU_V3_PMCG_HISI_HIP08 0x00000001 /* HiSilicon HIP08 PMCG */ | ||
| 35 | 36 | ||
| 36 | int iort_register_domain_token(int trans_id, phys_addr_t base, | 37 | int iort_register_domain_token(int trans_id, phys_addr_t base, |
| 37 | struct fwnode_handle *fw_node); | 38 | struct fwnode_handle *fw_node); |