Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp61595pxv; Tue, 29 Jun 2021 23:29:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGbygkmghn/cKOg52PBectz+POHj3Qyn0mQr+zbayTRDO67Pviu9D2qDDH7i6dcRJBndD8 X-Received: by 2002:a05:6402:510d:: with SMTP id m13mr44121994edd.179.1625034583731; Tue, 29 Jun 2021 23:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625034583; cv=none; d=google.com; s=arc-20160816; b=oNJAUchotlgdQ+Ez4MlEdWi5Ygwrg0u2pxzhFpj/Qb2B0+llsObDrPioQqTrRDf3sX VAUJ9dHbr0A7nujZ3odT8cILMVMpHl8nu4CVgCmam8R+3F3yhLuECe3Nekyfrv3mCLgN xIiS+G8gvCb6H4EinRrUK0rR0CdIRa+qSmpe8TFvBTUGSVffRw4fMyNYgJuWFisoICeg wQSQ5u6QZyaOVmTGYPX0STMawW6LCVWurIfip/t33crTxYyrMxxyDLaYjCO8Gx+v2qkV 5S7tIkoKH1u4ha6N4SJXT8aJtkOFkui7+0FRJgH/Q4W64IVcLvazfDKSqMU44tEXA1BT rnmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=2nkD+uJbpxO3bUeNVNJ06+nPXq3al3hbepVix2nCh4U=; b=ISz0EHtsnqg36PtNL20Ca5tVgqxaOX/C+WQYXJ+2YgNJyr8/VH+ZVtReiXd4jiWgbW ee9CRHzTYXHtAs/8r1uerZBa1Hoer/HuYN2NqynZ5aVPN9DwEoEKj8AT55tkS8YR192b GPxy2O0wO8Y775Bfyj3mw3Z1xMyLIDRedTW5HGeoJzol4pP7ozewxk2SMwL1KCKyneJb hHK1r8AmwNn0OVbNurQhb9+MIW97nocUxsFPwntE2l3R0H8URRGJBUzgBzMr0KNl8bGY huuiZqQNUFBShmE40D4+GlEPkXAXkmIgnnCiTzOsR3XeN3V/XVQMp2lq/bJhqLy0TmuJ Hl8Q== 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u20si20019290edv.439.2021.06.29.23.29.19; Tue, 29 Jun 2021 23:29:43 -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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232445AbhF3G3o (ORCPT + 99 others); Wed, 30 Jun 2021 02:29:44 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:55753 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232018AbhF3G3o (ORCPT ); Wed, 30 Jun 2021 02:29:44 -0400 Received: from mail-ed1-f70.google.com ([209.85.208.70]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lyTgo-0007FV-IG for linux-kernel@vger.kernel.org; Wed, 30 Jun 2021 06:27:14 +0000 Received: by mail-ed1-f70.google.com with SMTP id y17-20020a0564023591b02903951740fab5so577122edc.23 for ; Tue, 29 Jun 2021 23:27:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2nkD+uJbpxO3bUeNVNJ06+nPXq3al3hbepVix2nCh4U=; b=L7rs+0KHRHqSuMYex5lqYZkvgZ16JYE/kw2HS0LchMR+pylBd20jy9P9p1d5RDjceF k/kGWmCWDRfsJ39DjGj5coOTTC1AmEKnHe3qVhBqUV1ua/TOfY2rOFicUW4045Evdl6h kQM5yC9SdUd1nL/yIzXu2jeyr7VwCgO0zHOujvj6BHBeSnYcGJKZY9te9cIU5CwpHsVR Etv2LeYCL7vqUS/+7tbbsupD2Iv04PDmDwhZD9b4CQd4Bqm7PTe15sSNUKjtWdWtCEw9 qfDnJ0K6NM9bzREPRktFVEHxy5uVEqyqgWd+8hGj8mchh/hDPYFakAiI8w9oSxY9iNlC WZIw== X-Gm-Message-State: AOAM533ssUCFbPIhcFQsP4uPRdo0PqjrUTYgVPF6x5Oi4c6pau2BlX3A /YP6e8EqFBoSy4+PSPxos6SqVjmhIskgZVVtRoiX4QE39ZIhXQoWMo5jACe92hIZ8f9hoZ4F90d H++cbTturFTgC50mS3Lmii9hYbCJOjDBkRr/kjJnrnw== X-Received: by 2002:a05:6402:10c3:: with SMTP id p3mr42666255edu.175.1625034434318; Tue, 29 Jun 2021 23:27:14 -0700 (PDT) X-Received: by 2002:a05:6402:10c3:: with SMTP id p3mr42666243edu.175.1625034434224; Tue, 29 Jun 2021 23:27:14 -0700 (PDT) Received: from [192.168.1.115] (xdsl-188-155-177-222.adslplus.ch. [188.155.177.222]) by smtp.gmail.com with ESMTPSA id g8sm2791773edv.84.2021.06.29.23.27.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Jun 2021 23:27:13 -0700 (PDT) Subject: Re: [PATCH 02/24] dt-bindings: mediatek: mt8195: Add binding for infra IOMMU To: Yong Wu , Joerg Roedel , Rob Herring , Matthias Brugger , Will Deacon , Robin Murphy Cc: Evan Green , Tomasz Figa , 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 References: <20210630023504.18177-1-yong.wu@mediatek.com> <20210630023504.18177-3-yong.wu@mediatek.com> From: Krzysztof Kozlowski Message-ID: <24f3e157-da9c-d353-e5ae-5dac9e7d9c1d@canonical.com> Date: Wed, 30 Jun 2021 08:27:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210630023504.18177-3-yong.wu@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/06/2021 04:34, Yong Wu wrote: > In mt8195, we have a new IOMMU that is for INFRA IOMMU. its masters > mainly are PCIe and USB. Different with MM IOMMU, all these masters > connect with IOMMU directly, there is no mediatek,larbs property for > infra IOMMU. > > Another thing is about PCIe ports. currently the function > "of_iommu_configure_dev_id" only support the id number is 1, But our > PCIe have two ports, one is for reading and the other is for writing. > see more about the PCIe patch in this patchset. Thus, I only list > the reading id here and add the other id in our driver. > > Signed-off-by: Yong Wu > --- > .../bindings/iommu/mediatek,iommu.yaml | 14 +++++++++++++- > .../dt-bindings/memory/mt8195-memory-port.h | 18 ++++++++++++++++++ > include/dt-bindings/memory/mtk-memory-port.h | 2 ++ > 3 files changed, 33 insertions(+), 1 deletion(-) > Acked-by: Krzysztof Kozlowski Best regards, Krzysztof