Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4592423ybp; Mon, 14 Oct 2019 07:07:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgbcM4PvMTzKvxUbJK58HcgMqUV9HEjyndcNup0Ia+qDL4xbJV56WCyabpjwmiKYKEM0O+ X-Received: by 2002:a50:f198:: with SMTP id x24mr29858667edl.238.1571062059808; Mon, 14 Oct 2019 07:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571062059; cv=none; d=google.com; s=arc-20160816; b=UZp4uS54QmeU6QZNiTmiKMrrmRzgo0IIpG6i6Kq+aU7s07L+E0I8M6sba389q5emQX GWptVwx6GTPOwF/k88sifqwkkIb1mrur8h1J5x8+atAmdPivfDmV9o4ma+hB47Cc8YOs hbYe3AzJNZUTmTiF8/yQ3oJed0FSQ4hk+fA65wCGy8lKVIta9wLOU2GmVuwIgK0smNsg c1+oywzhHX4uiZYVS+d4LSYn+PSZoj3amxLeJh5rcGdLjNvKcaOa0bMFHOAdxESBf4sj kOL6qmiiVApxMcBA1kR0g9k4b31/XLaBrY0OfjQ8mzWfoUHkdOU2sBGBYeima+i3Q5dJ p/yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=+CDrVWJOCIDaZnQIAgRxdFqEZCXWvwkdiadJO/X+zgA=; b=rZVo2Q2tcCqZiXZORl1KZbKwLFFIou5188AurBFvN9xA8ta2y4J7/8f+nvbSatQYkI cKm0d6D/TLRqhAcqgnaSLw5lL3KiFp4sf9TVA+1TuMNpCKlc1glb+Gma+jHYSleGsRkJ zTb++pAwiSjaS4I9jhzoFuZjBIZAopBl+n6qmTdRpZboUuZ5oaEwJ1Ec0FnOs8q+W1bc Lz9idi3QmcBrU2tUt9MxFX7LHmtQV5OCDkK0K11KT+UYQTkawYpHnCGRikw7BCP/55wJ dl4MPLGZfe5l5IQdKbUFKCiSrrUlCr9jWA2IBP+Bm5Wa/qV1LqyNUkEGfC92W7+0FH9n ui8A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t49si13336202edd.198.2019.10.14.07.07.16; Mon, 14 Oct 2019 07:07:39 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732359AbfJNOGx (ORCPT + 99 others); Mon, 14 Oct 2019 10:06:53 -0400 Received: from foss.arm.com ([217.140.110.172]:45052 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732337AbfJNOGx (ORCPT ); Mon, 14 Oct 2019 10:06:53 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D47C4337; Mon, 14 Oct 2019 07:06:52 -0700 (PDT) Received: from [10.1.197.57] (e110467-lin.cambridge.arm.com [10.1.197.57]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8FFF63F68E; Mon, 14 Oct 2019 07:06:50 -0700 (PDT) Subject: Re: [PATCH v3 1/7] iommu/mediatek: Correct the flush_iotlb_all callback To: Yong Wu , Matthias Brugger , Joerg Roedel , Will Deacon Cc: Evan Green , Tomasz Figa , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, youlin.pei@mediatek.com, Nicolas Boichat , anan.sun@mediatek.com, cui.zhang@mediatek.com, chao.hao@mediatek.com, edison.hsieh@mediatek.com References: <1571035101-4213-1-git-send-email-yong.wu@mediatek.com> <1571035101-4213-2-git-send-email-yong.wu@mediatek.com> From: Robin Murphy Message-ID: <9aa2e356-d234-df21-7203-ce569c232e02@arm.com> Date: Mon, 14 Oct 2019 15:06:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1571035101-4213-2-git-send-email-yong.wu@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/10/2019 07:38, Yong Wu wrote: > Use the correct tlb_flush_all instead of the original one. Reviewed-by: Robin Murphy > 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, >