Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7128785ybp; Wed, 16 Oct 2019 04:19:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLkDTmAkLrP82XXZDwHQGuC+dUGirUkaqeGDhPJxf1mugLWq2y9gvZ9nU0bp2tVJMcfmKv X-Received: by 2002:aa7:cfc2:: with SMTP id r2mr26673195edy.229.1571224782625; Wed, 16 Oct 2019 04:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571224782; cv=none; d=google.com; s=arc-20160816; b=gvoN1aTBi0wIdP8z2+7FLSKVAxsS97B0B7nv9eUysLWgE1Y8/XoLeFH/ltkYSgz8xK fa3HcP1YMjWgr50jI4buJUHktXY6VRVV71N1LIIKkykWH005Q7f64av7uX8g9rvhKF4B Fyz9DTmjHURf7uZQTIdl6VLwLk5gCRX1x4C0VScgO3C62sNDtYo8VpJp+zwNu2xOjB/u BuORINYJC1u+q56mRjOgGuYHmjvKaXulGJD8tifgPMeilj2faQzqn3Md1CQs0Vvf+FVf /R2JXALEPH27wvpNRIXJXd2khurXzirgSWvWx9lW4hIqhacjG1YejG+izUy6qsqwDsaX i1NA== 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=DXT1vGven0DeAcDlrW6OFLqksy02zm8B20BDwxjVjho=; b=cOsjAJSadLiXHTwme+68xOFqc84vwBXHNhbNLpKNQQ7ztWU/OrZF0KaW/cUXqpMIKC mYonaTPILM4onazsE/c5Zun03OaI4P37OUBDAbyO3qub7ISp//y8+AeP/jrbB6kzvuNu bp410DERrdiSOreC/k5X0jD9vl6QgcV9YJvBFSx3ic43Nbpua7W8OKymu2HK9gTvimuc ICGhiMjmz+gvUXcNJm7kLHBFuN0iIqd9InsWzPU3zBblM2VdLLK8Xw/oOVErGdc7+GnR A0iEgVpDmwnm8YEJ6v9NNn5iNAohe41o7I7Z99Ludnsfzt3q686r1b2Wo8VEOLiB25SR uxCA== 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 b3si14834018ejq.45.2019.10.16.04.19.19; Wed, 16 Oct 2019 04:19:42 -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 S2403781AbfJPDdi (ORCPT + 99 others); Tue, 15 Oct 2019 23:33:38 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:2614 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730211AbfJPDdi (ORCPT ); Tue, 15 Oct 2019 23:33:38 -0400 X-UUID: 19aecca2c5a2472c945fb5ebdcc07ad8-20191016 X-UUID: 19aecca2c5a2472c945fb5ebdcc07ad8-20191016 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 48171253; Wed, 16 Oct 2019 11:33:33 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 16 Oct 2019 11:33:27 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 16 Oct 2019 11:33:26 +0800 From: Yong Wu To: Matthias Brugger , Joerg Roedel , Will Deacon CC: Evan Green , Robin Murphy , Tomasz Figa , , , , , , , , Nicolas Boichat , , , , Subject: [PATCH v4 1/7] iommu/mediatek: Correct the flush_iotlb_all callback Date: Wed, 16 Oct 2019 11:33:06 +0800 Message-ID: <1571196792-12382-2-git-send-email-yong.wu@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1571196792-12382-1-git-send-email-yong.wu@mediatek.com> References: <1571196792-12382-1-git-send-email-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: BDD725E7AB20C2364C197E8B001FBC0EC27465FEDC83224779F452A2E0202FC82000: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 Reviewed-by: Robin Murphy --- 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