UEFI: Panic "No volume contained a Limine configuration file" when firmware refuses the transfer size its granularity implies
On an HP OmniBook X Laptop 14-ks000 (NVIDIA N1X, aarch64; board 8F22; BIOS F.05), Limine 12.9.3 and 12.9.6 panic at every boot:
WARNING: Could not meaningfully match the boot device handle with a volume.
Using the first volume containing a Limine configuration!
PANIC: No volume contained a Limine configuration file
The ESP is a healthy FAT32 partition on a GPT disk (protective MBR, valid primary and backup headers), and the firmware loads EFI binaries from it.
Diagnosis
A 12.9.6 build with prints in index_disks(), disk_read_sectors(), and the GPT checks in common/lib/part.s2.c reports, for the internal NVMe disk:
| Block I/O property | Value |
|---|---|
| Revision | 0x2001f |
| BlockSize | 512 |
| LastBlock | 0x773bd2af |
| IoAlign | 4 |
| OptimalTransferLengthGranularity | 512 |
ReadBlocksof 512 bytes at LBA 0 (the read test inindex_disks()) succeeds.fastest_xfer_sizeresolves to 512 blocks, so the volume cache reads 0x40000 bytes per transfer.ReadBlocksof 0x40000 bytes at LBA 0 returnsEFI_OUT_OF_RESOURCES(0x8000000000000009), on every attempt.gpt_protective_mbr()cannot read LBA 0, sogpt_get_part()returnsINVALID_TABLEfor the disk and none of its partitions are indexed.- The firmware's two partition handles (
LogicalPartitionset) are skipped by design and match no indexed partition, which leads to the warning and the panic above.
The firmware advertises a granularity whose implied transfer it refuses. UEFI 2.11 section 13.9 does not bound transfer sizes by OptimalTransferLengthGranularity, so a loader cannot assume a granularity-sized transfer is accepted.
Halving fastest_xfer_size at index time until a read of block 0 succeeds lets 12.9.6 index the disk and boot this machine.
Fixed by #709, thanks for reporting this!