[PATCH] kern/efi/mm: try allocating in the lower 4GB first

2025-04-11 Thread Tobias Heider
On arm64 we can't restrict memory usage below 0x as we do on x86 because there is no guarantee memory in that range exists at all (an example is Apple Silicon). Instead, try to allocate in the lower 4GB range first and fall back to the entire available address space if that did not work. T

Re: [PATCH] kern/efi/mm: try allocating in the lower 4GB first

2025-04-11 Thread Vladimir 'phcoder' Serbinenko
How early is this bug? Do you see "Welcome to GRUB"? Does recompiling with fPIC help? Do you have memory map dump and paging table dump? Regards Vladimir 'phcoder' Serbinenko Le ven. 11 avr. 2025, 13:39, Tobias Heider a écrit : > On arm64 we can't restrict memory usage below 0x as we do

Re: [PATCH] ia64: Disable optimizations using floating-point arithmetics

2025-04-11 Thread Daniel Kiper
On Thu, Apr 10, 2025 at 06:34:26PM +0300, Vladimir 'phcoder' Serbinenko wrote: > Regards > Vladimir 'phcoder' Serbinenko > > Le jeu. 10 avr. 2025, 18:32, Daniel Kiper a écrit : > On Thu, Apr 10, 2025 at 01:45:37PM +0300, Vladimir Serbinenko wrote: > > They don't work in ski emulator and

[PATCH 1/2] Include function name on debug traces

2025-04-11 Thread Leo Sandoval via Grub-devel
Together with the line number, the debug trace with the function name provides a bit more context and could be useful when inspecting log. Signed-off-by: Leo Sandoval --- grub-core/kern/misc.c | 4 ++-- include/grub/misc.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git

[PATCH 2/2] Prepend debug traces with absolute and relative timestamps

2025-04-11 Thread Leo Sandoval via Grub-devel
From: Renaud Métrich Debug traces with timestamps are useful to detect performance issues. To enable it, include '--with-debug-timestamps' argument on the configure step. Signed-off-by: Renaud Métrich Signed-off-by: Leo Sandoval --- config.h.in | 1 + configure.ac | 18 +++

[PATCH v3 2/3] blsuki: Check for mounted /boot in emu

2025-04-11 Thread Alec Brown via Grub-devel
Irritatingly, BLS defines paths relatives to the mountpoint of the filesystem which contains its snippets, not / or any other fixed location. So grub2-emu needs to know whether /boot is a separate filesystem from / and conditionally prepend a path. Signed-off-by: Robbie Harwood Signed-off-by: Ale

[PATCH v3 0/3] Add commands to load BLS and UKI files

2025-04-11 Thread Alec Brown via Grub-devel
v3: - Added --enable-fallback option to check the default directory if the --path option isn't able to find entries. - Added the function blsuki_set_find_entry_info() to help set the path and device of BLS and UKI entries. - Removed grub_strchr uses in uki_read_osrel(). - Converted the st

[PATCH v3 1/3] blsuki: Add blscfg command to parse Boot Loader Specification snippets

2025-04-11 Thread Alec Brown via Grub-devel
The BootLoaderSpec (BLS) defines a scheme where different bootloaders can share a format for boot items and a configuration directory that accepts these common configurations as drop-in files. Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas Signed-off-by: Will Thompson Signed

[PATCH v3 3/3] blsuki: Add uki command to load Unified Kernel Image entries

2025-04-11 Thread Alec Brown via Grub-devel
A Unified Kernel Image is a single UEFI PE file that combines a UEFI boot stub, a Linux kernel image, an initrd, and further resources. The uki command will locate where the uki file is and create a GRUB menu entry to load it. Signed-off-by: Alec Brown --- docs/grub.texi | 26 +++

RE: [PATCH v2 3/3] blsuki: Add uki command to load Unified Kernel Image entries

2025-04-11 Thread Alec Brown via Grub-devel
On Tue, Apr 1, 2025 at 6:35 AM, Vladimir 'phcoder' Serbinenko wrote: > Le jeu. 27 mars 2025, 23:44, Alec Brown a écrit : > >> On Wed, Mar 26, 2025 at 5:43 AM, Vladimir 'phcoder' Serbinenko < >> phco...@gmail.com> wrote: >> >> >> >> >> >> >> >> +#ifdef GRUB_MACHINE_EFI >> >> +#include >> >> +#in