Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4160892ybp; Sun, 13 Oct 2019 23:39:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPy8f2wW+ABORxKPE5vCzAO8DBU69HvlR43x8ohVrZORm+kVmiFfAMG0buGmF3F3eEK6gp X-Received: by 2002:aa7:cd06:: with SMTP id b6mr27544985edw.58.1571035169464; Sun, 13 Oct 2019 23:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571035169; cv=none; d=google.com; s=arc-20160816; b=Pig2VS0/MuL51nwAbjXDdFor4x4MHVWUBaQ680/6vI0duRznw+MiG48jiSXI84zddY gMNyVdXuXXgnVdnHGUAYCvr+X4FwLMUhQfkdYXYf5GTB1XeZRaRPhJeY5VMFktqviGCY ztfMqqm4Aje9ubA42vXLNjvPpHlDLuIZGbwLJ98vHrcYhm958bHhqitV1bVHJFrXm39x fv2ilBqVikRHc5zoT3zjFQDYv94BHVYbRHXj+aY5ghlzmD9AE0/3IjvEwHY3XaOMf5JH bHJR1EDr7ejfomBm9LPJmsV5qiu5umKWMQgUEJzMGUS6zjSwauxmKHfee1AnqUU+XDCc nvaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=n2ZMxKHfF4FjbSYbUwZzh5Dpx0Iu6cOoZW92ihikIF8=; b=ChACS3uMj61oCfvqBbeMMqXV7IEHty2QD2BxQ4PW3CqSvi0S/8XHAOtbgwiIWj1fbK B2dm0vIIxzUAh920syqpaTxw3KCOQNFdQ1SgNE+GTwRQ+yE9UI2AY2do8RE8UmMeTBiq Kz4dC98m6nbbfgujcBGqhqlMfpqjUgIjiYXiDb+xbEW94R6393O8HiHpiVsMXyHHIQWB GkJLqnU41eOSDZrr8FfxTKt/H2H6fGtPwmas66jaH6Ulsnl2zoM+HCsfUDDjIQPsaLWe SmuQJ2f3Mu6X/naKxCLBhyEd616fcnH50fP/Tf8xNDsi2P/7GNACGaxfSI4iS5NtsBPs ho4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g50si11608469edb.47.2019.10.13.23.39.06; Sun, 13 Oct 2019 23:39:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730073AbfJNGir (ORCPT + 99 others); Mon, 14 Oct 2019 02:38:47 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:14999 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726406AbfJNGiq (ORCPT ); Mon, 14 Oct 2019 02:38:46 -0400 X-UUID: 965587b301ae4fe8b34476f710e1f97a-20191014 X-UUID: 965587b301ae4fe8b34476f710e1f97a-20191014 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 219309049; Mon, 14 Oct 2019 14:38:40 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 14 Oct 2019 14:38:36 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 14 Oct 2019 14:38:36 +0800 From: Yong Wu To: Matthias Brugger , Joerg Roedel , Will Deacon CC: Evan Green , Robin Murphy , Tomasz Figa , , , , , , , , Nicolas Boichat , , , , Subject: [PATCH v3 1/7] iommu/mediatek: Correct the flush_iotlb_all callback Date: Mon, 14 Oct 2019 14:38:15 +0800 Message-ID: <1571035101-4213-2-git-send-email-yong.wu@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1571035101-4213-1-git-send-email-yong.wu@mediatek.com> References: <1571035101-4213-1-git-send-email-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: F2C1779EB7F8A022E9DB73FE5ECD4AFF3BC684C1A4ADE5CDE1EA95C108C9BBB32000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the correct tlb_flush_all instead of the original one. Fixes: 4d689b619445 ("iommu/io-pgtable-arm-v7s: Convert to IOMMU API TLB sync") Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index 67a483c..76b9388 100644 --- a/drivers/iommu/mtk_iommu.c +++ b/drivers/iommu/mtk_iommu.c @@ -447,7 +447,7 @@ static size_t mtk_iommu_unmap(struct iommu_domain *domain, static void mtk_iommu_flush_iotlb_all(struct iommu_domain *domain) { - mtk_iommu_tlb_sync(mtk_iommu_get_m4u_data()); + mtk_iommu_tlb_flush_all(mtk_iommu_get_m4u_data()); } static void mtk_iommu_iotlb_sync(struct iommu_domain *domain, -- 1.9.1