Re: [PATCH v12 00/10] Add support for LoongArch

2023-03-30 Thread Xiaotian Wu
Thanks for the reminder, I've sent the v13 patch to the mailing list. But sorry, there may be a problem with our company's mail server, so the v13 patch was sent twice. 在 2023-03-30星期四的 20:05 +0200,Daniel Kiper写道: > Hey, > > On Mon, Dec 05, 2022 at 06:46:28PM +0800, Xiaotian Wu wrote: > > This pa

[PATCH v13 7/9] LoongArch: Add to build system

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- Makefile.util.def | 1 + configure.ac| 22 - gentpl.py | 27 ++-- grub-core/Makefile.am | 6 + grub-core/Makefile.core.def | 17 + include/g

[PATCH v13 9/9] tests: add support for LoongArch

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu --- tests/ahci_test.in | 2 +- tests/ehci_test.in | 2 +- tests/ohci_test.in | 2 +- tests/pata_test.in | 2 +- tests/uhci_test.in | 2 +- tests/util/grub-shell.in | 14 ++ 6 files changed, 19 insertions(+), 5 deletions(-)

[PATCH v13 8/9] LoongArch: Support new relocation types in v2.00 ABI

2023-03-30 Thread Xiaotian Wu
Link: https://github.com/loongson/LoongArch-Documentation/pull/57 Signed-off-by: Xiaotian Wu --- configure.ac | 17 grub-core/kern/loongarch64/dl.c| 54 +-- grub-core/kern/loongarch64/dl_helper.c | 59 ++ inclu

[PATCH v13 3/9] LoongArch: Add setjmp implementation

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang Signed-off-by: Sun Haiyong --- grub-core/lib/loongarch64/setjmp.S | 69 ++ grub-core/lib/setjmp.S | 2 + include/grub/loongarch64/setjmp.h | 27 3 files changed, 98 insertions(+) create m

[PATCH v13 2/9] Add LoongArch definitions

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- include/grub/elf.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/include/grub/elf.h b/include/grub/elf.h index e6f073bc9..c36d7dab2 100644 --- a/include/grub/elf.h +++ b/include/grub/elf.h @@ -252,6 +252,7 @@

[PATCH v13 0/9] Add LoongArch support

2023-03-30 Thread Xiaotian Wu
LoongArch is a new Loongson 3A5000 CPU instruction set, you can read documents[1] or visit the development community[2] to get more information. [1]: https://loongson.github.io/LoongArch-Documentation/README-EN.html [2]: https://github.com/loongson This patch series will add the basic support for

[PATCH v13 6/9] LoongArch: Add auxiliary files

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- grub-core/kern/efi/mm.c | 3 +- grub-core/kern/loongarch64/cache.c | 39 grub-core/kern/loongarch64/cache_flush.S | 33 ++ grub-core/kern/loongarch64/efi/init.c| 77

[PATCH v13 6/9] LoongArch: Add auxiliary files

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- grub-core/kern/efi/mm.c | 3 +- grub-core/kern/loongarch64/cache.c | 39 grub-core/kern/loongarch64/cache_flush.S | 33 ++ grub-core/kern/loongarch64/efi/init.c| 77

[PATCH v13 4/9] LoongArch: Add early startup code

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- grub-core/kern/loongarch64/efi/startup.S | 34 1 file changed, 34 insertions(+) create mode 100644 grub-core/kern/loongarch64/efi/startup.S diff --git a/grub-core/kern/loongarch64/efi/startup.S b/grub-core/kern/l

[PATCH v13 5/9] LoongArch: Add awareness for LoongArch relocations

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- grub-core/kern/dl.c| 9 +- grub-core/kern/loongarch64/dl.c| 102 + grub-core/kern/loongarch64/dl_helper.c | 202 + include/grub/dl.h | 1 + include/gru

[PATCH v13 4/9] LoongArch: Add early startup code

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- grub-core/kern/loongarch64/efi/startup.S | 34 1 file changed, 34 insertions(+) create mode 100644 grub-core/kern/loongarch64/efi/startup.S diff --git a/grub-core/kern/loongarch64/efi/startup.S b/grub-core/kern/l

[PATCH v13 1/9] PE: Add LoongArch definitions

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- include/grub/efi/pe32.h | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/include/grub/efi/pe32.h b/include/grub/efi/pe32.h index 98c4ff177..101859af1 100644 --- a/include/grub/efi/pe

[PATCH v13 3/9] LoongArch: Add setjmp implementation

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang Signed-off-by: Sun Haiyong --- grub-core/lib/loongarch64/setjmp.S | 69 ++ grub-core/lib/setjmp.S | 2 + include/grub/loongarch64/setjmp.h | 27 3 files changed, 98 insertions(+) create m

[PATCH v13 5/9] LoongArch: Add awareness for LoongArch relocations

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- grub-core/kern/dl.c| 9 +- grub-core/kern/loongarch64/dl.c| 102 + grub-core/kern/loongarch64/dl_helper.c | 202 + include/grub/dl.h | 1 + include/gru

[PATCH v13 1/9] PE: Add LoongArch definitions

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- include/grub/efi/pe32.h | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/include/grub/efi/pe32.h b/include/grub/efi/pe32.h index 98c4ff177..101859af1 100644 --- a/include/grub/efi/pe

[PATCH v13 2/9] Add LoongArch definitions

2023-03-30 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- include/grub/elf.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/include/grub/elf.h b/include/grub/elf.h index e6f073bc9..c36d7dab2 100644 --- a/include/grub/elf.h +++ b/include/grub/elf.h @@ -252,6 +252,7 @@

[PATCH v13 0/9] Add LoongArch support

2023-03-30 Thread Xiaotian Wu
LoongArch is a new Loongson 3A5000 CPU instruction set, you can read documents[1] or visit the development community[2] to get more information. [1]: https://loongson.github.io/LoongArch-Documentation/README-EN.html [2]: https://github.com/loongson This patch series will add the basic support for

Re: [PATCH 0/2] fs/iso9660: Delay CE hop until end of current SUSP area

2023-03-30 Thread Glenn Washburn
On 3/30/23 18:30, Daniel Kiper wrote: On Tue, Mar 07, 2023 at 05:56:49PM +0100, Thomas Schmitt wrote: Hi, SUSP 1.12 says: The "CE" System Use Entry indicates a Continuation Area that shall be processed after the current System Use field or Continuation Area is processed. But GRUB rat

Re: [PATCH 0/2] fs/iso9660: Delay CE hop until end of current SUSP area

2023-03-30 Thread Thomas Schmitt
Hi, Daniel Kiper wrote: > AIUI this [1] email presented some concerns. > [1] https://lists.gnu.org/archive/html/grub-devel/2023-03/msg00022.html This was about the trailing blank in the output of grub-fstest. I decided to simply remove it because it is not expectable that any wrong handling of

Re: [PATCH 0/2] fs/iso9660: Delay CE hop until end of current SUSP area

2023-03-30 Thread Daniel Kiper
On Tue, Mar 07, 2023 at 05:56:49PM +0100, Thomas Schmitt wrote: > Hi, > > SUSP 1.12 says: > > The "CE" System Use Entry indicates a Continuation Area that shall be > processed after the current System Use field or Continuation Area is > processed. > > But GRUB rather takes an encountered CE e

Re: [PATCH v12 00/10] Add support for LoongArch

2023-03-30 Thread Daniel Kiper
Hey, On Mon, Dec 05, 2022 at 06:46:28PM +0800, Xiaotian Wu wrote: > This patchset adds support for the LoongArch instruction set. > > Please review the patches and let me know if changes are needed. I have merged Atish's EFI loader unification patches yesterday. Could you rebase your patch set on

[PATCH v5 6/8] kern/misc, kern/efi: Extract UTF-8 to UTF-16 code

2023-03-30 Thread Oliver Steffen
Create a new function for UTF-8 to UTF-16 conversion called grub_utf8_to_utf16_alloc() in the grub-code/kern/misc.c and replace charset conversion code used in some places in the EFI code. It is modeled after the grub_utf8_to_ucs4_alloc() like functions in charset.h. It can't live in charset.h, bec

[PATCH v5 3/8] kern/misc: Add a format specifier GUIDs.

2023-03-30 Thread Oliver Steffen
Extend the printf format specifier for pointers (%p) to accept a suffix specifier G to print GUIDs: %pG can be used to print grub_guid structs. This does not interfere with the -Wformat checking of gcc. Note that the data type is not checked though (%p accepts void*). Signed-off-by: Oliver Steffe

[PATCH v5 7/8] Add a module for the Boot Loader Interface

2023-03-30 Thread Oliver Steffen
Add a new module named boot_loader_interface, which provides a command with the same name. It implements a small but quite useful part of the Boot Loader Interface [0]. This interface uses EFI variables for communication between the boot loader and the operating system. This module sets two EFI v

[PATCH v5 2/8] Unify GUID types

2023-03-30 Thread Oliver Steffen
There are 3 implementations of a GUID in Grub. Replace them with a common one, placed in types.h. It uses the "packed" flavor of the GUID structs, the alignment attribute is dropped, since it is not required. Signed-off-by: Oliver Steffen --- grub-core/commands/acpi.c| 4 +- grub-c

[PATCH v5 4/8] grub-core: Make use of guid printf format specifier

2023-03-30 Thread Oliver Steffen
Use the new printf format specifier %pG. Fixes the text representation of GUIDs in the output of the lsefisystab command. Signed-off-by: Oliver Steffen Reviewed-by: Daniel Kiper --- grub-core/commands/efi/lsefi.c | 13 + grub-core/commands/efi/lsefisystab.c | 6 +- grub-

[PATCH v5 5/8] types.h: Add GRUB_SSIZE_MAX

2023-03-30 Thread Oliver Steffen
In the same way as GRUB_SIZE_MAX, add GRUB_SSIZE_MAX. Signed-off-by: Oliver Steffen Reviewed-by: Daniel Kiper --- include/grub/types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/grub/types.h b/include/grub/types.h index c56ce9820..9f43a5580 100644 --- a/include/grub/types.h +

[PATCH v5 8/8] util/grub.d: Activate bli module on EFI

2023-03-30 Thread Oliver Steffen
Add a new configuration drop-in file that loads the bli module and runs the command if booting on the EFI platform. Signed-off-by: Oliver Steffen --- Makefile.util.def | 6 ++ util/grub.d/25_bli.in | 25 + 2 files changed, 31 insertions(+) create mode 100644 uti

[PATCH v5 0/8] Add basic Boot Loader Interface support

2023-03-30 Thread Oliver Steffen
This is a step towards supporting unified kernel images (UKI) in Grub. Add a new module named boot_loader_interface, which provides a command with the same name. It implements a small but quite useful part of the Boot Loader Interface [0]. This interface uses EFI variables for communication betwe

[PATCH v5 1/8] efi: Add grub_efi_set_variable_with_attributes

2023-03-30 Thread Oliver Steffen
Add a function to the EFI module that allows setting EFI variables with specific attributes. This is useful for marking variables as volatile, for example. Signed-off-by: Oliver Steffen Reviewed-by: Daniel Kiper --- grub-core/kern/efi/efi.c | 19 +-- include/grub/efi/efi.h |