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=-7.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 5A8C7C5517A for ; Wed, 11 Nov 2020 21:30:51 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 E4AAC20825 for ; Wed, 11 Nov 2020 21:30:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E4AAC20825 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 whitealder.osuosl.org (Postfix) with ESMTP id 6F02386C5B; Wed, 11 Nov 2020 21:30:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LAFnnttX2YCB; Wed, 11 Nov 2020 21:30:49 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id BCDE485BA3; Wed, 11 Nov 2020 21:30:49 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id A8D98C088B; Wed, 11 Nov 2020 21:30:49 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 3B680C016F for ; Wed, 11 Nov 2020 21:30:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 14E782E174 for ; Wed, 11 Nov 2020 21:30:48 +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 gwzCZ9fo6WlS for ; Wed, 11 Nov 2020 21:30:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ej1-f67.google.com (mail-ej1-f67.google.com [209.85.218.67]) by silver.osuosl.org (Postfix) with ESMTPS id 63D272E119 for ; Wed, 11 Nov 2020 21:30:46 +0000 (UTC) Received: by mail-ej1-f67.google.com with SMTP id w13so4707244eju.13 for ; Wed, 11 Nov 2020 13:30:46 -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=Z+ETELXno+NvRIRsDlBueAlts5jLlnpIbWvTkKx52dc=; b=nhCQ8MEK19OPLakqUgpw5RkVuREqV4KYEsJhxaWpCdFDd+Wcj8zAcPasSOTE9Qdc4A EhoSYJr+/YXgIehpiZXUreQdxc80Nr4wLg538SvRA89FWbg9gQnpGamfEGczZEA+t/f8 K+mJ3CL4OK9kfbzXTBhPe8kovL7sColtDgaBcVA1WZoAxT+Jug3vCpPshLfZtns1dUwj FJgZeKxCStRyXg2Gd3SWFbcPxcHOO7WzW0GSKznS9tn+rhE4JrzylKmtIgq8t5pfMpH0 2zxg27DwqQ+yDXe/ejZ5G8Rv0Qh+fN84wprvxeK4mb0mSy05cEppPncpE0kKQ/WA4S0C 7Otg== X-Gm-Message-State: AOAM5324W62BQu/5ysPELX821pcJ8tlwv9xjl23Cj3Hk4qT+ZTDo8nMd 5OXrL8Y4BWLfW1mX4LD/5T8= X-Google-Smtp-Source: ABdhPJyhZPk3FplV/r7GELuT8+cAZX7sxSAYu7E4SNmzzETHkXyXKEmJuKnrqs52+PR3B57lSpkvkA== X-Received: by 2002:a17:906:f186:: with SMTP id gs6mr28257486ejb.171.1605130244772; Wed, 11 Nov 2020 13:30:44 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id c11sm1421524eds.62.2020.11.11.13.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 13:30:43 -0800 (PST) Date: Wed, 11 Nov 2020 22:30:41 +0100 From: Krzysztof Kozlowski To: Yong Wu Subject: Re: [PATCH v4 04/24] dt-bindings: memory: mediatek: Add domain definition Message-ID: <20201111213041.GC287176@kozik-lap> References: <20201111123838.15682-1-yong.wu@mediatek.com> <20201111123838.15682-5-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201111123838.15682-5-yong.wu@mediatek.com> Cc: youlin.pei@mediatek.com, devicetree@vger.kernel.org, Nicolas Boichat , srv_heupstream@mediatek.com, chao.hao@mediatek.com, Will Deacon , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Evan Green , Tomasz Figa , iommu@lists.linux-foundation.org, Rob Herring , linux-mediatek@lists.infradead.org, Matthias Brugger , kernel-team@android.com, anan.sun@mediatek.com, Robin Murphy , 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 Wed, Nov 11, 2020 at 08:38:18PM +0800, Yong Wu wrote: > In the latest SoC, there are several HW IP require a sepecial iova > range, mainly CCU and VPU has this requirement. Take CCU as a example, > CCU require its iova locate in the range(0x4000_0000 ~ 0x43ff_ffff). > > In this patch we add a domain definition for the special port. In the > example of CCU, If we preassign CCU port in domain1, then iommu driver > will prepare a independent iommu domain of the special iova range for it, > then the iova got from dma_alloc_attrs(ccu-dev) will locate in its special > range. > > This is a preparing patch for multi-domain support. > > Signed-off-by: Yong Wu > --- > include/dt-bindings/memory/mtk-smi-larb-port.h | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > Acked-by: Krzysztof Kozlowski Best regards, Krzysztof _______________________________________________ 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=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no 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 89FDCC388F9 for ; Wed, 11 Nov 2020 21:31:02 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 140D720825 for ; Wed, 11 Nov 2020 21:31:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WpnDWhb2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 140D720825 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=merlin.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=0dvS1EkHBZoZeMyrWxT75b3nzXYxSthpk7HzbRLZfSI=; b=WpnDWhb2LtH+dtImHe4mm8TuU fWm3sWaWJ5SMEaIJvonbQvx858nIFNxKEpw8KRUe/I0p5cIkPuQEHB1VSy53he0tqmLug1BymFJxA 0chZ382CencpYJm5wN/TDesDb70ND25bpbxvKoN7x33yVGCgO9t2sUHXWd/omrk23kFS2GDGvUb58 AdbAHEXGKUonJM80ZjuIO90S6L2WDXD8RJDZF0XCmDXTpXAe8gHa1zskCZjwEkX5Q1m+sAsNmVhfD HrRIPvLrKBb891MkFEa5GuIV7Ek906hT+vOv6IFEDQJ7bjG2mxQqyHX+FUXRjyuw+jTEHMlOAqKvp vdU82ucCw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcxha-0001Lb-Oa; Wed, 11 Nov 2020 21:30:50 +0000 Received: from mail-ej1-f66.google.com ([209.85.218.66]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcxhW-0001Ji-5g; Wed, 11 Nov 2020 21:30:47 +0000 Received: by mail-ej1-f66.google.com with SMTP id o23so4727370ejn.11; Wed, 11 Nov 2020 13:30:45 -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=Z+ETELXno+NvRIRsDlBueAlts5jLlnpIbWvTkKx52dc=; b=WSQ2tSsoSuTCgL3c8XZquZEodRDrIk9ewu2h3T09vo+00sM89CJWMT+LDfvMLC0UsA n2FclPdQb8PGkRjGc6OIlx5iLjwzv2Iw2tfMDBdCz9NM5Vw5BbIV1p0i2uZWxAIUrDHv DHC/t09BXqJR/6dWfuvEH2C3dEIlcsB8OmH6m6EUnOCOwrpd5z+ddUfY5SiZjnKLWw4v 21oECvdSJPKFQDhonLuszPj2zITVZZyV70vTjxnE9XFt45VRL24f3xBATBcy6/MG+RAn EheAyoYNxcphJgB+jWu53YIMP27e8iOwkRfaR/HlPE/rIcNQzRzTNMXF6dbkIbU6xo4y XjKg== X-Gm-Message-State: AOAM533beimIJGJ1cb8ns6hIBxvoDvVD0nMqJ0q3L68eRBD+LiKOMm6L 3CuegX0t/n/oxLfeiWPlaUk= X-Google-Smtp-Source: ABdhPJyhZPk3FplV/r7GELuT8+cAZX7sxSAYu7E4SNmzzETHkXyXKEmJuKnrqs52+PR3B57lSpkvkA== X-Received: by 2002:a17:906:f186:: with SMTP id gs6mr28257486ejb.171.1605130244772; Wed, 11 Nov 2020 13:30:44 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id c11sm1421524eds.62.2020.11.11.13.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 13:30:43 -0800 (PST) Date: Wed, 11 Nov 2020 22:30:41 +0100 From: Krzysztof Kozlowski To: Yong Wu Subject: Re: [PATCH v4 04/24] dt-bindings: memory: mediatek: Add domain definition Message-ID: <20201111213041.GC287176@kozik-lap> References: <20201111123838.15682-1-yong.wu@mediatek.com> <20201111123838.15682-5-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201111123838.15682-5-yong.wu@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201111_163046_266624_7B76D16E X-CRM114-Status: GOOD ( 17.16 ) 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: youlin.pei@mediatek.com, devicetree@vger.kernel.org, Nicolas Boichat , srv_heupstream@mediatek.com, chao.hao@mediatek.com, Will Deacon , Joerg Roedel , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Evan Green , Tomasz Figa , iommu@lists.linux-foundation.org, Rob Herring , linux-mediatek@lists.infradead.org, Matthias Brugger , kernel-team@android.com, anan.sun@mediatek.com, Robin Murphy , 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 Wed, Nov 11, 2020 at 08:38:18PM +0800, Yong Wu wrote: > In the latest SoC, there are several HW IP require a sepecial iova > range, mainly CCU and VPU has this requirement. Take CCU as a example, > CCU require its iova locate in the range(0x4000_0000 ~ 0x43ff_ffff). > > In this patch we add a domain definition for the special port. In the > example of CCU, If we preassign CCU port in domain1, then iommu driver > will prepare a independent iommu domain of the special iova range for it, > then the iova got from dma_alloc_attrs(ccu-dev) will locate in its special > range. > > This is a preparing patch for multi-domain support. > > Signed-off-by: Yong Wu > --- > include/dt-bindings/memory/mtk-smi-larb-port.h | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > Acked-by: Krzysztof Kozlowski Best regards, Krzysztof _______________________________________________ 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=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no 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 A1706C388F9 for ; Wed, 11 Nov 2020 21:32:14 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 3AD3320637 for ; Wed, 11 Nov 2020 21:32:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="1E3VEzNS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3AD3320637 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+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=merlin.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=AxR+H4IXMR4aEtiXRT8R8gPE26b1AJA2fWj9Jwj8oJk=; b=1E3VEzNSD05CZA8WfRZFDFRsV cnF65S9n+wFvuRD/kjzUvqRE3oplwdge+1i4C6lnckUwKat3JbRuwBQBgQXaKZoBkkKtyS1Rm4wFO LWxpuWEX0CQ9aOr/bV4sI1AJZt66sRdyZIAkJ38ARd+AuqnFG2mJwBLGqjnFtSfiPr5AQmRDWfLF4 tj5Rxa/qpwee+0QchFQleHQ3/uKoY2qR7QLQOiqs50FuWLFtst5atO8KDYjGoL49sBm2oPc6fKgd3 xHSgVMwWXMk4GPSoQwvHZPLlXBmlFss/WdTcdABkks4C7rE0Bbr23rLasVwf3sPbUOvnZ5De/pna5 9sJ7UStsg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcxhe-0001MT-Pj; Wed, 11 Nov 2020 21:30:54 +0000 Received: from mail-ej1-f66.google.com ([209.85.218.66]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcxhW-0001Ji-5g; Wed, 11 Nov 2020 21:30:47 +0000 Received: by mail-ej1-f66.google.com with SMTP id o23so4727370ejn.11; Wed, 11 Nov 2020 13:30:45 -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=Z+ETELXno+NvRIRsDlBueAlts5jLlnpIbWvTkKx52dc=; b=WSQ2tSsoSuTCgL3c8XZquZEodRDrIk9ewu2h3T09vo+00sM89CJWMT+LDfvMLC0UsA n2FclPdQb8PGkRjGc6OIlx5iLjwzv2Iw2tfMDBdCz9NM5Vw5BbIV1p0i2uZWxAIUrDHv DHC/t09BXqJR/6dWfuvEH2C3dEIlcsB8OmH6m6EUnOCOwrpd5z+ddUfY5SiZjnKLWw4v 21oECvdSJPKFQDhonLuszPj2zITVZZyV70vTjxnE9XFt45VRL24f3xBATBcy6/MG+RAn EheAyoYNxcphJgB+jWu53YIMP27e8iOwkRfaR/HlPE/rIcNQzRzTNMXF6dbkIbU6xo4y XjKg== X-Gm-Message-State: AOAM533beimIJGJ1cb8ns6hIBxvoDvVD0nMqJ0q3L68eRBD+LiKOMm6L 3CuegX0t/n/oxLfeiWPlaUk= X-Google-Smtp-Source: ABdhPJyhZPk3FplV/r7GELuT8+cAZX7sxSAYu7E4SNmzzETHkXyXKEmJuKnrqs52+PR3B57lSpkvkA== X-Received: by 2002:a17:906:f186:: with SMTP id gs6mr28257486ejb.171.1605130244772; Wed, 11 Nov 2020 13:30:44 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id c11sm1421524eds.62.2020.11.11.13.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 13:30:43 -0800 (PST) Date: Wed, 11 Nov 2020 22:30:41 +0100 From: Krzysztof Kozlowski To: Yong Wu Subject: Re: [PATCH v4 04/24] dt-bindings: memory: mediatek: Add domain definition Message-ID: <20201111213041.GC287176@kozik-lap> References: <20201111123838.15682-1-yong.wu@mediatek.com> <20201111123838.15682-5-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201111123838.15682-5-yong.wu@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201111_163046_266624_7B76D16E X-CRM114-Status: GOOD ( 17.16 ) 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: youlin.pei@mediatek.com, devicetree@vger.kernel.org, Nicolas Boichat , srv_heupstream@mediatek.com, chao.hao@mediatek.com, Will Deacon , Joerg Roedel , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Evan Green , Tomasz Figa , iommu@lists.linux-foundation.org, Rob Herring , linux-mediatek@lists.infradead.org, Matthias Brugger , kernel-team@android.com, anan.sun@mediatek.com, Robin Murphy , 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+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Nov 11, 2020 at 08:38:18PM +0800, Yong Wu wrote: > In the latest SoC, there are several HW IP require a sepecial iova > range, mainly CCU and VPU has this requirement. Take CCU as a example, > CCU require its iova locate in the range(0x4000_0000 ~ 0x43ff_ffff). > > In this patch we add a domain definition for the special port. In the > example of CCU, If we preassign CCU port in domain1, then iommu driver > will prepare a independent iommu domain of the special iova range for it, > then the iova got from dma_alloc_attrs(ccu-dev) will locate in its special > range. > > This is a preparing patch for multi-domain support. > > Signed-off-by: Yong Wu > --- > include/dt-bindings/memory/mtk-smi-larb-port.h | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > Acked-by: Krzysztof Kozlowski Best regards, Krzysztof _______________________________________________ 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=-7.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 13560C388F9 for ; Wed, 11 Nov 2020 21:30:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C3A8E2100A for ; Wed, 11 Nov 2020 21:30:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726989AbgKKVar (ORCPT ); Wed, 11 Nov 2020 16:30:47 -0500 Received: from mail-ej1-f65.google.com ([209.85.218.65]:38432 "EHLO mail-ej1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726871AbgKKVar (ORCPT ); Wed, 11 Nov 2020 16:30:47 -0500 Received: by mail-ej1-f65.google.com with SMTP id za3so4761384ejb.5; Wed, 11 Nov 2020 13:30:45 -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=Z+ETELXno+NvRIRsDlBueAlts5jLlnpIbWvTkKx52dc=; b=AhN7npByf9ivdtrPXxFLQhikxYxeqGMbPlB1ZUfYOL88VcU/bLKj/Y0doro7GSFK4g PHrFvh4YtsUxnRbTkod8V3rVR39LZOTFx0R7RngPCum9yGUm3MDCoNqOBVVipKfGFXri l86DdGZZQh0/+ailu7WzC/YVt0UZJpksLbSL6NfiUfm2XhvgVB2gWSQXyVZDDm0Oh3YK 0gxNSjTPV8aduNPeuwpe6XT/c6kaxxe15nKbX1gHqtydUOXQ2y92PoiEHjzdkxBQGxvy +wbgPMyss4f4qssXU91ZUhB20S+rQu6fjsyctyrTcwjkH54G5CFy74YjaBh83VGp1seN 4y1w== X-Gm-Message-State: AOAM530w4SXE/srQUY4i+AmWMT1K+jMIvWDP/zkjK/FU8C8m7FdHdBYl aNVHvv1O0pz2ppdtN81B8gE= X-Google-Smtp-Source: ABdhPJyhZPk3FplV/r7GELuT8+cAZX7sxSAYu7E4SNmzzETHkXyXKEmJuKnrqs52+PR3B57lSpkvkA== X-Received: by 2002:a17:906:f186:: with SMTP id gs6mr28257486ejb.171.1605130244772; Wed, 11 Nov 2020 13:30:44 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id c11sm1421524eds.62.2020.11.11.13.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 13:30:43 -0800 (PST) Date: Wed, 11 Nov 2020 22:30:41 +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, Greg Kroah-Hartman , kernel-team@android.com Subject: Re: [PATCH v4 04/24] dt-bindings: memory: mediatek: Add domain definition Message-ID: <20201111213041.GC287176@kozik-lap> References: <20201111123838.15682-1-yong.wu@mediatek.com> <20201111123838.15682-5-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201111123838.15682-5-yong.wu@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Wed, Nov 11, 2020 at 08:38:18PM +0800, Yong Wu wrote: > In the latest SoC, there are several HW IP require a sepecial iova > range, mainly CCU and VPU has this requirement. Take CCU as a example, > CCU require its iova locate in the range(0x4000_0000 ~ 0x43ff_ffff). > > In this patch we add a domain definition for the special port. In the > example of CCU, If we preassign CCU port in domain1, then iommu driver > will prepare a independent iommu domain of the special iova range for it, > then the iova got from dma_alloc_attrs(ccu-dev) will locate in its special > range. > > This is a preparing patch for multi-domain support. > > Signed-off-by: Yong Wu > --- > include/dt-bindings/memory/mtk-smi-larb-port.h | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > Acked-by: Krzysztof Kozlowski Best regards, Krzysztof