Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4106250imj; Tue, 19 Feb 2019 15:38:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IYOobGkTtONRN493uU9V37OJai1Uk0oK/xyBjjnwae6ar53szRJqPf+2xkXcyUdeuTaBC4Q X-Received: by 2002:a65:6294:: with SMTP id f20mr25975475pgv.174.1550619528743; Tue, 19 Feb 2019 15:38:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550619528; cv=none; d=google.com; s=arc-20160816; b=T3vdp4nAnT+J2URJIh6m7CFFONz5xTIHUZriH57tWiXJ1xHRVgKr5DqIPoCDig91ZS SLUQ/6su4yVG9ok9cbUUIziDZrwO5us43AFTulzRvD+D3njNbBCLRBeHk7IxkS6Hjg3S uzD6hx7YV7dcgBXJbQuy0rbV+GW0jovuwJTQ0r5ASa+WMo8JKaHyRy5AnHfnLGeGptyG VWwjoYBiu4bJzLa1t4QchQGiB7GsYodp1T3upf2hhMHZ7AiEa4yGE9ueX8dJCm3qrTvK EtURAQP8Y8svUBfYmx76Ngp7ebFxKrATnNbYCKluvbN7Gm5gwqrtgKgovOSDsqfnrY/j jTCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Avlfot9LMftj+Z5hvyEovLVV6ww6QQJZ+gLb7fH0KpA=; b=Onsi+VriK3iwB/j58O5Rqmp7CdSkNkL49vQp/wdm5zQxXm4Hrb5l7BTVQzH4eAamZG jJeTEVsOgJBdOeoxq4gEWZoSMBJudKxRYATaFmCpUEudZ0935oVu02pSX/8P4cm/HC2n ex15gwHA7+iLHUkcXYhTR67r/1STzAJSc7MdSg9WQyKRHLG81Id+SENP3zPykZ2uCWUL mjWBaETmz/P6QMfl5wIkznwF7nTRIF4GTJ2av45ecf47bZUB61dUJsrVtSb+4y/YAM41 hZ6DMOGb7cefitbt4w027fTHBoVLD7nf1Xg7bHlM7jiu17swIlOjaGID0LVMpygjoxMG oiVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Qt9RhMqo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si8737765pgv.299.2019.02.19.15.38.33; Tue, 19 Feb 2019 15:38:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Qt9RhMqo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729876AbfBSXhy (ORCPT + 99 others); Tue, 19 Feb 2019 18:37:54 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46801 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727375AbfBSXhy (ORCPT ); Tue, 19 Feb 2019 18:37:54 -0500 Received: by mail-lj1-f195.google.com with SMTP id v16so19106763ljg.13 for ; Tue, 19 Feb 2019 15:37:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Avlfot9LMftj+Z5hvyEovLVV6ww6QQJZ+gLb7fH0KpA=; b=Qt9RhMqo4o6locL1K2fzZy2LXcthbZYosRedyplsjLg+cgzKdPJyIiLN73x1f3V9f8 n4qybe+oRccViti//ykwCSY/JNY+fFC1Sym31lDRuXGLgdH0nqTDhW+qao41VuY0rdZN niM6C6fqtTwXlD3bfrROu1YXKjdQz8jXqAvfg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Avlfot9LMftj+Z5hvyEovLVV6ww6QQJZ+gLb7fH0KpA=; b=KtTqoedByWmxoyW0eLlVAb2FcR6VUGAcgqiJ366KqCCbVzodrG3rRObx+l8CFfTbot uMgYu9L/OfeJcdtzsHI6Qy8W9cX8uN9IcN3F6lKubwxGT6UIUh7PR2L/8ZN0e9UZjTXH hXIGc7yXIBfvL+8PnJkrk1xjNB0ixxxCwlHeCS2MOne8brCNwEVwTEJcFCk17t+fG4lu Gq+b3oWbLbYPJ9T3Mob3fXmhPaiqi/AQjaWFRfwFbY+r525xd0a+lwHTEhwqu21rK27+ yt/8Yvo62jFkb6NzRM4nwyeSiicRlmUW8F6V6+bgCoOQGis/3pHytLT61QU19WNH/jPU alUQ== X-Gm-Message-State: AHQUAuYtEtYJChc9TGXIJZR7egPiLF1ZMNYI3mEPI3ELWybPn1Kq1wFg b2PlYruULi+j27yW/Ws3FWTL7bl7qB8= X-Received: by 2002:a2e:96c9:: with SMTP id d9mr17843223ljj.133.1550619471999; Tue, 19 Feb 2019 15:37:51 -0800 (PST) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id b14sm597131lji.25.2019.02.19.15.37.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 15:37:51 -0800 (PST) Received: by mail-lf1-f52.google.com with SMTP id g12so6542261lfb.13 for ; Tue, 19 Feb 2019 15:37:51 -0800 (PST) X-Received: by 2002:a19:ec0c:: with SMTP id b12mr19485118lfa.27.1550619118494; Tue, 19 Feb 2019 15:31:58 -0800 (PST) MIME-Version: 1.0 References: <1550394300-17420-1-git-send-email-yong.wu@mediatek.com> <1550394300-17420-14-git-send-email-yong.wu@mediatek.com> In-Reply-To: <1550394300-17420-14-git-send-email-yong.wu@mediatek.com> From: Evan Green Date: Tue, 19 Feb 2019 15:31:22 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 13/22] iommu/mediatek: Add mt8183 IOMMU support To: Yong Wu Cc: Joerg Roedel , Matthias Brugger , Robin Murphy , Rob Herring , Tomasz Figa , Will Deacon , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, yingjoe.chen@mediatek.com, youlin.pei@mediatek.com, Nicolas Boichat , anan.sun@mediatek.com, Matthias Kaehlcke Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 17, 2019 at 1:08 AM Yong Wu wrote: > > The M4U IP blocks in mt8183 is MediaTek's generation2 M4U which use > the ARM Short-descriptor like mt8173, and most of the HW registers > are the same. > > Here list main differences between mt8183 and mt8173/mt2712: > 1) mt8183 has only one M4U HW like mt8173 while mt2712 has two. > 2) mt8183 don't have the "bclk" clock, it use the EMI clock instead. > 3) mt8183 can support the dram over 4GB, but it doesn't call this "4GB > mode". > 4) mt8183 pgtable base register(0x0) extend bit[1:0] which represent > the bit[33:32] in the physical address of the pgtable base, But the > standard ttbr0[1] means the S bit which is enabled defaultly, Hence, > we add a mask. > 5) mt8183 HW has a GALS modules, SMI should enable "has_gals" support. > 6) mt8183 need reset_axi like mt8173. > 7) the larb-id in smi-common is remapped. M4U should add its larbid_remap. > > Signed-off-by: Yong Wu Reviewed-by: Evan Green