Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp628820pxb; Tue, 2 Feb 2021 13:41:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMotwAO44+VmE3UHR5km/22LtjGl/j8DhXLmQeRlasgMczNkIpxjj8I5t2o4+sjt10cJnP X-Received: by 2002:a05:6402:5193:: with SMTP id q19mr109956edd.264.1612302119214; Tue, 02 Feb 2021 13:41:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612302119; cv=none; d=google.com; s=arc-20160816; b=NVa0ssfMWcXojyQ7CjKR9nQ96lcAdmlAf3eyH8jkNGkt1EpX4QfkCfsceRTSLpODks FFWY4SPupnfptN1Z5hpGtDbbM2bKsZ6EGh3YLvPX/vryB0P71eS5z0EqXVvmmFfSSBSj roWYi/agTCP5Lij6KMJ51MddrBYlyas/AXht4cGVhen5clbXoVWqPKN6xGU5FJluWm80 7Uo0g2gAv4G8CsMsRItVgee5rL5lx0VQM7oHCCO6FSziZaybUfqXo4+F1xEHRImJzX23 VAghtqADxW/9IRhsj3cKiaqPmgXkk0N7rbw0nzcS4chOi7La21N9Ig7beRUfU2zYxYuZ rE0w== 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=wBwXSdkATYzs8ZI1sr2qXRoA3gxWhS99c7GljzzTSWs=; b=goeMcyhKV+gi1OHF/tE3WdX1pF8NYdQv/S14H8a1vhaewihoAYCplktLQ+M+PYHQeJ IQqaGkLO0VxVsYlwPp3dQVtXW+9yUjLNafzPMr5nUlYTtlapAUPYPCOR8Qddxi4TwrCi O+alsmCca2Hh61DXMYa0dBXbjKhndHKvTWsZv8L6kvf3uoNMZY6VV7OuUjNuxg3O9hd9 dY1tm0wVldh7XDkzOGYxTtVBV8tjJI4V2R0r6+BiI9w8j3D4FBW/KbuF3X1L9hNXTWZ+ qqhQHXyLXBloC+PDfFa+w4GJHjiG7cjLpI6ZHb8G/hkR+5PYTKtuNxzi3MZMihGsdYXk tSXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rq0QnvC6; 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 v4si1918edj.37.2021.02.02.13.41.28; Tue, 02 Feb 2021 13:41:59 -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=Rq0QnvC6; 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 S232618AbhBBNgp (ORCPT + 99 others); Tue, 2 Feb 2021 08:36:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:33008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232420AbhBBNeu (ORCPT ); Tue, 2 Feb 2021 08:34:50 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 521FC64F51; Tue, 2 Feb 2021 13:34:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612272845; bh=Qc82Rs1BO/kqAuHM5fqbYivehM9Zpe/q/Rk+nnanzSg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Rq0QnvC6dVMTqTSjlBcM3j0Fae/zpps7YBL8rDHFtXiYCHsNkpgUTppGN6K4hqIrb edDS1gAiPwbetu6tWSl9Vta07jbjBtsbXymdYJVMz0BAFERuwrWqOoE8JEWlITWUym kSBu1Hvj7++Q3KhFAOn7GYFAJRobhWTnQzDhPpgPkDJBb2+vmwtgNEI1rTZfcDLk34 uH8V0g7QGutVlEEhLHM96YbjM0IeXlx42/IDhP1pbBV96U0TPX8TeQz8BzqVldtr7O 8bOnNEZUbb1tqrf/yES4UgRiBbNfflqqdQt3ypOMeBlaUFdtPWOuacG/CjCSQXYwjZ s0ZTqM/4rso+w== Date: Tue, 2 Feb 2021 13:33:58 +0000 From: Will Deacon To: Yong Wu Cc: Joerg Roedel , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Robin Murphy , 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: <20210202133358.GA17070@willie-the-truck> References: <20210111111914.22211-1-yong.wu@mediatek.com> <20210201145422.GA15263@willie-the-truck> <1612231425.2524.12.camel@mhfsdcap03> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1612231425.2524.12.camel@mhfsdcap03> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 02, 2021 at 10:03:45AM +0800, Yong Wu wrote: > On Mon, 2021-02-01 at 14:54 +0000, Will Deacon wrote: > > 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. > > > > > > change note: > > > v6:a) base on v5.11-rc1. and tlb v4: > > > https://lore.kernel.org/linux-mediatek/20210107122909.16317-1-yong.wu@mediatek.com/T/#t > > > > I've queued this up apart from patches 6 and 7. > > Thanks very much for the applying. I'd like to show there is a little > conflict with a smi change[1] in /include/soc/mediatek/smi.h. > > This is the detailed conflict: > > --- a/include/soc/mediatek/smi.h > +++ b/include/soc/mediatek/smi.h > @@ -9,7 +9,7 @@ > #include > #include > > -#ifdef CONFIG_MTK_SMI > +#if IS_ENABLED(CONFIG_MTK_SMI) <---The smi patch change here. > > #define MTK_LARB_NR_MAX 16 <---This iommu patchset delete this line. > > > This code is simple. Please feel free to tell me how to do this if this > is not convenient to merge. Thanks, but this should be trivial to resolve, so I don't think we need to worry about it. Will