Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5109330pxj; Wed, 9 Jun 2021 09:19:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/7O1XgGbez6auxUsADv/MN0UwJtniYT3bMGTCpShc/xJ1A2vysSULb06qpkRnfP/Mvjlq X-Received: by 2002:aa7:c782:: with SMTP id n2mr241254eds.77.1623255564205; Wed, 09 Jun 2021 09:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623255564; cv=none; d=google.com; s=arc-20160816; b=NETf5IwpYY3vUR3k7rrC31VMebTLqiIHZHCzKKLoK7jYXDcOkdw5HXEUibckXBukYT rydemDsN/cFFnNIxTq/m9bP499MwsC7lYTmizAVSe9DKx4MsSBlMcAfiat+HvU+fa+wU cddZ58cpFGp9OAQ6y0xa5k5u3zkKALN0V96Pk98pP95q0o2VK+VDGqIuxPGzmoau86hQ I2N5JMoQmkDnpetprR37R+n1jnimDvyqIOZN9gd81lTPNm5O6YBgrMGWM6W+e+90w7cW AOUaKk8G2Gr8x7ozRWCfMKQGnZcxFEQKko4axNflQZMUnlZCNdoZhzCqTu8OgAH1PvzY csZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=/YYW8+5hUOTZSjbo9YoBErRYYOKy+9jxlYTRR6frC90=; b=ZtIV6neewOEukSOJVRi4NN9NCz5JUEhzhthnL4XDycAyqkHCcCZPX4mBFfxW46V5zY ed/4ztO7YI1tLUP8IYR1n09P6CrclM/K2yIY+wRo5wKHdynr3AXyvAbTemqswH2MlcBt ebJHMLXK6Ub5rQko1/Pr8sMjBlP0dCMECKCtbAsK+uwLeDaum8SYibGCvRhhTG54m4Nq YAgqfWIu6dhKfNmMkyz4Twmj+Bw5L7bhF8/PtgvnGgmOlLgobi42PwUbHXNxdFZ5ZNWA vXnTur8eal0WXSMlQrgCTw6aZXJdGL6AywjZ3O6mUIKJmYW4lPUr0G2PCV2eRDye2GrN ZuKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=agDtikec; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c25si153683ejj.528.2021.06.09.09.18.59; Wed, 09 Jun 2021 09:19:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=agDtikec; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234058AbhFIPYX (ORCPT + 99 others); Wed, 9 Jun 2021 11:24:23 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:52902 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236229AbhFIPYP (ORCPT ); Wed, 9 Jun 2021 11:24:15 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 159FME8l044782; Wed, 9 Jun 2021 10:22:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1623252134; bh=/YYW8+5hUOTZSjbo9YoBErRYYOKy+9jxlYTRR6frC90=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=agDtikecCqXl8WjLJSxZfSnzC6Tw1PbP/fQ4A0dvbTK3bWy6YoNJcEZK24Yw4yLix kncT5QtzxthuNPTv27qLtxJttSMXYxzJLMvJxmskSXkvf/a3TwG/SfmToVENjREnim tmBVqy8Iwk74Y5RzAfXh3T7Z1ya7Exy97wIzigyY= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 159FMEUN109002 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Jun 2021 10:22:14 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 9 Jun 2021 10:22:14 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Wed, 9 Jun 2021 10:22:14 -0500 Received: from [10.250.149.110] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 159FM8kI081547; Wed, 9 Jun 2021 10:22:10 -0500 Subject: Re: [PATCH v2] arm64: dts: ti: k3-am64-main: Update the location of ATF in SRAM and increase its max size To: Lokesh Vutla CC: Vignesh Raghavendra , Suman Anna , Kishon Vijay Abraham I , Nishanth Menon , Tero Kristo , Rob Herring , , , References: <20210607133806.18158-1-a-govindraju@ti.com> From: Aswath Govindraju Message-ID: Date: Wed, 9 Jun 2021 20:52:07 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lokesh, On 09/06/21 7:59 pm, Lokesh Vutla wrote: > > > On 07/06/21 7:08 pm, Aswath Govindraju wrote: >> Due to a limitation for USB DFU boot mode, SPL load address has to be less >> than or equal to 0x70001000. So, load address of SPL and ATF have been >> moved to 0x70000000 and 0x701a0000 respectively. >> >> Also, the maximum size of ATF has been increased to 0x1c000 [1]. >> >> Therefore, update ATF's location and maximum size accordingly in the device >> tree file. >> >> [1] - https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/commit/?id=2fb5312f61a7de8b7a70e1639199c4f14a10b6f9 >> >> Signed-off-by: Aswath Govindraju >> --- >> arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi >> index ca59d1f711f8..fcd12b6f10f6 100644 >> --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi >> +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi >> @@ -13,8 +13,8 @@ >> #size-cells = <1>; >> ranges = <0x0 0x00 0x70000000 0x200000>; >> >> - atf-sram@0 { >> - reg = <0x0 0x1a000>; >> + atf-sram@1a0000 { >> + reg = <0x1a0000 0x1c000>; > > After thinking a bot more, isn't size be 0x20000? > ATF is allocated with 125KB no? no point keeping the ~3 as hole IMO. > The max size of ATF as defined above in [1] is 0x1c000 and as the argument has to reflect it I have modified it to the same. Thanks, Aswath > Thanks and regards, > Lokesh > >> }; >> }; >> >>