Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp461544pxb; Wed, 27 Jan 2021 12:02:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwubYaTn/KSHgi85PwTP8OCvrz1uO23MvN7SEELWQOlzor1VfVJtBputjsALz9ChYKixx/o X-Received: by 2002:a17:906:4a04:: with SMTP id w4mr8158729eju.46.1611777744322; Wed, 27 Jan 2021 12:02:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611777744; cv=none; d=google.com; s=arc-20160816; b=RRQmqV/AmzlF4JHl/U7odLhMOB31Cfp446O7r0hRMNtdi9jaH6Zo1Os5l/ketCKGXT bE6putD6mWZhUy2mGOc7rYWLiw3Up7a1hX1ixkNiPTc2Ybfoqq3moasvlNIJDWzih7un 9rssdbFPZC7lUE5LNbeEYobN60cKHdqrhlAqSFJp/TqnBKsUI02B6nfRgWdaImLWLlon GsppidiEuw6WG0tzjIax64a/67xFm7IpeHMqgVAqqhoJRitS04LyYq8vKuVemXkLHbCv 9rJkWSWFriAYgiszIjKnKS6tfv7ZvpoZEAp7aALSPTrZ14JBi+4F/maqDfbXDXGpphZS pMWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=FJvTT8No1j1tPWtY33zL9VfDG+ksR2fYcgwBehDodbE=; b=lH6Ol8N23yCHf0/eObaai90LlDbffvxH/1IRsAtFNo+gWjAhYsqGe88k9es/05le+H MXR457L4iwWWoGJ3LMcdvf92RZGu82KI2ybiutQ4ewY6pWpRKT0bb7vetKYAnZnXhzdf g8e3pyVNxwjbvZ3pKA7mC3a1xq/yk2pH6/3ZQ1nST91p92+P+45y/j5phT3lOVLqOKlH oKkoYgFCynLtBFyR46QZ9VG3+qR3xDqPW+UqC5LVPjkFJBxn9fkKBnpjnGXDN7hMUCK+ wTnrCgz+Iw8P0jH5SJ5tBINksnmPANN5c9oGYEH8sSZm+bb7w90XjXJzjLSCgkB6PL3i pzhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=twPNmo72; 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 e18si1526276edz.446.2021.01.27.12.01.58; Wed, 27 Jan 2021 12:02:24 -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=twPNmo72; 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 S237002AbhA0Dod (ORCPT + 99 others); Tue, 26 Jan 2021 22:44:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:52258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727304AbhAZWZ7 (ORCPT ); Tue, 26 Jan 2021 17:25:59 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1CEA920665; Tue, 26 Jan 2021 22:25:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611699917; bh=CoU9O01KVr4DWjJVSl5ku8nkaGtSHWQMM1dUjHH4D1Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=twPNmo72uAXJ6QVBm5A2LBiUtuDjPMG42HhkdXLbE+weZFsQlg7VkaAwFA4q/UvFa 86KzGPMwOveXMNXjZGo8EeZzEuTqv3F9dmQN5N/kZdl7+Cy6OJ6eg1T7fr8Lc2HRzT m/BGqx9FZkBz0CMw8PO+fPN2XloBzUXQD81i28Msgq+LOI1IBjommGcyKhfR0d5gj6 JgHKSLMQ+d9OeAPsKBZI6XmdYud34aWreyxXvA/bi2EsXnbRNHVuHz44OBK01tILr0 xYswsSiZUrXH82JPkovBHMLXRjYNTICd0RBj/4BmnVRIJx1OBOehfmdE/wSL9kPLBV nJQv94OUZU3zw== Date: Tue, 26 Jan 2021 22:25:12 +0000 From: Will Deacon To: Yong Wu Cc: Joerg Roedel , Rob Herring , Matthias Brugger , Robin Murphy , Krzysztof Kozlowski , Evan Green , Tomasz Figa , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, devicetree@vger.kernel.org, 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, chao.hao@mediatek.com Subject: Re: [PATCH v6 00/33] MT8192 IOMMU support Message-ID: <20210126222511.GC30460@willie-the-truck> References: <20210111111914.22211-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210111111914.22211-1-yong.wu@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 07:18:41PM +0800, Yong Wu wrote: > This patch mainly adds support for mt8192 Multimedia IOMMU and SMI. > > mt8192 also is MTK IOMMU gen2 which uses ARM Short-Descriptor translation > table format. The M4U-SMI HW diagram is as below: > > EMI > | > M4U > | > ------------ > SMI Common > ------------ > | > +-------+------+------+----------------------+-------+ > | | | | ...... | | > | | | | | | > larb0 larb1 larb2 larb4 ...... larb19 larb20 > disp0 disp1 mdp vdec IPE IPE > > All the connections are HW fixed, SW can NOT adjust it. > > Comparing with the preview SoC, this patchset mainly adds two new functions: > a) add iova 34 bits support. > b) add multi domains support since several HW has the special iova > region requirement. This is looking good and I'd really like to see it merged, especially as it has changes to the io-pgtable code. Please could you post a new version ASAP to address the comments on patches 6 and 7? Will