]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/arm: smmuv3: Remove the unused fields for PREFETCH_CONFIG command
authorZenghui Yu <yuzenghui@huawei.com>
Tue, 23 Aug 2022 14:05:36 +0000 (15:05 +0100)
committerJulien Grall <jgrall@amazon.com>
Tue, 6 Sep 2022 16:43:27 +0000 (17:43 +0100)
Backport Linux commit e0bb4b735404. This is the clean backport without
any changes.

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 <yuzenghui@huawei.com>
Link: https://lore.kernel.org/r/20210407084448.1838-1-yuzenghui@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git e0bb4b735404
Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/drivers/passthrough/arm/smmu-v3.c
xen/drivers/passthrough/arm/smmu-v3.h

index 15bb4d7e199dcbe886093fa2f437c24ca0ae7146..28fcb01757251a79c2eb8a34cdbb24078fc9f2ba 100644 (file)
@@ -405,8 +405,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_STE:
                cmd[0] |= FIELD_PREP(CMDQ_CFGI_0_SID, ent->cfgi.sid);
index 0742bc393fbeae3dd7ed6073cbe3e2e4432438f1..b381ad373845ed333831974670e120939c73425b 100644 (file)
@@ -456,8 +456,6 @@ struct arm_smmu_cmdq_ent {
                #define CMDQ_OP_PREFETCH_CFG    0x1
                struct {
                        u32                     sid;
-                       u8                      size;
-                       u64                     addr;
                } prefetch;
 
                #define CMDQ_OP_CFGI_STE        0x3