Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933302AbbLOJNd (ORCPT ); Tue, 15 Dec 2015 04:13:33 -0500 Received: from mail-cys01nam02on0048.outbound.protection.outlook.com ([104.47.37.48]:26917 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933146AbbLOJN1 (ORCPT ); Tue, 15 Dec 2015 04:13:27 -0500 X-Greylist: delayed 59213 seconds by postgrey-1.27 at vger.kernel.org; Tue, 15 Dec 2015 04:13:27 EST Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=bestguesspass action=none header.from=xilinx.com; Date: Tue, 15 Dec 2015 01:14:50 -0800 From: =?utf-8?B?U8O2cmVu?= Brinkmann To: Marc Zyngier CC: Mark Rutland , , "Pawel Moll" , Ian Campbell , Catalin Marinas , Will Deacon , Michal Simek , , "Rob Herring" , Kumar Gala , "Alistair Francis" , Subject: Re: [PATCH] ARM64: ZynqMP: DT: Fix GIC's 'reg' property Message-ID: <20151215091450.GI3358@xsjsorenbubuntu> References: <1450110700-14152-1-git-send-email-soren.brinkmann@xilinx.com> <20151214164613.GH21356@leverpostej> <566EF5CC.4070000@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <566EF5CC.4070000@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-22002.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.100;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(164054003)(479174004)(24454002)(189002)(377424004)(199003)(86362001)(85182001)(575784001)(47776003)(23676002)(33656002)(87936001)(33716001)(50466002)(5001960100002)(189998001)(4001350100001)(11100500001)(92566002)(110136002)(36386004)(81156007)(85202003)(106466001)(76506005)(57986006)(54356999)(63266004)(50986999)(76176999)(1076002)(1096002)(4001150100001)(83506001)(6806005)(586003)(19580395003)(19580405001)(1220700001)(5008740100001)(2950100001)(77096005)(107986001)(5001870100001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1NAM02HT199;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(8251501001);SRVR:SN1NAM02HT199; X-Microsoft-Antispam-PRVS: <15a94fd0884c4fd9a50f40654563c952@SN1NAM02HT199.eop-nam02.prod.protection.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(3002001)(10201501046);SRVR:SN1NAM02HT199;BCL:0;PCL:0;RULEID:;SRVR:SN1NAM02HT199; X-Forefront-PRVS: 07915F544A X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2015 09:13:24.9674 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM02HT199 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3001 Lines: 81 On Mon, 2015-12-14 at 05:01PM +0000, Marc Zyngier wrote: > Mark, > > On 14/12/15 16:46, Mark Rutland wrote: > > On Mon, Dec 14, 2015 at 08:31:40AM -0800, Soren Brinkmann wrote: > >> Signed-off-by: Soren Brinkmann > >> --- > >> arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 6 +++--- > >> 1 file changed, 3 insertions(+), 3 deletions(-) > >> > >> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi > >> index 857eda5c7217..b5d1facadf16 100644 > >> --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi > >> +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi > >> @@ -80,10 +80,10 @@ > >> gic: interrupt-controller@f9010000 { > >> compatible = "arm,gic-400", "arm,cortex-a15-gic"; > >> #interrupt-cells = <3>; > >> - reg = <0x0 0xf9010000 0x10000>, > >> - <0x0 0xf902f000 0x2000>, > >> + reg = <0x0 0xf9010000 0x1000>, > >> + <0x0 0xf9020000 0x20000>, > >> <0x0 0xf9040000 0x20000>, > >> - <0x0 0xf906f000 0x2000>; > >> + <0x0 0xf9060000 0x20000>; > > > > I'm confused. These sizes don't look right for GIC-400. Is this a custom > > GIC? > > Probably an implementation that obey the SBSA requirement of aliasing > the first 4kB of the CPU interface on a 64kB page, and the second one on > the following 64kB page. See the APM system for an example of such a > thing. I'm more concerned about the GICH region (3rd one), which has no > reason to be bigger than 4kB. Xilinx didn't publish the memory map yet (at least I didn't see it in the public docs), so, let me give some excerpts: GICD: GICD_CTLR 0xF9010000 32 rw 0x00000000 Distributor Control Register ... GICD_CIDR3 0xF9010FFC 32 ro 0x000000B1 Component ID3 Register GICC: GICC_CTLR 0xF9020000 32 rw 0x00000000 CPU Interface Control Register ... GICC_DIR 0xF9030000 32 wo x Deactivate Interrupt Register GICH: GICH_HCR 0xF9040000 32 rw 0x00000000 Hypervisor Control Register ... GICH_LR3_Alias7 0xF9050F0C 32 rw 0x00000000 List Register 3 GICV: GICV_CTLR 0xF9060000 32 rw 0x00000000 Virtual Machine Control Register ... GICV_DIR 0xF9070000 32 wo x VM Deactivate Interrupt Register Regarding the GICH area, it looks like it starts at 0xF9040000 and the alias blocks to access the other processor interfaces start at 0xF9050000. > > > Did this ever work wit hteh old offsets and sizes? > > It probably dies when trying to use EOImode==1. Without knowing what parts we really exercise, yes, the system comes up fine so far, but I recently found Linux boot hanging on QEMU and it seemed to be related to time not progressing (fast enough). I found a different DT using the values proposed here and that fixed the hang for me. Thanks, Sören -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/