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 246F4C61DD8 for ; Mon, 16 Nov 2020 17:44:07 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 B9BAC22265 for ; Mon, 16 Nov 2020 17:44:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B9BAC22265 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 fraxinus.osuosl.org (Postfix) with ESMTP id 73A2485F0F; Mon, 16 Nov 2020 17:44:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HmY2eHiILESS; Mon, 16 Nov 2020 17:44:05 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id EC22B85569; Mon, 16 Nov 2020 17:44:05 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id D8AC2C0891; Mon, 16 Nov 2020 17:44:05 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id B031CC07FF for ; Mon, 16 Nov 2020 17:44:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 99DE885E77 for ; Mon, 16 Nov 2020 17:44:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eVDEWamKJzeQ for ; Mon, 16 Nov 2020 17:44:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-oi1-f195.google.com (mail-oi1-f195.google.com [209.85.167.195]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 308C085569 for ; Mon, 16 Nov 2020 17:44:04 +0000 (UTC) Received: by mail-oi1-f195.google.com with SMTP id w145so19654918oie.9 for ; Mon, 16 Nov 2020 09:44:04 -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=aDraipXgK+j9ThnWRAuoxovGZzBsfeJ+1er3RHu2IRg=; b=Xxf5sSQ7HKam2sxmBgu3y/jdFs1hWOo+h16SK7as7T7bovDhz0g4ZOWWZx95/6c/uq c1O2oQNharGOD0JZf4GOQRVeZELh+k1OmeZfrIU5zDaj+bHkkvZ8ED0gU2fbNSlHRWOx kzJwj8QGLfSz9oC/EuTT1oiOcS3xjN3U4ltJfV/nOlqQ6wdMB0bVAk+LaG4Y5FToAqsM jqKvCcL3BYs2NP8AmAJWppm85qzvtH4pksy5ZPTPqH9KehgXdP6ER/kbvYMfxs3IhZx9 vUVB2iQtgu3tlrEfI0tpmfqS2Q0P9MutWke1F7wefFt1lKJSYO7bZ/4t2Sp2iLbSEpRZ dFgw== X-Gm-Message-State: AOAM532auynus032W8BSLbcTRdQwUahDwODdPJavaLp6lbZwdERrR9SV Rv7aLBDpsAuq/6B29odOzQ== X-Google-Smtp-Source: ABdhPJyGW1TUwaevOXIBOiYNkYrlF4+cuSOA6lvXI2KLAfneT0Oy+X6YDbPqkJCXzeLvwXi5szqGJg== X-Received: by 2002:aca:bbc2:: with SMTP id l185mr424763oif.172.1605548643381; Mon, 16 Nov 2020 09:44:03 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k11sm4871965otr.14.2020.11.16.09.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:44:02 -0800 (PST) Received: (nullmailer pid 1862027 invoked by uid 1000); Mon, 16 Nov 2020 17:44:01 -0000 Date: Mon, 16 Nov 2020 11:44:01 -0600 From: Rob Herring To: Yong Wu Subject: Re: [PATCH v4 04/24] dt-bindings: memory: mediatek: Add domain definition Message-ID: <20201116174401.GA1861980@bogus> 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, kernel-team@android.com, anan.sun@mediatek.com, Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Tomasz Figa , iommu@lists.linux-foundation.org, Rob Herring , linux-mediatek@lists.infradead.org, Evan Green , Matthias Brugger , Greg Kroah-Hartman , Will Deacon , linux-arm-kernel@lists.infradead.org, Robin Murphy 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, 11 Nov 2020 20:38:18 +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: Rob Herring _______________________________________________ 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 0ADE9C61DD8 for ; Mon, 16 Nov 2020 17:48:03 +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 B097820B80 for ; Mon, 16 Nov 2020 17:48: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="aS1OqOFN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B097820B80 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=ivjiuJpngxPbEa6Wne08GhDHHgPfFuHfGtHCvmnYTo0=; b=aS1OqOFNtD/i3sFw6LgFYSXuV fncBhcdwkqZkS0WByds2OLwd/ou7rdYvdhaAHUSMcn1V0lg4gZhsKiSLrcO4/Mpr73pkLcWgaxxp7 GEbVBcPKhhTnObztLDuvTpzX06TPQpFcqXhYH3LZsy7rq27m7Q51S1qWy4NOIy+mDoQ8yGD7T++ky YH1in4r+AjE7ArEvhw/un7a3GFq44nj/gwGI1pRP/nKgBCuWva3jbgpuatH7VYQAZVr2bZKmIVIJI EgE/DEHJfp6n2LJ9we2I1XPbjp8Pi96UwHI1lel7fLfgFVFO53B46QOpBzisBWOa9CVLCl5bC9IXk Mp5Q9ajbw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1keibT-0007Un-JJ; Mon, 16 Nov 2020 17:47:47 +0000 Received: from mail-oi1-f195.google.com ([209.85.167.195]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1keiXs-0005Eq-JG; Mon, 16 Nov 2020 17:44:05 +0000 Received: by mail-oi1-f195.google.com with SMTP id m143so19687583oig.7; Mon, 16 Nov 2020 09:44:03 -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=aDraipXgK+j9ThnWRAuoxovGZzBsfeJ+1er3RHu2IRg=; b=o+SrlAdQk/S1rGvBf7N1Q4PbWA2DoThzP/ykW/atawhFIK9iZnhVHdTA5uF8ov6OgE 4/Yy05CUN5Zr6OTloqQjWt8/l2bB2WOBly/qf1ZNs/Vly7yBqCL6hFpkc3Y6IkxJmudV W4Eexu1IyivrjdiqdNOwo3tH3arMKpb+78ZU8TItJXd6puzO7pwMC6DRceoy7FjZRqG6 rQp6L/36DTinoL/VVSxLxOPKd+RcaTMLXF0K3fsllnfrPKg721cD07UMUurefZp9N6Co A84X5+6HOwz/lWt0B/b8q/awz2LFv8DU0iWgliMqyI3TN1Ftk5pkevGAX6MTbiAhjLeX hgPQ== X-Gm-Message-State: AOAM5314tlvaN1ezIPOF6SSrUx643g6a3MD+BR6sRRQYOjHULkDiID8i xvSvB1D1IPs4TEcnDCr8kg== X-Google-Smtp-Source: ABdhPJyGW1TUwaevOXIBOiYNkYrlF4+cuSOA6lvXI2KLAfneT0Oy+X6YDbPqkJCXzeLvwXi5szqGJg== X-Received: by 2002:aca:bbc2:: with SMTP id l185mr424763oif.172.1605548643381; Mon, 16 Nov 2020 09:44:03 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k11sm4871965otr.14.2020.11.16.09.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:44:02 -0800 (PST) Received: (nullmailer pid 1862027 invoked by uid 1000); Mon, 16 Nov 2020 17:44:01 -0000 Date: Mon, 16 Nov 2020 11:44:01 -0600 From: Rob Herring To: Yong Wu Subject: Re: [PATCH v4 04/24] dt-bindings: memory: mediatek: Add domain definition Message-ID: <20201116174401.GA1861980@bogus> 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-20201116_124404_719879_585E4E15 X-CRM114-Status: GOOD ( 16.74 ) 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, kernel-team@android.com, Joerg Roedel , anan.sun@mediatek.com, Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Tomasz Figa , iommu@lists.linux-foundation.org, Rob Herring , linux-mediatek@lists.infradead.org, Evan Green , Matthias Brugger , Greg Kroah-Hartman , Will Deacon , linux-arm-kernel@lists.infradead.org, Robin Murphy 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, 11 Nov 2020 20:38:18 +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: Rob Herring _______________________________________________ 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 34B76C4742C for ; Mon, 16 Nov 2020 17:48:44 +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 C747322265 for ; Mon, 16 Nov 2020 17:48:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NpxOOQWe" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C747322265 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=vXeVhjlm+MWChvrZb4lGdf//3uvbaQDa2sR89JwNm9I=; b=NpxOOQWe0sxidSusWF890vKQj Hmgo67QmCVM8o8HC7+2lmxXrCf7bFi1UNAoQPR1w7FzRMNRmXY25V9btXmZPgoNTjH7dSlc7yOEHm 5OjNj28DwEOlxEFZwsQh3uXvMlqdbP8aaOVjeAEaZQv7g5EYXmzthWJg8KaBw1+9yBX8G8SS6AdUF sPLPGwadZe12mSSLI5rgqvzTAW0cK+eSuILKvS297+SqoUgyL85J75ixCE2cofzKqTebcwbPvEyu/ 1zXWCJmAjvwh9bjuVC6sE/thX9gk9oTIbWsxK5CnZleURek+HRfl1N2BzoZf4AuHvG2cPnvmTVwyS MiAbDcWGg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1keibg-0007ZO-0g; Mon, 16 Nov 2020 17:48:00 +0000 Received: from mail-oi1-f195.google.com ([209.85.167.195]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1keiXs-0005Eq-JG; Mon, 16 Nov 2020 17:44:05 +0000 Received: by mail-oi1-f195.google.com with SMTP id m143so19687583oig.7; Mon, 16 Nov 2020 09:44:03 -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=aDraipXgK+j9ThnWRAuoxovGZzBsfeJ+1er3RHu2IRg=; b=o+SrlAdQk/S1rGvBf7N1Q4PbWA2DoThzP/ykW/atawhFIK9iZnhVHdTA5uF8ov6OgE 4/Yy05CUN5Zr6OTloqQjWt8/l2bB2WOBly/qf1ZNs/Vly7yBqCL6hFpkc3Y6IkxJmudV W4Eexu1IyivrjdiqdNOwo3tH3arMKpb+78ZU8TItJXd6puzO7pwMC6DRceoy7FjZRqG6 rQp6L/36DTinoL/VVSxLxOPKd+RcaTMLXF0K3fsllnfrPKg721cD07UMUurefZp9N6Co A84X5+6HOwz/lWt0B/b8q/awz2LFv8DU0iWgliMqyI3TN1Ftk5pkevGAX6MTbiAhjLeX hgPQ== X-Gm-Message-State: AOAM5314tlvaN1ezIPOF6SSrUx643g6a3MD+BR6sRRQYOjHULkDiID8i xvSvB1D1IPs4TEcnDCr8kg== X-Google-Smtp-Source: ABdhPJyGW1TUwaevOXIBOiYNkYrlF4+cuSOA6lvXI2KLAfneT0Oy+X6YDbPqkJCXzeLvwXi5szqGJg== X-Received: by 2002:aca:bbc2:: with SMTP id l185mr424763oif.172.1605548643381; Mon, 16 Nov 2020 09:44:03 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k11sm4871965otr.14.2020.11.16.09.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:44:02 -0800 (PST) Received: (nullmailer pid 1862027 invoked by uid 1000); Mon, 16 Nov 2020 17:44:01 -0000 Date: Mon, 16 Nov 2020 11:44:01 -0600 From: Rob Herring To: Yong Wu Subject: Re: [PATCH v4 04/24] dt-bindings: memory: mediatek: Add domain definition Message-ID: <20201116174401.GA1861980@bogus> 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-20201116_124404_719879_585E4E15 X-CRM114-Status: GOOD ( 16.74 ) 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, kernel-team@android.com, Joerg Roedel , anan.sun@mediatek.com, Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Tomasz Figa , iommu@lists.linux-foundation.org, Rob Herring , linux-mediatek@lists.infradead.org, Evan Green , Matthias Brugger , Greg Kroah-Hartman , Will Deacon , linux-arm-kernel@lists.infradead.org, Robin Murphy 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, 11 Nov 2020 20:38:18 +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: Rob Herring _______________________________________________ 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 299FDC6369E for ; Mon, 16 Nov 2020 17:44:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ED67922265 for ; Mon, 16 Nov 2020 17:44:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732921AbgKPRoG (ORCPT ); Mon, 16 Nov 2020 12:44:06 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:38221 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387659AbgKPRoF (ORCPT ); Mon, 16 Nov 2020 12:44:05 -0500 Received: by mail-oi1-f195.google.com with SMTP id o25so19691831oie.5; Mon, 16 Nov 2020 09:44:03 -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=aDraipXgK+j9ThnWRAuoxovGZzBsfeJ+1er3RHu2IRg=; b=HS7Rv8SN9c40WqIlZgs8x6gNpbLHpB3kiOfCReYV6Ub2Jj1XbdMDYgd6SwOJme6uqG sOsnY4KTPnOkWX9heSfM3KD2vwvjh0769wzRzfJRKeSkstl2qppJnUcAKK+rjWzBUFEk wZ75QAnaykAt/AiMBZMVfvTD95IPs9zm+C2T0vYzSxdc6eBmoUBvYrkWDaX2JTl1YawS c3e/HAE84SsPUZWCV4lzDONcVnYcswbI9Wo8PERtjf8xud/jSm+HaqIPApXDHlvNOCGy Q9sUcpGw7UZVYD01V9/USWh/mthf6S1PfmvR2pWw6Q+8Q9ODz2NbfwUX2hufcD1BEpDH TDMw== X-Gm-Message-State: AOAM531z1HJwHeeB/cPfN2EpMrp4g0PKYVkKGST35DnSNwL1KGJIPoP1 9a7xngDHa6+NWYk4bjfFM5x6+mKtog== X-Google-Smtp-Source: ABdhPJyGW1TUwaevOXIBOiYNkYrlF4+cuSOA6lvXI2KLAfneT0Oy+X6YDbPqkJCXzeLvwXi5szqGJg== X-Received: by 2002:aca:bbc2:: with SMTP id l185mr424763oif.172.1605548643381; Mon, 16 Nov 2020 09:44:03 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k11sm4871965otr.14.2020.11.16.09.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:44:02 -0800 (PST) Received: (nullmailer pid 1862027 invoked by uid 1000); Mon, 16 Nov 2020 17:44:01 -0000 Date: Mon, 16 Nov 2020 11:44:01 -0600 From: Rob Herring To: Yong Wu Cc: Rob Herring , youlin.pei@mediatek.com, Krzysztof Kozlowski , devicetree@vger.kernel.org, Nicolas Boichat , Tomasz Figa , Evan Green , anan.sun@mediatek.com, iommu@lists.linux-foundation.org, Joerg Roedel , Matthias Brugger , chao.hao@mediatek.com, Will Deacon , Greg Kroah-Hartman , srv_heupstream@mediatek.com, kernel-team@android.com, Robin Murphy , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 04/24] dt-bindings: memory: mediatek: Add domain definition Message-ID: <20201116174401.GA1861980@bogus> References: <20201111123838.15682-1-yong.wu@mediatek.com> <20201111123838.15682-5-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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, 11 Nov 2020 20:38:18 +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: Rob Herring