From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752525AbdARNZv (ORCPT ); Wed, 18 Jan 2017 08:25:51 -0500 Received: from foss.arm.com ([217.140.101.70]:52746 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751480AbdARNZt (ORCPT ); Wed, 18 Jan 2017 08:25:49 -0500 Subject: Re: [PATCH 2/2] ARM: DTS: Fix register map for virt-capable GIC To: Robin Murphy , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <1484736811-24002-1-git-send-email-marc.zyngier@arm.com> <1484736811-24002-3-git-send-email-marc.zyngier@arm.com> Cc: Mark Rutland , Heiko Stuebner , Tony Lindgren , arm@kernel.org, Magnus Damm , Russell King , Krzysztof Kozlowski , Javier Martinez Canillas , Chen-Yu Tsai , Kukjin Kim , Tsahee Zidenberg , Jason Cooper , Simon Horman , Santosh Shilimkar , Matthias Brugger , Thomas Gleixner , Sascha Hauer , Antoine Tenart , Rob Herring , =?UTF-8?Q?Beno=c3=aet_Cousson?= , Fabio Estevam , Maxime Ripard , Shawn Guo From: Marc Zyngier Organization: ARM Ltd Message-ID: Date: Wed, 18 Jan 2017 13:25:37 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/01/17 11:57, Robin Murphy wrote: > On 18/01/17 10:53, Marc Zyngier wrote: >> Since everybody copied my own mistake from the DT binding example, >> let's address all the offenders in one swift go. >> >> Most of them got the CPU interface size wrong (4kB, while it should >> be 8kB), except for both keystone platforms which got the control >> interface wrong (4kB instead of 8kB). >> >> In the couple of cases were I knew for sure what implementation > > where > >> was used, I've added the "arm,gic-400" compatible string. I'm 99% >> sure that this is what everyong is using, but short of having the > > everyone > >> TRM for all the other SoCs, I've let them alone. >> >> Signed-off-by: Marc Zyngier >> --- > [...] >> diff --git a/arch/arm/boot/dts/keystone-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi >> index 63c7cf0..07bf300 100644 >> --- a/arch/arm/boot/dts/keystone-k2g.dtsi >> +++ b/arch/arm/boot/dts/keystone-k2g.dtsi >> @@ -45,7 +45,7 @@ >> interrupt-controller; >> reg = <0x0 0x02561000 0x0 0x1000>, >> <0x0 0x02562000 0x0 0x2000>, >> - <0x0 0x02564000 0x0 0x1000>, >> + <0x0 0x02564000 0x0 0x2000>, >> <0x0 0x02566000 0x0 0x2000>; >> interrupts = > IRQ_TYPE_LEVEL_HIGH)>; >> diff --git a/arch/arm/boot/dts/keystone.dtsi b/arch/arm/boot/dts/keystone.dtsi >> index 02708ba..aaff6816 100644 >> --- a/arch/arm/boot/dts/keystone.dtsi >> +++ b/arch/arm/boot/dts/keystone.dtsi >> @@ -35,7 +35,7 @@ >> interrupt-controller; >> reg = <0x0 0x02561000 0x0 0x1000>, >> <0x0 0x02562000 0x0 0x2000>, >> - <0x0 0x02564000 0x0 0x1000>, >> + <0x0 0x02564000 0x0 0x2000>, >> <0x0 0x02566000 0x0 0x2000>; >> interrupts = > IRQ_TYPE_LEVEL_HIGH)>; > > FWIW I happen to have some public Keystone TRMs handy from my DMA offset > investigations, and both K2G and K2H explicitly say it's a GIC-400 too. Ah, brilliant. I'll update the patch accordingly. Thanks, M. -- Jazz is not dead. It just smells funny...