Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp705563imm; Wed, 4 Jul 2018 04:39:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcEohbK1+0OOZrf6UCOC3+Fq3Wsl6NpHLUd5O4k9g5EPxj6tcJh3wHMAO5iYU5flYqR2cJu X-Received: by 2002:a63:e0b:: with SMTP id d11-v6mr1632507pgl.134.1530704360380; Wed, 04 Jul 2018 04:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530704360; cv=none; d=google.com; s=arc-20160816; b=QL8Xcq1nbyc/eAK5tfIb6yZyL3vrcfn2lnvCHs9MSi4L2pNBADOGpDms9MFmWPW4m/ BdTBsrppanky9LkMgOWj55jyj9/a1k8HvKVItaD/DipfXSxGOWdC/1c158UBUo/jyy7j V0zCg/5GiWaTXba43wv9onPUf8yZDShzJMHqqbYXL+YXkFBukfqlugOOwJBoJvAQ5FCi /tGHYXNNmRQDUN4lNgJVsVwPgxpjMBl9diaTYYKSlWz7ma4dUK0sjzwM0tS38r5RP0aW izMnjN/z7jnWF6q4/zl7eDDY1evZzHH5xIm8df+c0P2L63w08ThfwHk0qIVcVieNENq2 sgzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=Kj2h/Am573wvy+MtDx3bz8W2IVNKzo+HlbD1vTMb1k0=; b=BLuKivRnGu6IAL6AmYWhiyYf3g6p6ffM0FVRVB/LBtPqNJhz5VDub/gQPMeJgVWYte 1ggCgV5xsiwuMZB1CXIdmXwpRzqqLN1RaYf8BOoj9Gkj+N++FnG3D910hpZNE3N5tCQP s7P3d43s89TeayoWvauYMafZjajlqTliGRKKuV++biCngkTwJENhfY7YkYEzPSW2oqhd EOWIicZK5b3Ho3xYRxPkTVAYE3S+nOtzSh3WOOa6rzTsaWCyCoLfpnGso/CqquCao7aJ CSd1b/qqG3kEK8HsGrI/chPcn6JwNyZpcuYf9oRIFAvdNkSjuIMyEPy4XztksWA+jg/6 83Og== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1-v6si3492058pfb.32.2018.07.04.04.39.06; Wed, 04 Jul 2018 04:39:20 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934055AbeGDLiR (ORCPT + 99 others); Wed, 4 Jul 2018 07:38:17 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:4004 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932717AbeGDLiQ (ORCPT ); Wed, 4 Jul 2018 07:38:16 -0400 X-UUID: 44841953b9aa41b09bef5ee431019d6e-20180704 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 652880083; Wed, 04 Jul 2018 19:38:12 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 4 Jul 2018 19:38:09 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 4 Jul 2018 19:38:09 +0800 Message-ID: <1530704289.16183.6.camel@mtkswgap22> Subject: Re: [PATCH v3 4/4] arm64: dts: mediatek: add mt6765 support From: Mars Cheng To: Marc Zyngier CC: Matthias Brugger , Rob Herring , Greg Kroah-Hartman , "CC Hwang" , Loda Chou , , , , , , Date: Wed, 4 Jul 2018 19:38:09 +0800 In-Reply-To: <304dc0a7-bcba-961c-40f4-b324ecc2d003@arm.com> References: <1530669174-17623-1-git-send-email-mars.cheng@mediatek.com> <1530669174-17623-5-git-send-email-mars.cheng@mediatek.com> <1530690473.16183.3.camel@mtkswgap22> <304dc0a7-bcba-961c-40f4-b324ecc2d003@arm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc On Wed, 2018-07-04 at 08:59 +0100, Marc Zyngier wrote: > On 04/07/18 08:47, Mars Cheng wrote: > > Hi Marc > > > > On Wed, 2018-07-04 at 08:35 +0100, Marc Zyngier wrote: > >> On 04/07/18 02:52, Mars Cheng wrote: > >>> This adds basic chip support for MT6765 SoC. > >>> > >>> Signed-off-by: Mars Cheng > >>> --- > >>> arch/arm64/boot/dts/mediatek/Makefile | 1 + > >>> arch/arm64/boot/dts/mediatek/mt6765-evb.dts | 33 ++++++ > >>> arch/arm64/boot/dts/mediatek/mt6765.dtsi | 155 +++++++++++++++++++++++++++ > >>> 3 files changed, 189 insertions(+) > >>> create mode 100644 arch/arm64/boot/dts/mediatek/mt6765-evb.dts > >>> create mode 100644 arch/arm64/boot/dts/mediatek/mt6765.dtsi > >>> > >> > >> [...] > >> > >>> + > >>> + gic: interrupt-controller@c000000 { > >>> + compatible = "arm,gic-v3"; > >>> + #interrupt-cells = <3>; > >>> + #address-cells = <2>; > >>> + #size-cells = <2>; > >>> + #redistributor-regions = <1>; > >>> + interrupt-parent = <&gic>; > >>> + interrupt-controller; > >>> + reg = <0 0x0c000000 0 0x40000>, // distributor > >>> + <0 0x0c100000 0 0x200000>, // redistributor > >>> + <0 0x0c400000 0 0x40000>; // gicc > >> > >> For the second time: please add *all* the GIC CPU interface regions, > >> described in the Cortex-A53 TRM[1] (GICC, GICH, and GICV). > >> > > > > MT6765 has no GICH/GICV/ITS in mediatek design. Have confirmed with our > > designer. > > The only way *not* to have GICH or GICV is to assert GICCDISABLE on the > CPU, in which case you don't have GICC either, nor any support for the > GICv3 at all. So either the designer is wrong or the documentation is > wrong. Which one is it, do you think? > > As for the ITS, that's a perfectly optional part of the design, and not > part of the CPU. > Clarified with our designer. It is our misunderstanding for TRM. GICV/GICH do exist. Will add them in v4 soon. And fix MT6797 in another patch. Thanks. > > MT6797 had similar question from you. Sorry for not mentioned it first. > > > > https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.infradead.org_pipermail_linux-2Dmediatek_2017-2DFebruary_008074.html&d=DwICaQ&c=X9NHckmGz7LNQmqtvpDCYVnn6eFXNivfZeknqiAo-n0&r=Ph_SbcClVGRWmGxVhfr-5CZF9ffiUOE7TZ47ns4ROh4&m=iACLXUO5vXXZCPSvhbBKZFXy0bXdO8f4kbgy6RLi2QM&s=2N4qyy0aMytzNgObeyU4tvCDREX4U1x4oeNgvZwUxvM&e= > > Well, that's wrong too. > > M.