Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8559441ybl; Thu, 16 Jan 2020 19:35:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyWCbIAwxasyuBZDP0jsjHrtW/kMDtz7eZjkvIAlmmQ0I1DNdjZ+7X5Uo0UXRjZ35JxJ3SA X-Received: by 2002:a9d:634e:: with SMTP id y14mr4768444otk.162.1579232130437; Thu, 16 Jan 2020 19:35:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579232130; cv=none; d=google.com; s=arc-20160816; b=slHV50Ye7rThVjBYKHNmkzEMVJQSLJhmgdnH5+2cNXYjeiOk7b2TDkCJojw56ZJj9J zljU4oefR4yfNuGLkjKdEEF8YCOs9Efxh1PoXEUFqAp4Ll7rsO/lpjtzZllDxnp1D4ys Qno+iOcRT6+PC7btxonJ9RrXP35YsEG9a/iXDbCvMJEs8Qe7Livy0HOv+fTYN3Q9nrg2 ZF6AlTSGdr07OSrf5KIefXkywS1OGvyPHiCDliTgNOfAxXSj02xPO7PKdukdoaPjAvFX gwCqooSmpqCvw+TApCglY14sTSImQjXSQnd84tCiBnOQuOFn4KpCmVaPgEEAhUhfOGSH I4qw== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=f3fsE5nVity0OmJ6MJ0UTP3N4PEKFr5Pd3zzQq4p030=; b=YfvR4s+z8ZsU8w4EG+K+iLuTNnzm/G6XFaF10TL4UlfhKvYu8s6NRTiE55DhIXajMY ONWXsY55z7ssorQOYdqRaanRLyWO+nujXC3FlAjeVwWlTVf4Hib4bPQWLk1oWtvhmxhE cFiUNkZWyQE4bZ1Xb1fpCA4hChDLA58GwAOeu4Fm2WhTLgiN4SxbKcRF+XMvRIENBpJO GVfZC6TfM6wsmhEkslITTWlEPSxLH/1IO2btiqtYx4tD6lhtuGxz/wM4m9Rg+Pu9qQ9f kurvFc9fxCn9exJ7hEDIjJ4UknA+42F49MCEdfLKw6W0GQF6OOBKBVgfOPx9mecKHYAG 3WPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mxBYxucZ; 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 o20si13761703otl.60.2020.01.16.19.35.16; Thu, 16 Jan 2020 19:35:30 -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; dkim=pass header.i=@kernel.org header.s=default header.b=mxBYxucZ; 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 S2390239AbgAPXmj (ORCPT + 99 others); Thu, 16 Jan 2020 18:42:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:57048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388859AbgAPX02 (ORCPT ); Thu, 16 Jan 2020 18:26:28 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 899912072B; Thu, 16 Jan 2020 23:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579217188; bh=OQQauq5k3SzDeIr61k/kMJla6O/tXeJ41+844kMTTaA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mxBYxucZHRB3pMQb1Rm3qSL7q1z3dchnNYjpjCgKaNGERwRZXef/gwXMY2FlAZ33C a4X7yRPx7ZQZP+otP6BUQEsuedmdD/DfKns0H/C1JNC3LiI2YM6Wb+4sazO0a+u85n 6ASD/eu91ZKKU9O5TyxdaOgtdbAn/Rpvk/jxSbiE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yong Wu , Robin Murphy , Joerg Roedel Subject: [PATCH 5.4 159/203] iommu/mediatek: Correct the flush_iotlb_all callback Date: Fri, 17 Jan 2020 00:17:56 +0100 Message-Id: <20200116231758.662329101@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200116231745.218684830@linuxfoundation.org> References: <20200116231745.218684830@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yong Wu commit 2009122f1d83dd8375572661961eab1e7e86bffe upstream. 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 Signed-off-by: Joerg Roedel Signed-off-by: Greg Kroah-Hartman --- drivers/iommu/mtk_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iommu/mtk_iommu.c +++ b/drivers/iommu/mtk_iommu.c @@ -447,7 +447,7 @@ static size_t mtk_iommu_unmap(struct iom 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,