Devicetree
 help / color / mirror / Atom feed
From: Hans de Goede <johannes.goede@oss.qualcomm.com>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] arm64: dts: qcom: hamoa: Fix xbl_tmp_buffer_mem size
Date: Mon, 25 May 2026 14:46:06 +0200	[thread overview]
Message-ID: <7ebbddb0-175b-4023-91ee-93d23e5162ba@oss.qualcomm.com> (raw)
In-Reply-To: <7d2aedb2-4bcd-4453-80be-5c7ca6bdff95@oss.qualcomm.com>

Hi,

On 25-May-26 14:29, Konrad Dybcio wrote:
> On 5/25/26 1:47 PM, Hans de Goede wrote:
>> The EFI memtable (shown when booting with efi=debug) shows that the
>> xbl_tmp_buffer_mem region size is 0x1c0000 bytes large not 0xc00000 bytes:
>>
>> efi:   0x000082800000-0x0000829bffff [Reserved    |
>> efi:   0x0000829c0000-0x000083efffff [Conventional|
>>
>> This fix aligns the size with the EFI reported size and makes /proc/iomem
>> correctly show mem blocks matching the EFI memmap:
>>
>> 82800000-829bffff : reserved
>> 829c0000-83efffff : System RAM
>>
>> Instead of:
>>
>> 82800000-833fffff : reserved
>> 83400000-83efffff : System RAM
>>
>> before this change
>>
>> Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
>> ---
>>  arch/arm64/boot/dts/qcom/hamoa.dtsi | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/hamoa.dtsi b/arch/arm64/boot/dts/qcom/hamoa.dtsi
>> index de0f2346cb38..5a2e84365901 100644
>> --- a/arch/arm64/boot/dts/qcom/hamoa.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/hamoa.dtsi
>> @@ -582,7 +582,7 @@ tz_stat_mem: tz-stat@82700000 {
>>  		};
>>  
>>  		xbl_tmp_buffer_mem: xbl-tmp-buffer@82800000 {
>> -			reg = <0x0 0x82800000 0x0 0xc00000>;
>> +			reg = <0x0 0x82800000 0x0 0x1c0000>;
> 
> FWIW the reference memory map shows a contiguous block of:
> 
> 0x8280_0000 -> "no reclaim XBL scratch_buffer2"
> 0x829c_0000 -> "reclaimable XBL scratch_buffer"
> 0x83f0_0000-0x8400_0000 -> "no reclaim xbl scratch_buffer1"

Thanks, so the first part here 0x8280_0000 - 0x829c_0000
aligns with the EFI reservation and with the dts reservation
after my patch.

0x829c_0000 - 0x83f0_0000 being reclaimable matches with
both EFI + the dts (old and new with a different start)
having this as usable RAM.

The 0x83f0_0000-0x8400_0000 area seems to be marked as
reserved by neither EFI nor the current dts...

With the first part of the reference memory map aligning
with what EFI shows, I think this patch is correct.

I wonder if we should do anything about the 0x83f0_0000-0x8400_0000
range though ?

Regards,

Hans




> 
> Konrad


  reply	other threads:[~2026-05-25 12:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-25 11:47 [PATCH 0/2] arm64: dts: qcom: hamoa: reserved-memory changes Hans de Goede
2026-05-25 11:47 ` [PATCH 1/2] arm64: dts: qcom: hamoa: Fix xbl_tmp_buffer_mem size Hans de Goede
2026-05-25 12:29   ` Konrad Dybcio
2026-05-25 12:46     ` Hans de Goede [this message]
2026-06-16 11:04       ` Konrad Dybcio
2026-06-16 20:40         ` Hans de Goede
2026-05-25 11:47 ` [RFC 2/2] arm64: dts: qcom: hamoa: Remove mem-reservations which are already covered by EFI Hans de Goede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7ebbddb0-175b-4023-91ee-93d23e5162ba@oss.qualcomm.com \
    --to=johannes.goede@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox