Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp160600pja; Fri, 22 Nov 2019 04:52:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzh19JPa9fI6zdiyp/B9NzUEbMpWPv/zrcX0lqf7/uXpymLH7Iz1lxnqF7/GPJr53zqLMHh X-Received: by 2002:a17:906:edd5:: with SMTP id sb21mr21383406ejb.138.1574427147107; Fri, 22 Nov 2019 04:52:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574427147; cv=none; d=google.com; s=arc-20160816; b=iFtafSVG5bacQeo7QWrHVXIcGOxbcIOaBkOyqZdoTiXNKHkHgO9+shwhwcVGVzW/9D Q3J6hECMf0e9bsB10+HpDX+5yjEfODD1byN99hgZYMzlY5wC4YJw6PZVJ1RYSnaNreSV EbnXzL85hQ3GjVDCVpGp8q6er9vFo2PqVy4psls3meQGqoJ+oEkHvIcE4gyD55CJguKR Y55SKTmPTM4ZLxllGy8THJzN6uCXX5fmrxex0J6GH0CX15n5n/7cIYeGWZDI0EFekKK2 iXwFjl193s10V4ndvVIP64v67L7H+SjqmOLdftU6Z9yYyIcc2DbysXgAw5l2d8Z3IPJ1 C3ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=NTf7J+Utbk5aluq24QwNbabHfTmr/JLQjaXvT27Ejcg=; b=tz7avqTvzO5YzJ26YuTZ4Qj7a4aubBfsOdn+ORaCTTHY+EPrsvHbNYArssVIzXysuf 8AZlVU13SQoI1xvzVCbMeWfRJCYPQ8iJcI6eHu3576cRcrug4qjjm2ZmFjLqOAl7/wEU oTLS6uK9r/7rtSLrU9niLrWiAUJktAq8bvIdH8Hl/dWgn3FXwCqX+9ycqV+J28zlM4ab HUG73Q1a9W7jf+OpNKMJjaa+mFNRihCpd3Ov+bf5gFuYc+/XrOuI4E7lmq+17TxYYeTE yU78q1zLUVJC+LBk95dSy/v0GUqiy1QEiFqOQAl1ixdrgGjC3ydOuH8R51HDgIhtxUk+ JLdQ== 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 k55si226978ede.105.2019.11.22.04.52.02; Fri, 22 Nov 2019 04:52:27 -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; 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 S1727332AbfKVMsn (ORCPT + 99 others); Fri, 22 Nov 2019 07:48:43 -0500 Received: from mx2.suse.de ([195.135.220.15]:56152 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726526AbfKVMsn (ORCPT ); Fri, 22 Nov 2019 07:48:43 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 964A4B1B1; Fri, 22 Nov 2019 12:48:41 +0000 (UTC) Subject: Re: [PATCH] arm64: dts: realtek: Add Realtek rtd1619 and mjolnir To: Marc Zyngier , James Tai Cc: Mark Rutland , Rob Herring , "'linux-kernel@vger.kernel.org'" , linux-arm-kernel@lists.infradead.org, linux-realtek-soc@lists.infradead.org References: <43B123F21A8CFE44A9641C099E4196FFCF91BEFA@RTITMBSVM04.realtek.com.tw> <25fdd8eb-f1a0-82ae-9c4b-22325b163b0e@suse.de> <43B123F21A8CFE44A9641C099E4196FFCF920024@RTITMBSVM04.realtek.com.tw> <7a05ac2c-00bc-b2ac-0a33-be0242d33188@suse.de> <309cd67da48e4702ae3dcc4ca8ab4309@realtek.com> <279fd3a3-17dc-5796-f0b0-e39eb919081f@suse.de> <7c94c59649c04442886a98c057c07654@realtek.com> <23f44f6f4aec90b412d5d7ff6f4d95f1@www.loen.fr> From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Organization: SUSE Software Solutions Germany GmbH Message-ID: <80d0aed8-3b85-1312-1091-0ced3ab1f5d2@suse.de> Date: Fri, 22 Nov 2019 13:48:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <23f44f6f4aec90b412d5d7ff6f4d95f1@www.loen.fr> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 22.11.19 um 10:43 schrieb Marc Zyngier: > On 2019-11-17 15:39, James Tai wrote: >> Hi Andreas, >> >>> > Sorry for my misunderstanding. The RAM region don't require two cells >>> > for memory nodes, so I'll fix it in v3 patch. >>> >>> Should I then also change RTD1395 to use only one cell, or does it >>> support >>> more RAM than RTD1619? >> >> Yes, you can. The memory capacity of RTD1395 and RTD1619 are the same. >> >>> By my calculation 0x98000000 is less than 2.4 GiB! So, does RAM continue >>> between r-bus and GIC, similar to how it does on RTD1195? Then we >>> need to >>> exclude those RAM ranges from the SoC node (adjusting 0x68000000). >> >> We need to reserve memory address for r-bus and GIC and exclude those >> RAM range from the SoC node. > > Memory for the GIC? For what purpose? MMIO, for GICD and GICR. It's about fixing the ranges of the /soc node: My proposed ranges = <0x98000000 0x98000000 0x68000000>; needs to be split, with a gap between r-bus and GIC for continued RAM. https://github.com/afaerber/linux/commit/1884ec6a533c9d5c2b6ca40ee138ff7e8312b6c8 This goes back to Rob's review of RTD1295 [1], where we then for lack of memory space documentation assumed that everything beyond 2 GiB would be potential register space. Here we're dealing with up to 4 GiB though. James, are you planning to send a fix-up patch here? If not, you'll need to tell me what values to use, e.g., is there a NOR flash region on RTD1619, and does RAM continue also in between and after GIC, or is there some timer register behind it, like on RTD1195? ranges = <0x00000000 0x00000000 0x00030000>, // ??? boot ROM size <0x98000000 0x98000000 0x00200000>, // r-bus // anything here? e.g., NOR flash? <0xff100000 0xff100000 0x00010000>, // GICD <0xff140000 0xff140000 0x000c0000>; // GICR // anything here? e.g., timer enable? ranges = <0x00000000 0x00000000 0x00030000>, <0x98000000 0x98000000 0x00200000>, <0xff100000 0xff100000 0x00100000>; // whole GIC? Regards, Andreas [1] https://patchwork.kernel.org/patch/9588611/ -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)