Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3598075ybx; Sun, 3 Nov 2019 23:04:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwSv0L56Eyg9nQobLB+ciQiukKtuIpUurQFkkcAF789NzpvbhDngc+mc+7mpvBo3f4+zHOW X-Received: by 2002:aa7:cd54:: with SMTP id v20mr2216728edw.203.1572851082949; Sun, 03 Nov 2019 23:04:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572851082; cv=none; d=google.com; s=arc-20160816; b=EpxdojukKMlO7t5QplZLsJcp1mgMoQBI/p++YYNTiRu5bYvGGO+rvLRoZSqoJTxpLz B5gAgPRe2oa8iamMRrvoeBmOrHyaGTVUD3zToV2DMxKUIK8n0bYINGUpnXVz+t5b2obS FXAYHmSY5xMp/FToaEdIk4J+rHWTqYknIK8TwWW04nBA7QzKcpCET+gPCyL/R4poyFfx QFtOTC61yr9T81TbPJ/4Wb6YVfAPt8uN2zxI9a0VLV5ZNlVzwXvW8rEEXSbMB42FDvoh TpxmIrxc4OJicC/c29Y5yxg5VEscAo3YG/i6qMM1p8Sc5+urP3GGfP7rGUkPq8OFdj3h wkug== 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=a3j1GLb3ONGcgrPvimG2M7ERiPHKwIAHl+N2AyS3n1ZsW850hukjfyZnozRsg42ZB6 1Y+C4fxgtA+r7KsLYNlKQbUOn/cNzzvFLh9GfiK6XDyXd4pq+A2W2W089apbXGkMlLeY XFlrGsUnquQw8cSPXC23dMcZcTuI8lZ7uHSltqDQnM2OlZ9Jno58FL6jqR58Ng1h7k+4 d1BWuwpvaFqzDv5AGQzGUgWsPmkLU67RKfm+O1A+Wbr459GiRS2/ynfTUM0zsdHWreur AqsbE7H6LP2Sy+/Ux/EIQ6bY6X6+Z3OY+FoTX53sq+Aulp7nynqnVT2njTqw3bFl6765 NP7g== 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 r21si10801641ejo.151.2019.11.03.23.04.19; Sun, 03 Nov 2019 23:04:42 -0800 (PST) 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 S1727969AbfKDHBg (ORCPT + 99 others); Mon, 4 Nov 2019 02:01:36 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:28369 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726441AbfKDHBg (ORCPT ); Mon, 4 Nov 2019 02:01:36 -0500 X-UUID: 42c664d86d38404a9da7b07af690492e-20191104 X-UUID: 42c664d86d38404a9da7b07af690492e-20191104 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1924999439; Mon, 04 Nov 2019 15:01:30 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 4 Nov 2019 15:01:27 +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, 4 Nov 2019 15:01:26 +0800 From: Yong Wu To: Matthias Brugger , Joerg Roedel , Will Deacon CC: Evan Green , Robin Murphy , Tomasz Figa , , , , , , , , Nicolas Boichat , , , , Subject: [PATCH v5 1/7] iommu/mediatek: Correct the flush_iotlb_all callback Date: Mon, 4 Nov 2019 15:01:02 +0800 Message-ID: <1572850868-22315-2-git-send-email-yong.wu@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1572850868-22315-1-git-send-email-yong.wu@mediatek.com> References: <1572850868-22315-1-git-send-email-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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