Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp683191pxb; Wed, 11 Nov 2020 13:35:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2OBq1wF4MvO8Knde2NQShRDOY6FLbUuNdREQbkY5R3SdUHHBPbMsdppLaNEN9EFj4pE/X X-Received: by 2002:a17:906:4e90:: with SMTP id v16mr24494400eju.477.1605130554373; Wed, 11 Nov 2020 13:35:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605130554; cv=none; d=google.com; s=arc-20160816; b=RBRsjP0XdHnGnAu+H9pIvywXdDftTcsG2UFXy61qVhhsPYpHFEHEw6ydKtseG5duTW +crxkQltqDjn7l+FOPVS58TjByj37QrKB87Woxh/ZiTbiVZ8ghzxN3UGsNboGcnj+nN/ tRhYMJQ0rypK6lSY7Mq+9wzuHN9+pxyqtPz3FC3jgl4U7wr2nOsWb1QWQ8xrNaQr4qtA 8pcHTIKAbbEH8Ez4UkpltJF9MpY+BV+NM7zprNcW8Oug5mhvJUVia60uLgR11Lrlikd7 sRAjZPjEsleJMpS/Pg80H3GmBM+zxM1oQeGZTACnInETGapAAaTgI/HFX1Zopik+WEP1 8F5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Z+ETELXno+NvRIRsDlBueAlts5jLlnpIbWvTkKx52dc=; b=tN8TdFUL8iElMLIlMJDfKEwe8QdXE5LhSzLCGrsq12UZIg00MK3fXqtHuE5U8oyRYL ayh9e9+jIVVEQUWAXG2BNfb9pZG3vdLI9nXArxAkGAJOlXhQD8SH3GhNrWrZtZBQ39+o pBcMOqMxc6/UNS87N5RsYyWzBJUqHuReBze/DP/uhSUrsxkw2F+90ZqI4rEtyGZcOWVq qBUUNFHIei+CtTmPWCaYvg29Lh5qnt1b+t+I8g4cFtQtf+Ox+GdbfUt+N6eG+QAwD9Ui FwARwWUVLNbVA8uqwMCgphqLDjxtPxYS7DuM3JeAtr5p5HsvtjUlYY95Wp+ff4Bz/JvG ivgA== 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 gr18si2269263ejb.201.2020.11.11.13.35.30; Wed, 11 Nov 2020 13:35:54 -0800 (PST) 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 S1727047AbgKKVar (ORCPT + 99 others); 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-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: linux-kernel@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