From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E454EC33C9E for ; Mon, 6 Jan 2020 21:57:26 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B1F882080A for ; Mon, 6 Jan 2020 21:57:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B1F882080A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 7613D22744; Mon, 6 Jan 2020 21:57:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zkC4eo4ul6ZZ; Mon, 6 Jan 2020 21:57:25 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id 99443204C8; Mon, 6 Jan 2020 21:57:25 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7A3E8C1D84; Mon, 6 Jan 2020 21:57:25 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 785CDC0881 for ; Mon, 6 Jan 2020 21:57:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6636F22744 for ; Mon, 6 Jan 2020 21:57:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GQSlQdCC8tjt for ; Mon, 6 Jan 2020 21:57:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-oi1-f194.google.com (mail-oi1-f194.google.com [209.85.167.194]) by silver.osuosl.org (Postfix) with ESMTPS id 942CD204E4 for ; Mon, 6 Jan 2020 21:57:22 +0000 (UTC) Received: by mail-oi1-f194.google.com with SMTP id p125so14771207oif.10 for ; Mon, 06 Jan 2020 13:57:22 -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:user-agent; bh=CGQuR1M/qYi2xyMJHlEfzvhIn09Q2tETaZrs1ID5PBc=; b=oi1yqs9uP+Nht6yPjTKk46an0lXYRuVmdWmRpkx6AYfsK6+bbujera46EbSfgG3nSW 8chOSpSTEdDLD9I+NTJlZeOjUyjMW6NMXcOiTZux7ksylCjxi9M2x737j4TkOPYtv7XP BPdhibFxgKh4fATRwJmbPsH5dHzD2aZmLWfO3XJi7URXnIoUKUk8lSAIfzHKUOeO/rfL FyD+G382tokwuTxjny1jARj1e2iCEV675pviFf43d7AP9DH8temeB7ae6XEtQ5EH0MeC VjqfWbB1yqfppoOhzedqj47fxKDk5co/SQgoknweBTXf0nfzEpqE8KJGA3wImDbhEyQ1 x8kg== X-Gm-Message-State: APjAAAW+7sPZ+tDUxUANMn8U0vEXXmzzNplvVUljD+M6PrWbtuViTk4l m1RUK/f3kZBWyz9lslCzU5VdrRg= X-Google-Smtp-Source: APXvYqyyWyaG8U3PiypD7qSHNuVmLE8x4HegqGVKklMekG+GYHSaMvJmCO0LsBrTMi1etocr0nGOhA== X-Received: by 2002:a05:6808:ab1:: with SMTP id r17mr5969659oij.141.1578347841257; Mon, 06 Jan 2020 13:57:21 -0800 (PST) Received: from rob-hp-laptop (ip-70-5-121-225.ftwttx.spcsdns.net. [70.5.121.225]) by smtp.gmail.com with ESMTPSA id d7sm18870815oic.46.2020.01.06.13.57.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 13:57:19 -0800 (PST) Received: from rob (uid 1000) (envelope-from rob@rob-hp-laptop) id 220d32 by rob-hp-laptop (DragonFly Mail Agent v0.11); Mon, 06 Jan 2020 15:57:16 -0600 Date: Mon, 6 Jan 2020 15:57:16 -0600 From: Rob Herring To: Chao Hao Subject: Re: [PATCH v2 01/19] dt-bindings: mediatek: Add bindings for MT6779 Message-ID: <20200106215716.GA31059@bogus> References: <20200105104523.31006-1-chao.hao@mediatek.com> <20200105104523.31006-2-chao.hao@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200105104523.31006-2-chao.hao@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Anan Sun , devicetree@vger.kernel.org, Jun Yan , wsd_upstream@mediatek.com, linux-kernel@vger.kernel.org, Chao Hao , iommu@lists.linux-foundation.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Cui Zhang , linux-arm-kernel@lists.infradead.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Sun, 5 Jan 2020 18:45:05 +0800, Chao Hao wrote: > This patch adds description for MT6779 IOMMU. > > MT6779 has two iommus, they are MM_IOMMU and APU_IOMMU which > use ARM Short-Descriptor translation format. > > The MT6779 IOMMU hardware diagram is as below, it is only a brief > diagram about iommu, it don't focus on the part of smi_larb, so > I don't describe the smi_larb detailedly. > > EMI > | > -------------------------------------- > | | > MM_IOMMU APU_IOMMU > | | > SMI_COMMOM----------- APU_BUS > | | | > SMI_LARB(0~11) SMI_LARB12(FAKE) SMI_LARB13(FAKE) > | | | > | | -------------- > | | | | | > Multimedia engine CCU VPU MDLA EMDA > > All the connections are hardware fixed, software can not adjust it. > > >From the diagram above, MM_IOMMU provides mapping for multimedia engine, > but CCU is connected with smi_common directly, we can take them as larb12. > APU_IOMMU provides mapping for APU engine, we can take them larb13. > Larb12 and Larb13 are fake larbs. > > Signed-off-by: Chao Hao > --- > .../bindings/iommu/mediatek,iommu.txt | 2 + > include/dt-bindings/memory/mt6779-larb-port.h | 215 ++++++++++++++++++ > 2 files changed, 217 insertions(+) > create mode 100644 include/dt-bindings/memory/mt6779-larb-port.h > Please add Acked-by/Reviewed-by tags when posting new versions. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for acks received on the version they apply. If a tag was not added on purpose, please state why and what changed. _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36FC9C33C8C for ; Mon, 6 Jan 2020 21:57:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EA67D2081E for ; Mon, 6 Jan 2020 21:57:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="eR6Bs9p1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EA67D2081E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kqXuLLJOaMgTXHCCyjAxNtBbwwxMgQUIAc7UB+GGzY8=; b=eR6Bs9p1H1Z2Kr 2K0n/g9ZdeOM/frpLPuU/cTj1Mq+PMpDU+P71rF9l1nwG0rttT3qDaUUIVgVwaQVD3AXSvxj7fHa4 xMCgSq6orSe1kEHgF9wkN4g1QH0CSaDpRpFUDrfLTUsAWe2S5MADEaZoR/mMzXWZeOrd0p+7EyqOc MlaeooqK+odUM+ivSAw7wbBgpG0PU1p8yrb7l7NN95PLJZL0wc/E1ZFjr3ylePoLZHhQOxU01xbwV vmUYNvmHgLj6JzzNYZtYmDuAVKIpj7foIN1xNSwVLDxOqTX3AWOymZSWW1ocDALUFT62x51GWPczq 1gF70yfigPNICC7IzT1A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ioaNR-0007j6-IA; Mon, 06 Jan 2020 21:57:33 +0000 Received: from mail-ot1-f68.google.com ([209.85.210.68]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ioaNF-0007Xl-Nl for linux-mediatek@lists.infradead.org; Mon, 06 Jan 2020 21:57:23 +0000 Received: by mail-ot1-f68.google.com with SMTP id d7so69091480otf.5 for ; Mon, 06 Jan 2020 13:57:21 -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:user-agent; bh=CGQuR1M/qYi2xyMJHlEfzvhIn09Q2tETaZrs1ID5PBc=; b=dQZhWRxzesL64NKVhN9EiHwg8IStl8hkmgVyMU27A0yA8dqXzvZ0J9HDWh/BUgjvSn krqbZ0zIS94qpequ8X9q+qTD8AMjxT3aw7AD8eTEUDOgEF73vgIpUvW3M7Y4QKFR3yI9 8siS9o9J1eynYz304Js7xjXs6fxX3AOtjEnI6hlPZuCzAsJShQrUZoA6oUUqagHL1GfE oIbdYgaq1XX/0TGuOmX4pmWakzjfqGKOdHJdlw87nEcqx9pJOAE0CIhxgTd4Pv6IsXsl Fr3yfu0ElAivlJT4aMSdVkjgSH8ZtYhHA2Qane5rbzOWjmyzMzM/e0qN2xLlBytZbTE0 zXtw== X-Gm-Message-State: APjAAAUfLpf1Bn8MOFqlsUxegoxls+BZoXIoWK/gmvPmmo/XUDVb6FSA tOvXqKKwcobed9TEvLjtNvj2qQk= X-Google-Smtp-Source: APXvYqxG6b9eIpl75KDmibXNkoGYk7oEFCIpp+P0FnbOVrCoFS7njBkYRjbe+oSv/smYFGKQbP1sYg== X-Received: by 2002:a05:6830:1f95:: with SMTP id v21mr112109675otr.325.1578347840687; Mon, 06 Jan 2020 13:57:20 -0800 (PST) Received: from rob-hp-laptop (ip-70-5-121-225.ftwttx.spcsdns.net. [70.5.121.225]) by smtp.gmail.com with ESMTPSA id p83sm21852554oia.51.2020.01.06.13.57.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 13:57:19 -0800 (PST) Received: from rob (uid 1000) (envelope-from rob@rob-hp-laptop) id 220d32 by rob-hp-laptop (DragonFly Mail Agent v0.11); Mon, 06 Jan 2020 15:57:16 -0600 Date: Mon, 6 Jan 2020 15:57:16 -0600 From: Rob Herring To: Chao Hao Subject: Re: [PATCH v2 01/19] dt-bindings: mediatek: Add bindings for MT6779 Message-ID: <20200106215716.GA31059@bogus> References: <20200105104523.31006-1-chao.hao@mediatek.com> <20200105104523.31006-2-chao.hao@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200105104523.31006-2-chao.hao@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200106_135721_770973_A52DC123 X-CRM114-Status: GOOD ( 14.35 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anan Sun , devicetree@vger.kernel.org, Jun Yan , wsd_upstream@mediatek.com, Joerg Roedel , linux-kernel@vger.kernel.org, Chao Hao , iommu@lists.linux-foundation.org, linux-mediatek@lists.infradead.org, Yong Wu , Matthias Brugger , Cui Zhang , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Sun, 5 Jan 2020 18:45:05 +0800, Chao Hao wrote: > This patch adds description for MT6779 IOMMU. > > MT6779 has two iommus, they are MM_IOMMU and APU_IOMMU which > use ARM Short-Descriptor translation format. > > The MT6779 IOMMU hardware diagram is as below, it is only a brief > diagram about iommu, it don't focus on the part of smi_larb, so > I don't describe the smi_larb detailedly. > > EMI > | > -------------------------------------- > | | > MM_IOMMU APU_IOMMU > | | > SMI_COMMOM----------- APU_BUS > | | | > SMI_LARB(0~11) SMI_LARB12(FAKE) SMI_LARB13(FAKE) > | | | > | | -------------- > | | | | | > Multimedia engine CCU VPU MDLA EMDA > > All the connections are hardware fixed, software can not adjust it. > > >From the diagram above, MM_IOMMU provides mapping for multimedia engine, > but CCU is connected with smi_common directly, we can take them as larb12. > APU_IOMMU provides mapping for APU engine, we can take them larb13. > Larb12 and Larb13 are fake larbs. > > Signed-off-by: Chao Hao > --- > .../bindings/iommu/mediatek,iommu.txt | 2 + > include/dt-bindings/memory/mt6779-larb-port.h | 215 ++++++++++++++++++ > 2 files changed, 217 insertions(+) > create mode 100644 include/dt-bindings/memory/mt6779-larb-port.h > Please add Acked-by/Reviewed-by tags when posting new versions. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for acks received on the version they apply. If a tag was not added on purpose, please state why and what changed. _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8BECC33C9B for ; Mon, 6 Jan 2020 21:57:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8EC6E207FF for ; Mon, 6 Jan 2020 21:57:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="L4wKu903" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8EC6E207FF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mVgEKWvtnHgzp8KjfPmiBXRimr9QgNtAYg8pjiSDkJM=; b=L4wKu903Z1aeZ8 dLFtzOi5u34Dlhf2wYAIBXSunbfGKYPndvvIKpFXGeBM0lREhTk7VIpnWLBvf+WFi4jur8Uh8aiCS S5DEIgPMvt3cXnDtox6nnhQXh4V8BzyHUk8LE7Hkx3qAFseepxmPr/1KhloVZVIPbSeH/ArBgz+lA NY+bhCbvHhQ+AidIvkZCsxgi+fk0XtQgOJf5LEf9kY5o2VoRHOt2DFTylByj+4WTIpTOmY2yjtSa3 50BVO/6VLxBx8jalU81RQV4t6g5ST15/Kua5vapUaUMyLVQmsdxO8HR9M6HLnpqgmhGHq9Ucc+oty XqX5Y4kOSW9CBH2UhMhQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ioaNI-0007YD-5E; Mon, 06 Jan 2020 21:57:24 +0000 Received: from mail-oi1-f196.google.com ([209.85.167.196]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ioaNE-0007XX-M3 for linux-arm-kernel@lists.infradead.org; Mon, 06 Jan 2020 21:57:21 +0000 Received: by mail-oi1-f196.google.com with SMTP id l9so14243853oii.5 for ; Mon, 06 Jan 2020 13:57:20 -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:user-agent; bh=CGQuR1M/qYi2xyMJHlEfzvhIn09Q2tETaZrs1ID5PBc=; b=o6Eue9QK8r+BYCkKITZgt+xDM9Y6I9xA9v2rCmHy6pAnhPAZdPh0wE1ifOEocAAOoK zn5ly/AcMEJwenAkBRekFCRyLySANFIer83JgtDp3zSNcD55qtzhc/OI3YcSNLGQ4vgQ BwWD5tljeSKqwipQw2xBiyRIcTx4PXLGpWGD1ifQLx+au18IYJ6nWHipp21zLYWwugaJ FbNQQczHrff4KHowx+dKINXmp0700YvvePXk3fpAAlOwsAeP7O9AZ4+xXOMLtLl3vqdY yLb1dH8ZK7l/lRfbE3ge4sq2zcza3IIaN39cNJpWQdCix3itXME3uJhBK/bSQp1V7e9A NRWw== X-Gm-Message-State: APjAAAWzbXRSIKWQJ0Cofhn1P8u1o04/asQVDnvFdvGhOgbTH8gvLqYB iwAzXxVK4OXfLRRJvqkNJex9Sqs= X-Google-Smtp-Source: APXvYqwTzt/XPrpt00mjeUtMidxs3GJrDf6vttWFilh8WpYenwML9P9t82+uMrVgphE+hrd+ArLLOw== X-Received: by 2002:aca:d507:: with SMTP id m7mr6108802oig.48.1578347839603; Mon, 06 Jan 2020 13:57:19 -0800 (PST) Received: from rob-hp-laptop (ip-70-5-121-225.ftwttx.spcsdns.net. [70.5.121.225]) by smtp.gmail.com with ESMTPSA id k26sm16624024oiw.34.2020.01.06.13.57.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 13:57:19 -0800 (PST) Received: from rob (uid 1000) (envelope-from rob@rob-hp-laptop) id 220d32 by rob-hp-laptop (DragonFly Mail Agent v0.11); Mon, 06 Jan 2020 15:57:16 -0600 Date: Mon, 6 Jan 2020 15:57:16 -0600 From: Rob Herring To: Chao Hao Subject: Re: [PATCH v2 01/19] dt-bindings: mediatek: Add bindings for MT6779 Message-ID: <20200106215716.GA31059@bogus> References: <20200105104523.31006-1-chao.hao@mediatek.com> <20200105104523.31006-2-chao.hao@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200105104523.31006-2-chao.hao@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200106_135720_722841_86106CB7 X-CRM114-Status: GOOD ( 15.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anan Sun , devicetree@vger.kernel.org, Jun Yan , wsd_upstream@mediatek.com, Joerg Roedel , linux-kernel@vger.kernel.org, Chao Hao , iommu@lists.linux-foundation.org, linux-mediatek@lists.infradead.org, Yong Wu , Matthias Brugger , Cui Zhang , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, 5 Jan 2020 18:45:05 +0800, Chao Hao wrote: > This patch adds description for MT6779 IOMMU. > > MT6779 has two iommus, they are MM_IOMMU and APU_IOMMU which > use ARM Short-Descriptor translation format. > > The MT6779 IOMMU hardware diagram is as below, it is only a brief > diagram about iommu, it don't focus on the part of smi_larb, so > I don't describe the smi_larb detailedly. > > EMI > | > -------------------------------------- > | | > MM_IOMMU APU_IOMMU > | | > SMI_COMMOM----------- APU_BUS > | | | > SMI_LARB(0~11) SMI_LARB12(FAKE) SMI_LARB13(FAKE) > | | | > | | -------------- > | | | | | > Multimedia engine CCU VPU MDLA EMDA > > All the connections are hardware fixed, software can not adjust it. > > >From the diagram above, MM_IOMMU provides mapping for multimedia engine, > but CCU is connected with smi_common directly, we can take them as larb12. > APU_IOMMU provides mapping for APU engine, we can take them larb13. > Larb12 and Larb13 are fake larbs. > > Signed-off-by: Chao Hao > --- > .../bindings/iommu/mediatek,iommu.txt | 2 + > include/dt-bindings/memory/mt6779-larb-port.h | 215 ++++++++++++++++++ > 2 files changed, 217 insertions(+) > create mode 100644 include/dt-bindings/memory/mt6779-larb-port.h > Please add Acked-by/Reviewed-by tags when posting new versions. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for acks received on the version they apply. If a tag was not added on purpose, please state why and what changed. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9436C33C8C for ; Mon, 6 Jan 2020 21:57:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AAA862072A for ; Mon, 6 Jan 2020 21:57:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578347840; bh=BZqjl5C0O+IW5Z5GFdY8nA7SPKsDOaxMIOyGcQ3RhWM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=Ycjmm01iLkpj+PSGHWO9XuKKpSu49lB+F41/OezWXwYA9ZyUQnr3r1xbsh2H6QWs9 ZspDNQ/SXlT8Ooq70XtPyglqVsQTgVS29U6O7HyP5jwTdPgFVKZZMXXQTuBywsRnW5 D5lJeW02BXhGsUM+09bNqH+2cvhI+3Y+lG6VUjOE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726731AbgAFV5U (ORCPT ); Mon, 6 Jan 2020 16:57:20 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:43933 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726695AbgAFV5T (ORCPT ); Mon, 6 Jan 2020 16:57:19 -0500 Received: by mail-oi1-f194.google.com with SMTP id p125so14771154oif.10 for ; Mon, 06 Jan 2020 13:57:19 -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:user-agent; bh=CGQuR1M/qYi2xyMJHlEfzvhIn09Q2tETaZrs1ID5PBc=; b=ud/BwnXoNDjwky59eGyMgT/36GDI/TnWw4GI8c3Qymd1aDiZ/jCaNofqT1O6NdouYx 2Inx9r5bFaSjPz5Un7gjAGam0q7I+VgpDTMgZT1pI7EaJy7dLY5BBllOQo7T6oUbwPDL 21yQPiGKzx/w9o4UUn/DnnIARbc68zqG4CPGF9v+McPc6MbtCLg7J5tTajRD0lcGc79f wStO0hF3r0eESpJO/L/ye/sMjtyDTQqrWyabfAeBJtApPL0fpK+MhCRWMHwwFX/UfCYW uMWBn1PNSp7prv00Ye2+CK8ORncTJ94ILieN81Xk32fqdVqHbIynaRg5n3RGnNG7T6ra vjsg== X-Gm-Message-State: APjAAAU+nkWkDz+psr7PfN/Ah1RG2jb3Ranx7hsh1pvsPZdFvWkiFu9P CJEXUr7F8lhmBzmm6CTdv8Ibstc= X-Google-Smtp-Source: APXvYqxrCWhJSkYVyQ+XuiGDyX2EAHf+Ry5betPSipYYJihftR9bloEo4v+6rk/dFnH/DFGGaM2OMQ== X-Received: by 2002:a05:6808:3c2:: with SMTP id o2mr6598421oie.145.1578347839242; Mon, 06 Jan 2020 13:57:19 -0800 (PST) Received: from rob-hp-laptop (ip-70-5-121-225.ftwttx.spcsdns.net. [70.5.121.225]) by smtp.gmail.com with ESMTPSA id 69sm1037883oth.17.2020.01.06.13.57.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 13:57:19 -0800 (PST) Received: from rob (uid 1000) (envelope-from rob@rob-hp-laptop) id 220d32 by rob-hp-laptop (DragonFly Mail Agent v0.11); Mon, 06 Jan 2020 15:57:16 -0600 Date: Mon, 6 Jan 2020 15:57:16 -0600 From: Rob Herring To: Chao Hao Cc: Joerg Roedel , Matthias Brugger , iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com, Chao Hao , Jun Yan , Cui Zhang , Yong Wu , Anan Sun Subject: Re: [PATCH v2 01/19] dt-bindings: mediatek: Add bindings for MT6779 Message-ID: <20200106215716.GA31059@bogus> References: <20200105104523.31006-1-chao.hao@mediatek.com> <20200105104523.31006-2-chao.hao@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200105104523.31006-2-chao.hao@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Sun, 5 Jan 2020 18:45:05 +0800, Chao Hao wrote: > This patch adds description for MT6779 IOMMU. > > MT6779 has two iommus, they are MM_IOMMU and APU_IOMMU which > use ARM Short-Descriptor translation format. > > The MT6779 IOMMU hardware diagram is as below, it is only a brief > diagram about iommu, it don't focus on the part of smi_larb, so > I don't describe the smi_larb detailedly. > > EMI > | > -------------------------------------- > | | > MM_IOMMU APU_IOMMU > | | > SMI_COMMOM----------- APU_BUS > | | | > SMI_LARB(0~11) SMI_LARB12(FAKE) SMI_LARB13(FAKE) > | | | > | | -------------- > | | | | | > Multimedia engine CCU VPU MDLA EMDA > > All the connections are hardware fixed, software can not adjust it. > > >From the diagram above, MM_IOMMU provides mapping for multimedia engine, > but CCU is connected with smi_common directly, we can take them as larb12. > APU_IOMMU provides mapping for APU engine, we can take them larb13. > Larb12 and Larb13 are fake larbs. > > Signed-off-by: Chao Hao > --- > .../bindings/iommu/mediatek,iommu.txt | 2 + > include/dt-bindings/memory/mt6779-larb-port.h | 215 ++++++++++++++++++ > 2 files changed, 217 insertions(+) > create mode 100644 include/dt-bindings/memory/mt6779-larb-port.h > Please add Acked-by/Reviewed-by tags when posting new versions. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for acks received on the version they apply. If a tag was not added on purpose, please state why and what changed.