Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp265605ybh; Mon, 20 Jul 2020 16:17:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylYVf5NjmLuGNlBYKOByqN/mToH5oz0T7Hm+EndITP9x5JX3J3UqPDHBppNz0ZWJyR21cR X-Received: by 2002:a17:906:23e9:: with SMTP id j9mr22458582ejg.107.1595287035251; Mon, 20 Jul 2020 16:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595287035; cv=none; d=google.com; s=arc-20160816; b=e8k50M7it6P/5bwhzhOqCCKhJTdWigAjA/CkvnJKa0Hhwytnl7dcL9mLGDUV1ymEjG PyT+o02O+biJam73dCdaGUX4TR+gWZ1V9W+g7/WpB/xOyvJGSYZeqNVVSTnrIBr+W2eb TGGWsgBOvKiiMbNnsgu25+jTCaNWpxhRw/wEiJmbTJ4lJRWlb7BSyoeixmlsl/b+GbuX IUaq8yVH2RcxH/EvO2fximzN4LndOyRcWblD39/ZHapM3do4Msi68eopKKSI6BN69sgt q32shAlQ4xDZesuDU/uh0XZt3RHenTG8wuY4FuBWKiwyYT5aPD/M+rb3lq+R4aBRDHhP fYGw== 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=rvvIyeI/O+OX0a15wh7KP70spFPqxmPPVr5citgRAhs=; b=0fhDG+edA9yuUGywrA4B2F+zDznhB3TRcSf1knPKYhEsCdwztzDrJwyPv6VwgMjl1U +Gg5sd8UR+VFaN7L4P1WvnZ3qRgpASF+yftIW+fnkVOOULoTjrfaDYrnFkVhTU7XPMC5 EQURUGjU1nRElL1togZuzXbPsn4weK2hTptjiuBbSxzXaBmaW3psgg1gV8E5UAz1+G0t wpJ+Wth+t5CqMcWZrX5/FWDrs3SIugOiyeUGvkxcA3wt3jkHFL7JHXlONeXqZ32/7LEL Tmbrw+xto5GEx5cH8r6pe+S3sevXUTUhK42I9fi5EDjgcZ1Fsrhnx9DAk4B1iTW2mt/5 nE1A== 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 i25si9419345ejf.697.2020.07.20.16.16.52; Mon, 20 Jul 2020 16:17:15 -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 S1727795AbgGTXQY (ORCPT + 99 others); Mon, 20 Jul 2020 19:16:24 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:35236 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbgGTXQY (ORCPT ); Mon, 20 Jul 2020 19:16:24 -0400 Received: by mail-il1-f193.google.com with SMTP id t18so14802832ilh.2; Mon, 20 Jul 2020 16:16:23 -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=rvvIyeI/O+OX0a15wh7KP70spFPqxmPPVr5citgRAhs=; b=UGRCgJKNn13PfCTux4RmUX76QQ2o+k/hYpeKsNN4ElZD1tFH4ZIdgdk3cc2d+dVOo0 EtNQk4tJRjFUJgan/MLfysa2fDdBO78xvSn+LBZbkc0a2/QTO+G3VP0ngHkmwnc/UXlB PLGAOaOPDREGvljzxBNHoTikcbjZkkTOVuK+PYBhfqvCAq0Q1pVLljgZrxmWe/kbajie QWTyBUFefStViyF0V89DgHY8SZjm2sx+EnlEmlLH4LxzVe8wkieflQxXhFy9syucvAXU eI6jo1ggu4f3kWIywuhiENLIgpUuDeYRlNV/7/FFcxUhduAof85Fe4ZqoepTULtH3OqD z/Bg== X-Gm-Message-State: AOAM5334kGTIHEixfxqawB0/Kv/xOyiwo+zK22i2OJO94JRgZJnNY+HO 4yA/xikqaG8JPqAR/3CvgA== X-Received: by 2002:a92:3407:: with SMTP id b7mr17598958ila.66.1595286983360; Mon, 20 Jul 2020 16:16:23 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id h11sm9515742ilh.69.2020.07.20.16.16.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 16:16:22 -0700 (PDT) Received: (nullmailer pid 3136375 invoked by uid 1000); Mon, 20 Jul 2020 23:16:21 -0000 Date: Mon, 20 Jul 2020 17:16:21 -0600 From: Rob Herring To: Yong Wu Cc: Joerg Roedel , Matthias Brugger , Robin Murphy , Will Deacon , 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, cui.zhang@mediatek.com, chao.hao@mediatek.com, ming-fan.chen@mediatek.com Subject: Re: [PATCH 04/21] dt-binding: mediatek: Add binding for mt8192 IOMMU and SMI Message-ID: <20200720231621.GA3106350@bogus> References: <20200711064846.16007-1-yong.wu@mediatek.com> <20200711064846.16007-5-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200711064846.16007-5-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, Jul 11, 2020 at 02:48:29PM +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 You probably want to use dma-ranges for defining these address restrictions. How is the domain-id used or needed? Rob