From: Jan Kiszka <[email protected]>

We don't do anything with this because we always flush TLBs after
changing the mappings.
---
 hypervisor/arch/arm64/smmu.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/hypervisor/arch/arm64/smmu.c b/hypervisor/arch/arm64/smmu.c
index ca86eed5..6abaa52a 100644
--- a/hypervisor/arch/arm64/smmu.c
+++ b/hypervisor/arch/arm64/smmu.c
@@ -17,7 +17,6 @@
 
 #include <jailhouse/cell-config.h>
 
-#define ARM_SMMU_FEAT_COHERENT_WALK    (1 << 0)
 #define ARM_SMMU_FEAT_STREAM_MATCH     (1 << 1)
 /* unused bits 2 and 3 */
 #define ARM_SMMU_FEAT_VMID16           (1 << 6)
@@ -426,7 +425,6 @@ static int arm_smmu_id_size_to_bits(int size)
 
 static int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu)
 {
-       bool cttw_reg, cttw_fw = smmu->features & ARM_SMMU_FEAT_COHERENT_WALK;
        void *gr0_base = ARM_SMMU_GR0(smmu);
        unsigned long size;
        u32 id;
@@ -440,18 +438,6 @@ static int arm_smmu_device_cfg_probe(struct 
arm_smmu_device *smmu)
        if (!(id & ID0_S2TS))
                return trace_error(-EIO);
 
-       /*
-        * In order for DMA API calls to work properly, we must defer to what
-        * the FW says about coherency, regardless of what the hardware claims.
-        * Fortunately, this also opens up a workaround for systems where the
-        * ID register value has ended up configured incorrectly.
-        */
-       cttw_reg = !!(id & ID0_CTTW);
-       if (cttw_fw || cttw_reg)
-               printk(" %scoherent translation table walks\n", cttw_fw ? "" : 
"non-");
-       if (cttw_fw != cttw_reg)
-               printk(" (IDR0.CTTW is overridden by FW configuration)\n");
-
        size = 1 << ((id >> ID0_NUMSIDB_SHIFT) & ID0_NUMSIDB_MASK);
        smmu->streamid_mask = size - 1;
 
-- 
2.26.2

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/39f26537be470a31c9f7cd000cffcdac3393f731.1601838005.git.jan.kiszka%40siemens.com.

Reply via email to