Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2567796pxk; Mon, 14 Sep 2020 17:46:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGmvMyb1I29+dKNtFuNenAXQjrKXKWfq/xi6dR7/LTeBtIjf6koGZLj0mQK2TwtPIJbV5P X-Received: by 2002:a17:906:914b:: with SMTP id y11mr18048740ejw.145.1600130809832; Mon, 14 Sep 2020 17:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600130809; cv=none; d=google.com; s=arc-20160816; b=DYPAdT0znlXf4PofWAECds2+3Xdpb666ZCzqGei0gaQE22cniUT4A23/lzxtknR1NP GSOjAq8nr0vdw8ZOwU0R4jMfCKsgmB2h/pXTlBcwGkjBoSyhWXee0xVqF1XxSA/2B7xB cra9I0b4NNZJr19BEt8FknkgytZMXaifHuJ/pARasv5RozAQ8lLFmYHdzykS5EoHMx2g EEWBPNGqsihK0RPnOgedDn56lQGNMSjAtE0uJVcszy2n2EBN3rpu1+LUp6lIzPJZnwbu zwmbugtZ2jslB1RvOGENqkRGbcUqSyCr1AabRrI907TTxqv8Zwv14kwyAqLbG2XExRwt uQNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ljTivD9aPg+KhnR32N2OLptR9gt/0CpuWiMcqWyJCeo=; b=F0cu10BUn6tjgSyisIEGyfUDi2HDa0tQSY80qUUYAL3BbqCEJP77MQr31JmliaHZft St22LX2ESJm57Zn5GY9iBmB1GCnOyBswChEDPrLhjGRGhHhGj67B6uyIjbz+9Wn4zqn+ bXUXKOacAk2coTEF6EMzmRN/q2j5SeugIvvkJtqvw6MRZSE00DvwL775761/V4Ns6rOq uRiyZEQyL/k7Y2KjF83eGHflKCW+2JxIDZ5L4yg4w/wxiooGuc4mnaa+M/tKg3BBQgAx 1liluB+BNVWl2fv9xP/lMtbRYwdlOjnHX7tmXI18qfrSLl05tOCFBIp38IDl9U6kBJaW OEJw== 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 a23si8091092eds.607.2020.09.14.17.46.27; Mon, 14 Sep 2020 17:46:49 -0700 (PDT) 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 S1726050AbgIOAm6 (ORCPT + 99 others); Mon, 14 Sep 2020 20:42:58 -0400 Received: from mail-il1-f195.google.com ([209.85.166.195]:38473 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726038AbgIOAmv (ORCPT ); Mon, 14 Sep 2020 20:42:51 -0400 Received: by mail-il1-f195.google.com with SMTP id t18so1393645ilp.5; Mon, 14 Sep 2020 17:42:50 -0700 (PDT) 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=ljTivD9aPg+KhnR32N2OLptR9gt/0CpuWiMcqWyJCeo=; b=nEmetuU+yJkUC5DOd9/dIK/cd462oA0l6mQ5aTpHekYQKvpgLjZjxKUSCiOFDpMQbh 2hhdV0l+QQVkesfBClXcjh3dSNRMlPdpGf7Hjwft5i6wntG/XJo5uvEy2U9K84KwVmZL u04epcJ4w82xsNhaLJxCPi7NapEl2skq43iuovegox6sPNlS37HirjPCNuOCLf3T16X1 HAsYLazyP1g7QCRAdvhorFL0tHZUW5YRXTb9e3FYUfIsLXR0hvGVW0c4KABxyYr95/oJ gHFlKgKBKEYlj+tsT5yFbTWmouOvQhAAgJOOhUs76uu+65/TJdG7cUCfG6yZKwwHPkm+ 4cVg== X-Gm-Message-State: AOAM530NkSnlqG1IJjkbMiSaku+Q9tLW+hD2ai1Kp8rc0ONofiVn2EfV JWjA8UhSq9LFdAzDHsVMzg== X-Received: by 2002:a05:6e02:eac:: with SMTP id u12mr9654359ilj.285.1600130570492; Mon, 14 Sep 2020 17:42:50 -0700 (PDT) Received: from xps15 ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id m15sm6693979iow.9.2020.09.14.17.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 17:42:49 -0700 (PDT) Received: (nullmailer pid 591961 invoked by uid 1000); Tue, 15 Sep 2020 00:42:45 -0000 Date: Mon, 14 Sep 2020 18:42:45 -0600 From: Rob Herring To: Yong Wu Cc: linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org, Will Deacon , iommu@lists.linux-foundation.org, Tomasz Figa , srv_heupstream@mediatek.com, devicetree@vger.kernel.org, Robin Murphy , Evan Green , Rob Herring , Joerg Roedel , chao.hao@mediatek.com, Nicolas Boichat , linux-kernel@vger.kernel.org, anan.sun@mediatek.com, ming-fan.chen@mediatek.com, youlin.pei@mediatek.com Subject: Re: [PATCH v2 06/23] dt-bindings: mediatek: Add binding for mt8192 IOMMU and SMI Message-ID: <20200915004245.GA591931@bogus> References: <20200905080920.13396-1-yong.wu@mediatek.com> <20200905080920.13396-7-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200905080920.13396-7-yong.wu@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 05 Sep 2020 16:09:03 +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 > --- > .../bindings/iommu/mediatek,iommu.yaml | 9 +- > .../mediatek,smi-common.yaml | 5 +- > .../memory-controllers/mediatek,smi-larb.yaml | 3 +- > include/dt-bindings/memory/mt8192-larb-port.h | 239 ++++++++++++++++++ > 4 files changed, 251 insertions(+), 5 deletions(-) > create mode 100644 include/dt-bindings/memory/mt8192-larb-port.h > Reviewed-by: Rob Herring