hulk inclusion category: feature bugzilla: https://atomgit.com/openeuler/kernel/issues/9840 ------------------ Add a pr_debug() statement to arm_smmu_group_set_mpam() to log the SMMU features, PARTID, PMG, and Stream ID when binding MPAM parameters to a Stream Table Entry (STE). This aids debugging of MPAM (Memory System Resource Partitioning and Monitoring) configuration issues, especially when verifying that the correct partition ID and performance monitoring group are being programmed for each stream. Signed-off-by: Zeng Heng <zengheng4@huawei.com> --- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c index fa2bb54a49e4e..f63fab2a8d11d 100644 --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c @@ -4155,6 +4155,9 @@ static int arm_smmu_group_set_mpam(struct iommu_group *group, u16 partid, sid = master->streams[i].id; step = arm_smmu_get_step_for_sid(smmu, sid); + pr_debug("smmu feat 0x%x bind partid %d pmg %d to sid %d\n", + smmu->features, partid, pmg, sid); + /* These need locking if the VMSPtr is ever used */ step->data[4] = FIELD_PREP(STRTAB_STE_4_PARTID, partid); step->data[5] = FIELD_PREP(STRTAB_STE_5_PMG, pmg); -- 2.43.0