On Mon, Apr 7, 2025 at 9:13 PM Vladimir 'phcoder' Serbinenko
<phco...@gmail.com> wrote:
>
> Why does it crash? Is it because of MMU or is it because of relocations?

The first, it crashes super early on before anything is even visible on screen.
I think it is essentially a firmware error where it they advertise
memory that isn't actually usable.

> Arm is trickier than x64 add we can't be sure that there is any memory under 
> 4GiB mark. Entire memory may be married above 4GiB

urgh indeed. Just learnt that it won't work on Apple hardware for example.

I suppose another way to deal with this could be a machine specific
quirk. We can identify
the affected machines via smbios but it would have to happen pretty
early on to work.

>
> Le lun. 7 avr. 2025, 21:31, Tobias Heider <tobias.hei...@canonical.com> a 
> écrit :
>>
>> Some Qualcomm Snapdragon X Elite based machines like the Lenovo Thinkpad T14s
>> crash when trying to use memory above 0xffffffff.
>> Enforcing the same 4GB limit as we do on x86_64 fixes the issue.
>>
>> Signed-off-by: Tobias Heider <tobias.hei...@canonical.com>
>> ---
>>  include/grub/arm64/efi/memory.h | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/include/grub/arm64/efi/memory.h 
>> b/include/grub/arm64/efi/memory.h
>> index c6cb32417..2c64918e3 100644
>> --- a/include/grub/arm64/efi/memory.h
>> +++ b/include/grub/arm64/efi/memory.h
>> @@ -1,6 +1,6 @@
>>  #ifndef GRUB_MEMORY_CPU_HEADER
>>  #include <grub/efi/memory.h>
>>
>> -#define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffffffffULL
>> +#define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffff
>>
>>  #endif /* ! GRUB_MEMORY_CPU_HEADER */
>> --
>> 2.48.1
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to