From: Jan Kiszka <[email protected]> arm_smmu_tlb_sync_global already reports when it fails.
Signed-off-by: Jan Kiszka <[email protected]> --- hypervisor/arch/arm64/smmu.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hypervisor/arch/arm64/smmu.c b/hypervisor/arch/arm64/smmu.c index 2cd5157c..b89291e7 100644 --- a/hypervisor/arch/arm64/smmu.c +++ b/hypervisor/arch/arm64/smmu.c @@ -887,10 +887,8 @@ static int arm_smmu_cell_init(struct cell *cell) mmio_write32(ARM_SMMU_GR0(&smmu_device[i]) + ARM_SMMU_GR0_TLBIVMID, cfg->vmid); ret = arm_smmu_tlb_sync_global(&smmu_device[i]); - if (ret < 0) { - printk("TLB maintenance operations globally across the SMMU failed!\n"); + if (ret < 0) return ret; - } } return 0; @@ -918,9 +916,7 @@ static void arm_smmu_cell_exit(struct cell *cell) mmio_write32(ARM_SMMU_GR0(&smmu_device[i]) + ARM_SMMU_GR0_TLBIVMID, smmu_device[i].cbs[cbndx].cfg->vmid); - ret = arm_smmu_tlb_sync_global(&smmu_device[i]); - if (ret < 0) - printk("TLB maintenance operations globally across the SMMU failed!\n"); + arm_smmu_tlb_sync_global(&smmu_device[i]); for_each_smmu_sid(sid, cell->config, n) { ret = arm_smmu_find_sme(*sid, -- 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/47b390bac76c1ecb797ed6ed2d7c81373e1cc923.1601023807.git.jan.kiszka%40siemens.com.
