From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yong Wu Subject: [PATCH v4 0/7] Improve tlb range flush Date: Wed, 16 Oct 2019 11:33:05 +0800 Message-ID: <1571196792-12382-1-git-send-email-yong.wu@mediatek.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Matthias Brugger , Joerg Roedel , Will Deacon Cc: youlin.pei-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org, anan.sun-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org, Nicolas Boichat , cui.zhang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org, srv_heupstream-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org, chao.hao-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org, edison.hsieh-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Evan Green , Tomasz Figa , iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Robin Murphy , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-mediatek@lists.infradead.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: v4: 1. Add a new tlb_lock for tlb operations. 2. Delete the pgtlock. 3. Remove the "writel" patch. v3: https://lore.kernel.org/linux-iommu/1571035101-4213-1-git-send-email-yong.wu-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org/T/#t 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-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org/T/#t 1. rebase on v5.4-rc1 2. only split to several patches. v1: https://lore.kernel.org/linux-iommu/CAAFQd5C3U7pZo4SSUJ52Q7E+0FaUoORQFbQC5RhCHBhi=NFYTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org/T/#t Yong Wu (7): iommu/mediatek: Correct the flush_iotlb_all callback iommu/mediatek: Add a new tlb_lock for tlb_flush 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: Get rid of the pgtlock iommu/mediatek: Reduce the tlb flush timeout value drivers/iommu/mtk_iommu.c | 88 +++++++++++++++-------------------------------- drivers/iommu/mtk_iommu.h | 2 +- 2 files changed, 29 insertions(+), 61 deletions(-) -- 1.9.1