Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp587499pxb; Wed, 27 Jan 2021 15:59:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2JjtC3ls0dsUH50i+C1HDdmC8dacLBGynAQM8RFZCnzvuKHZjojK88/MAtoyiwsMfo1MG X-Received: by 2002:a17:906:f18c:: with SMTP id gs12mr8696673ejb.422.1611791944096; Wed, 27 Jan 2021 15:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611791944; cv=none; d=google.com; s=arc-20160816; b=sQwnfxfSnHWWS3j/racLQgd0ScqlYX6ed2QcqHY83h+80mqrcCdUws0reUQvvk75g7 qQRqkE7NuQfRWCJLvUM1YmIKgnqA2ZrWAv0Dv+6+OEEmjTG9ZLXw+ZVT7dMDV6bnWuxD jPlWCguYOMkm3ynTxdRJYqtPJcqH+tGs84XUYK0LOaBgH2V/530EALWW6O77tiFH4xmS KSCZy8LA+gcHG9KNoMJEDVNdS7dQLLWd0boA2gFIiD0dgiy20tBwQFSMVxVbxlna0BIO G5IYGapgysYOP/PmNlHOJDRWUVqRpU0Kl8mwvtwCCts5BY9XdrFLqDUrSV4UosODekqc Jt1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BmRgDxdUghgOb7By1UdQEiy0PJspEiEaAgoyqmAwAic=; b=rJQjjK9CYyZXqFSo+a/pUJPZR9A/fzFx64fPjCBjO8OmqXWQ3dpLAQSdOltHLvccVm 4aawan9ZbbOhWTIfB+UUJkZGQxI3I2uq3U1FsEjbOA8U/bpOX8ZemKUmskMKNT8FUPDz DRpnasU0E7Bp7ZAPVoqG8sWqexrEMDn0nytAQOdCaVLxYxavJdNiCOyZg6rizmLSryn9 ypohmOylagToXcFx7P5eslCpYqlLUeWO9j5UyGpVa7YjpNLbQqQsDwop56v9fV3ejljO RGHej4m+2GiUqfSDr0YuJhNVVu6+oGIBj8m742CsW3JscS2A44nXW31KUQCEpIXwBjsC 3/vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VNuRicZm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw11si1448043ejb.414.2021.01.27.15.58.39; Wed, 27 Jan 2021 15:59:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VNuRicZm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238233AbhA0NXE (ORCPT + 99 others); Wed, 27 Jan 2021 08:23:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:57838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238241AbhA0NUl (ORCPT ); Wed, 27 Jan 2021 08:20:41 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 52CDF207A2; Wed, 27 Jan 2021 13:19:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611753600; bh=inUC5PP/mCtOcJb9zEFFxMqaSkScQIwSvgVH1JRqWvI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VNuRicZmVe/PskXlJzjLEJ722ZnXFAQLGeRAKTwdR9iqt8/1zUf0zHi0a93TqOGkP rd8J65szwWJe+FtycVSdjA/Pp/AKW60v17pMS7LryT8DkN5iWh0XRN509189hWu1NC jOXWisvo/4jyP2t9Bd+lGFriZvCvIB8ss7aB45OJw7wtGKw+k4zm3ftZh65z5ODLxm 1Ol1KFwT6HKrPc7oGrdIdPgYUU49minUmwqG3Q3rdt0Y+1iKUtoXMA7U/bgxniSlHS bzV8KHX8UUQSGKM4SAl1HSQgAXL1RXse2L7wLfmgvCLY9frBzkvDeDYcOMrLBPNXuZ qP3grMuikAOow== From: Will Deacon To: Joerg Roedel , Yong Wu , Robin Murphy Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , anan.sun@mediatek.com, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, David Laight , srv_heupstream@mediatek.com, Krzysztof Kozlowski , Nicolas Boichat , chao.hao@mediatek.com, youlin.pei@mediatek.com, linux-mediatek@lists.infradead.org, Tomasz Figa , Christoph Hellwig , Greg Kroah-Hartman , Matthias Brugger Subject: Re: [PATCH v4 0/7] MediaTek IOMMU improve tlb flush performance in map/unmap Date: Wed, 27 Jan 2021 13:19:53 +0000 Message-Id: <161175074760.1106263.14591124622667700357.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210107122909.16317-1-yong.wu@mediatek.com> References: <20210107122909.16317-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Jan 2021 20:29:02 +0800, Yong Wu wrote: > This patchset is to improve tlb flushing performance in iommu_map/unmap > for MediaTek IOMMU. > > For iommu_map, currently MediaTek IOMMU use IO_PGTABLE_QUIRK_TLBI_ON_MAP > to do tlb_flush for each a memory chunk. this is so unnecessary. we could > improve it by tlb flushing one time at the end of iommu_map. > > [...] After discussion with Joerg, I'll queue this (and hopefully the next posting of your IOMMU driver) along with the Arm SMMU patches, and then send that all together. Applied to will (for-joerg/mtk), thanks! [1/7] iommu: Move iotlb_sync_map out from __iommu_map https://git.kernel.org/arm64/c/d8c1df02ac7f [2/7] iommu: Add iova and size as parameters in iotlb_sync_map https://git.kernel.org/arm64/c/2ebbd25873ce [3/7] iommu/mediatek: Add iotlb_sync_map to sync whole the iova range https://git.kernel.org/arm64/c/20143451eff0 [4/7] iommu: Switch gather->end to the inclusive end https://git.kernel.org/arm64/c/862c3715de8f [5/7] iommu/io-pgtable: Allow io_pgtable_tlb ops optional https://git.kernel.org/arm64/c/77e0992aee4e [6/7] iommu/mediatek: Gather iova in iommu_unmap to achieve tlb sync once https://git.kernel.org/arm64/c/f21ae3b10084 [7/7] iommu/mediatek: Remove the tlb-ops for v7s https://git.kernel.org/arm64/c/0954d61a59e3 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev