Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4235658pxu; Wed, 9 Dec 2020 11:39:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+iaT8AcPQ4IzNQ40kjLorS0LsV6DiOxiZDdcSpBoGulZTB2pBbDfSt/v+WeoumMFFLGo8 X-Received: by 2002:a17:906:5e0f:: with SMTP id n15mr3422332eju.459.1607542771147; Wed, 09 Dec 2020 11:39:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607542771; cv=none; d=google.com; s=arc-20160816; b=WjcC+eV3A2A6eeoxlDwZx0fDQ/6PTJUJswG2uC3dhtK2YBYWv/urZefaZLtxvc8kSa S8Gy8ciuSngpJnsCt/XvnvpMVt2vNsBSJDEDCGaKN7IJ8z4NOFpVRK3Q4hg7555TQNit SXc7wa2DTSJq2lWqLeGn+WE7Jqbapoj8WfVyKVFSE6KbpF0JyL11Ul8OxeCuWMPvLenG SpJgHDKI+vDI1WHvcll8I10IgVP/9LDbt2+UP+cOcrsxANLCLwf5tpGaO0akBH8xYT0x 0bj7IE3QdBvuqyKGdsuKzh4Elk1Om9GsgVr0OWdToPBDZ1xOzqAtYCrJ72Xb3yoelTQW /e+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=vQr4kM4RX4rAp5j/qKDW+npGLeRnQffxCAXDPYe3mkw=; b=dADM5CchJJaU8ooWqbKCBEuGCiydtLw0XrUjlEto0cqeGa4EToYNXsseRejogg5Xpu FcjtjPFdnuE2HaExxkcB1I2lkfaupCqlAlwP01SrlHPjakyMVqFPLisa2m+a7EHO19zf oItTOFxWLlZgV9tUZ4jdEqPQSJBrnX/bRYU3aeI+NQBGu5Gatyo35mlIHbmizqprKK0N hg0hDDKBvDoq3Z39wwp6d9p9wkswsFxZFtSqjt1pmb/DmwWjKRZIq24T+FNcrb0F27wk uz4W6MBvf19kMuzAlTSGcRZUZmJhMR1C9y1WMJENeDqsjG4Ff2mkchpCFwKMcyiF4F4q 1NaQ== ARC-Authentication-Results: i=1; mx.google.com; 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 cb16si1272095ejb.392.2020.12.09.11.39.09; Wed, 09 Dec 2020 11:39:31 -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; 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 S1731262AbgLIMN4 (ORCPT + 99 others); Wed, 9 Dec 2020 07:13:56 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51326 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730428AbgLIMNz (ORCPT ); Wed, 9 Dec 2020 07:13:55 -0500 Received: by mail-wm1-f67.google.com with SMTP id v14so1271019wml.1; Wed, 09 Dec 2020 04:13:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vQr4kM4RX4rAp5j/qKDW+npGLeRnQffxCAXDPYe3mkw=; b=IQFAiiY99bvex3Ai8izFFG406qznuDIy/9hkhqx1XuYTts4PIu+OPyC5zybbs4+Qw+ o9L5WvOEdSfdBfkyPmjFaqMPM+wIGCrcPGYxLMjIIRGUtD24e7/B/V26HrbDrVlGTaPs M7YEZSDE1iYgCfbSBz1WxXAAWhsl0Wp/MAtJujylURz9FNn1NzmQJPFVVmvbz2x5D3HF HqwYFQW+MXodBmIYxN+IZn/mcWTP4rSGAYz0W+VbL6MnxTwrMfJ6rVvCdguOkrVSSC/0 KVzvlDgLamnmjTIJUpMoe5pF+lZyitHy38DWyIwuuPFB4QXvEQHyZK5rNKCOUFsJ9YfC CC+w== X-Gm-Message-State: AOAM5305tf94h6uGKbGZefsQGDV+WVXYTXq4gA9Oo3dnIFaEg90+S9GS NLmhUERpCaqUaYaGy/U/Oi4= X-Received: by 2002:a05:600c:22d9:: with SMTP id 25mr2437791wmg.158.1607515993634; Wed, 09 Dec 2020 04:13:13 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id v20sm3378527wra.19.2020.12.09.04.13.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Dec 2020 04:13:12 -0800 (PST) Date: Wed, 9 Dec 2020 13:13:11 +0100 From: Krzysztof Kozlowski To: Yong Wu Cc: Joerg Roedel , Matthias Brugger , Rob Herring , Will Deacon , 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 v5 06/27] dt-bindings: mediatek: Add binding for mt8192 IOMMU Message-ID: <20201209121311.GB25951@kozik-lap> References: <20201209080102.26626-1-yong.wu@mediatek.com> <20201209080102.26626-7-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201209080102.26626-7-yong.wu@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2020 at 04:00:41PM +0800, Yong Wu wrote: > This patch adds decriptions for mt8192 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. > > mt8192 M4U support 0~16GB iova range. we preassign different engines > into different iova ranges: > > domain-id module iova-range larbs > 0 disp 0 ~ 4G larb0/1 > 1 vcodec 4G ~ 8G larb4/5/7 > 2 cam/mdp 8G ~ 12G larb2/9/11/13/14/16/17/18/19/20 > 3 CCU0 0x4000_0000 ~ 0x43ff_ffff larb13: port 9/10 > 4 CCU1 0x4400_0000 ~ 0x47ff_ffff larb14: port 4/5 > > The iova range for CCU0/1(camera control unit) is HW requirement. > > Signed-off-by: Yong Wu > Reviewed-by: Rob Herring > --- > .../bindings/iommu/mediatek,iommu.yaml | 18 +- > include/dt-bindings/memory/mt8192-larb-port.h | 240 ++++++++++++++++++ > 2 files changed, 257 insertions(+), 1 deletion(-) > create mode 100644 include/dt-bindings/memory/mt8192-larb-port.h > Acked-by: Krzysztof Kozlowski Best regards, Krzysztof