Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp403734ybc; Tue, 19 Nov 2019 03:19:36 -0800 (PST) X-Google-Smtp-Source: APXvYqwez9fOjaGaHEzHcl9sY2o7Q7b5FHcvJSO659fbeVgk5Ji061wrdsc40SINuzv+AvSs1OoV X-Received: by 2002:a1c:39c2:: with SMTP id g185mr4798857wma.88.1574162375880; Tue, 19 Nov 2019 03:19:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574162375; cv=none; d=google.com; s=arc-20160816; b=uuQHfCGj6T0rddEBA71TB8k1AE2+A5WNdTQVGdBvpCeQIz4DqB9bUW75xFzS/86eGR lr6QHvLsqi4RF/kLsnXaMUwmZwlV+SbPq+nP0HDdeZFOSzxteiXyPs0th91wKxKdyHti eC0KKsaUAMIfevTo262H4JVju1Vvnm7x2h4GayJUtsIw6dydO50T0AwDUxElutIAQLri jUuW9NXQIQFQh8ETv1iU5XROp9jkImGBdTtonCXAMW+5uj2v3XvgQXf1irAKPnKvUHoH 04uIFSyWlwzcEK7dGRYsCRVFgWkCNFCErAzL2eIfZICXOKCD+Sbyl4t0WZYf9tQ+sEuV 6LjQ== 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=+WMcpRW4lnCnGaCoalyJinBbyodHMx/iel3p+Sm393I=; b=ZDmIsEdm2DQwhVVXwcVKq2lQKFhbbYOzgrS1snAvoBoIniQLWVtlFwosfR4HMsoecg JqBOKoa2cINWaHcDFWDjm7V+lJQxNa1AYpU426AkInTGuyEKgeVBK75r9fKeFllDLmNq Y1lTFTcPwqpNyoEgYIJeeMDIzhKq8I0JbO1SDEeMw6qXBCavMUJ0grbESB8JWaQ5VRg2 2LEH9wiwfLu74bpDR1yOCqaDZbME8jj2qQ4uLFdCLqsHtYjgwJmWQNYNV4rG0VrYmODA v2VU52gsNp5gPet8oi4ofF1YwUBnk51IwVrzcNsdM996Pl1CTnxp02xAfw1IJK2cBi25 Gy1Q== 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 b28si18474600edc.400.2019.11.19.03.19.10; Tue, 19 Nov 2019 03:19:35 -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 S1727733AbfKSLPc (ORCPT + 99 others); Tue, 19 Nov 2019 06:15:32 -0500 Received: from mx2.suse.de ([195.135.220.15]:55640 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727699AbfKSLPb (ORCPT ); Tue, 19 Nov 2019 06:15:31 -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 0E48BBA0D; Tue, 19 Nov 2019 11:15:30 +0000 (UTC) Subject: Re: [PATCH 5/7] ARM: dts: rtd1195: Introduce r-bus To: James Tai Cc: "linux-realtek-soc@lists.infradead.org" , Mark Rutland , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Rob Herring , "linux-arm-kernel@lists.infradead.org" References: <20191111030434.29977-1-afaerber@suse.de> <20191111030434.29977-6-afaerber@suse.de> <960a80b9-b1bf-3709-bbb7-fc2a3c3ae1da@suse.de> <753c18eee3fb4e9ea25d42798542b3dd@realtek.com> From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Organization: SUSE Software Solutions Germany GmbH Message-ID: Date: Tue, 19 Nov 2019 12:15:28 +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: <753c18eee3fb4e9ea25d42798542b3dd@realtek.com> 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 Hi James, Am 18.11.19 um 07:53 schrieb James Tai: >> So another question, applicable to all SoCs: This reserved Boot ROM area at >> the start of the address space, here of size 0xa800, is that copied into RAM, or >> is that the actual ROM overlapping RAM? If the latter, we should exclude it >> from /memory@0's reg (making it /memory@a800), and add it to soc's ranges >> here for correctness. >> > Yes, we should exclude it from /memory@0's reg. OK, will look into it. > >> With the follow-up question: Is it correct that, given the size 0xa800, I have a >> gap between /memreserve/s from 0xa800 to 0xc000, or should we reserve that >> gap by extending the next /memreserve/ or inserting one? > > We should reserve memory address from 0x0000 to 0xa800 for the internal ROM. Please see [1] - I had already updated the second reservation to start at 0xa800 and extended it to 0x100000 before your response here. The previous "bootcode" size of 0xc000 can be found here: https://github.com/BPI-SINOVOIP/BPI-M4-bsp/blob/master/linux-rtk/arch/arm/mach-rtd119x/include/mach/memory.h https://github.com/BPI-SINOVOIP/BPI-M4-bsp/blob/master/linux-rtk/arch/arm/boot/dts/realtek/rtd119x/rtd-119x-horseradish.dts As you can see the 0xc000 and 0xf4000 were hardcoded and did not depend on SYS_BOOTCODE_MEMSIZE... For later SoCs I saw some FIXME(?) comment that area up to 0x100000 was reserved due to some Jira ticket and should get fixed? Any insights on what is in that memory range causing problems? Regards, Andreas [1] https://patchwork.kernel.org/patch/11248033/ -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)