Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4160804ybp; Sun, 13 Oct 2019 23:39:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwecr/Gg/Uc2tsS9ao7UGbt7K1m6RhVJIZCtYfREjLfccbOusaQ4O4n+AuBtBdaPx/UBTuu X-Received: by 2002:a17:906:684:: with SMTP id u4mr26165255ejb.155.1571035162433; Sun, 13 Oct 2019 23:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571035162; cv=none; d=google.com; s=arc-20160816; b=lbDZBBvPpILYMD9LL/cnMhqixm/hU8Lcl1ojr4xEoJTYjfgKzXr1UOm+P/46FJzZNA 9YkCGZ8IqSKbhnI555LU0lOcKuJJ7lJ9CMTPVKAFxJWTcvpcLpzz4ZZeyiorQZdPhWAf RQWipfMZNB13ksjsW9GpPOQ8g3KVFO2Ax1HFST421Y7ZGH6oZvQu+f5HxoVt19jgUIxj dF6CJF3Tdcl68nbWI4TVBwwafu6NApbQPYcsUhOstZ4vxrt/ggYsnzO4W4ZWoZmxOYET D1rk5QSXu2bxz0lf4aVBvPVv5ZJhn1Or/xR427UTD5MzYLLFqzWK8kpguV0WkKPT8KA2 RIQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=WI4iDnXOX+Opqjcz36fjGjTjKJUS3Vajk4KP3f3Zem4=; b=lLk+IchSQqXLiMh/MD+K2yU1vb82KvFEV9W7lRoRisnkJ3X91+mrcQ2oRPuhejAbRz pbeMQewb+Q7fMUwTB6oFd1BHmZFuSK9CzYk7I7/Z9Icif5SHUBb0xhk3kmQs+jlFww6w CjM2CKZRY6LzN+hvWeEJklMJQgEdBzjk351miqplFyz9y4GWMM6Y7b2CNjLoT8TG+Fay Yjl3ore6DKJ2yZIp+hsIGtAdSOE7FzCXlXg397ZLkJ7VUXoFtA2MJeTuY39kQ6JclaDY xCYNp/uoXUhgdEANDfckHF8SNPocurPbuLdM0wpsYjqfdd+FY1wpzcZZwzLkfFTsv/Qx PKFA== 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 e4si10502900ejd.32.2019.10.13.23.38.59; Sun, 13 Oct 2019 23:39:22 -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 S1729876AbfJNGif (ORCPT + 99 others); Mon, 14 Oct 2019 02:38:35 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:15746 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726406AbfJNGif (ORCPT ); Mon, 14 Oct 2019 02:38:35 -0400 X-UUID: 3c212a6db640499e8e73f90b78eabc5a-20191014 X-UUID: 3c212a6db640499e8e73f90b78eabc5a-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 89117099; Mon, 14 Oct 2019 14:38:30 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 14 Oct 2019 14:38:26 +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:26 +0800 From: Yong Wu To: Matthias Brugger , Joerg Roedel , Will Deacon CC: Evan Green , Robin Murphy , Tomasz Figa , , , , , , , , Nicolas Boichat , , , , Subject: [PATCH v3 0/7] Improve tlb range flush Date: Mon, 14 Oct 2019 14:38:14 +0800 Message-ID: <1571035101-4213-1-git-send-email-yong.wu@mediatek.com> X-Mailer: git-send-email 1.9.1 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 This patchset mainly fixes a tlb flush timeout issue and use the new iommu_gather to re-implement the tlb flush flow. and several clean up patches about the tlb_flush. change note: v3: 1. Use the gather to implement the tlb_flush suggested from Tomasz. 2. add some clean up patches. v2: https://lore.kernel.org/linux-iommu/1570627143-29441-1-git-send-email-yong.wu@mediatek.com/T/#t 1. rebase on v5.4-rc1 2. only split to several patches. v1: https://lore.kernel.org/linux-iommu/CAAFQd5C3U7pZo4SSUJ52Q7E+0FaUoORQFbQC5RhCHBhi=NFYTw@mail.gmail.com/T/#t Yong Wu (7): iommu/mediatek: Correct the flush_iotlb_all callback iommu/mediatek: Add pgtlock in the iotlb_sync iommu/mediatek: Use gather to achieve the tlb range flush iommu/mediatek: Delete the leaf in the tlb flush iommu/mediatek: Move the tlb_sync into tlb_flush iommu/mediatek: Use writel for TLB range invalidation iommu/mediatek: Reduce the tlb flush timeout value drivers/iommu/mtk_iommu.c | 77 +++++++++++++++++++++++------------------------ drivers/iommu/mtk_iommu.h | 2 +- 2 files changed, 38 insertions(+), 41 deletions(-) -- 1.9.1