iommu/arm-smmu-v3: Remove the unused fields for PREFETCH_CONFIG command
Subsystems (2)
PATCH 1/1 iommu/arm-smmu-v3: Remove the unused fields for PREFETCH_CONFIG command
Per SMMUv3 spec, there is no Size and Addr field in the PREFETCH_CONFIG command and they're not used by the driver. Remove them.
We can add them back if we're going to use PREFETCH_ADDR in the future.
Signed-off-by Zenghui Yu <[email protected]>
--- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 2 -- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 2 -- 2 files changed, 4 deletions(-)
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +0 -2
@@ -245,8 +245,6 @@ static int arm_smmu_cmdq_build_cmd(u64 *cmd, struct arm_smmu_cmdq_ent *ent)break ;case CMDQ_OP_PREFETCH_CFG : cmd[0 ] |=FIELD_PREP (CMDQ_PREFETCH_0_SID , ent->prefetch.sid); - cmd[1 ] |=FIELD_PREP (CMDQ_PREFETCH_1_SIZE , ent->prefetch.size); - cmd[1 ] |= ent->prefetch.addr &CMDQ_PREFETCH_1_ADDR_MASK ;break ;case CMDQ_OP_CFGI_CD : cmd[0 ] |=FIELD_PREP (CMDQ_CFGI_0_SSID , ent->cfgi.ssid);
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h +0 -2
@@ -410,8 +410,6 @@ struct arm_smmu_cmdq_ent {#define CMDQ_OP_PREFETCH_CFG 0x1struct {u32 sid; -u8 size; -u64 addr; } prefetch;#define CMDQ_OP_CFGI_STE 0x3
Signature · 6 lines
2.19.1 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
Quoted 4 lines · Zenghui Yu
Per SMMUv3 spec, there is no Size and Addr field in the
PREFETCH_CONFIGcommand and they're not used by the driver. Remove them.We can add them back if we're going to use
PREFETCH_ADDRin the future.
Applied to will (for-joerg/arm-smmu/updates), thanks!
[1/1] iommu/arm-smmu-v3: Remove the unused fields for PREFETCH_CONFIG command
https://git.kernel.org/will/c/e0bb4b735404
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev