bugGNU GRUB - Bugs: bug #64911, Support ACPI for OpenBSD EFI boot

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64911: Support ACPI for OpenBSD EFI boot

Submitter:  Yuichiro Naito <yuichiro>
Submitted:  Mon 20 Nov 2023 03:31:06 AM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  2.02
Release:  Reproducibility:  Every Time
Planned Release:  None

Mon 20 Nov 2023 03:31:06 AM UTC, original submission:  

When I booted OpenBSD from Grub2, the ACPI power-off function
didn’t work. It just quit without the shutdown sequence
when I pushed the power button of my PC.

In my investigation, the OpenBSD kernel requires the ACPI table pointer
in the boot argument. It is a member of the “bios_efiinfo_t” structure.

I wrote a patch to pass the “bios_efiinfo_t” structure which members
are filled in the same way as the OpenBSD boot loader. It works for
the OpenBSD 7.4 kernel.

I will write down what I see to fill the “bios_efiinfo_t” members.

  • config_acpi


https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L868-L869

  • config_smbios


https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L872-L873

  • config_esrt


https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L876-L877

  • mmap_*


https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L330-L422

  • fb_*


https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L928-L955

  • system_table


https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L961
https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L81

I’m a newbie to the GRUB2 project. If my patch violates the coding
 style or manners of this project. Please let me know. I will update
my patch.

Yuichiro Naito <yuichiro>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #55341:  openbsd_efiinfo.patch added by yuichiro (10KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by yuichiro (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-11-20 yuichiro Attached File- Added openbsd_efiinfo.patch, #55341

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code