Re: [PATCH 2/2] arm64: dts: qcom: agatti: Address Gunyah memory alignment needs
From: Konrad Dybcio
Date: Tue Dec 30 2025 - 08:07:29 EST
On 12/30/25 5:46 AM, Sumit Garg wrote:
> On Mon, Dec 29, 2025 at 01:43:18PM +0100, Konrad Dybcio wrote:
>> On 12/29/25 8:12 AM, Sumit Garg wrote:
>>> From: Sumit Garg <sumit.garg@xxxxxxxxxxxxxxxx>
>>>
>>> Gunyah hypervisor requires it's memory start address to be 2MB aligned.
>>> So the address map for Agatti is updated to incorporate that requirement.
>>> This should be a backwards compatible DT change which should work with
>>> legacy QHEE based firmware stack too.
>>>
>>> Signed-off-by: Sumit Garg <sumit.garg@xxxxxxxxxxxxxxxx>
>>> ---
>>> arch/arm64/boot/dts/qcom/agatti.dtsi | 4 ++--
>>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/arch/arm64/boot/dts/qcom/agatti.dtsi b/arch/arm64/boot/dts/qcom/agatti.dtsi
>>> index e705eb24160a..153916980ac0 100644
>>> --- a/arch/arm64/boot/dts/qcom/agatti.dtsi
>>> +++ b/arch/arm64/boot/dts/qcom/agatti.dtsi
>>> @@ -298,8 +298,8 @@ reserved_memory: reserved-memory {
>>> #size-cells = <2>;
>>> ranges;
>>>
>>> - hyp_mem: hyp@45700000 {
>>> - reg = <0x0 0x45700000 0x0 0x600000>;
>>> + hyp_mem: hyp@45600000 {
>>> + reg = <0x0 0x45600000 0x0 0x700000>;
>>
>> On a second thought, please add a comment like:
>>
>> /* Gunyah requires the start of the region to be 2MiB-aligned, QHEE doesn't care */
>>
>> to prevent someone "fixing" it in the future
>
> Sounds reasonable, I will add this comment on the next spin. I hope that
> I can keep you review tag with comment added.
Yeah, although as pointed out by the bot you'll need some bindings
updates to match
Konrad