mbox series

[0/2] hw/loongarch/booting: Booting protocol refactoring

Message ID 20240914-loongarch-booting-v1-0-1517cae11c10@flygoat.com (mailing list archive)
Headers show
Series hw/loongarch/booting: Booting protocol refactoring | expand

Message

Jiaxun Yang Sept. 14, 2024, 12:10 p.m. UTC
Hi all,

This series refactored booting protocol generation code
to better accommodate different host ABI / Alignment and
endianess.

It also enhanced LoongArch32 support.

Thanks

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
Jiaxun Yang (2):
      hw/loongarch/boot: Refactor EFI booting protocol generation
      hw/loongarch/boot: Rework boot code generation

 hw/loongarch/boot.c         | 321 ++++++++++++++++++++++++++++----------------
 include/hw/loongarch/boot.h | 106 ++++++++++++---
 2 files changed, 293 insertions(+), 134 deletions(-)
---
base-commit: 28ae3179fc52d2e4d870b635c4a412aab99759e7
change-id: 20240914-loongarch-booting-b5ae3f4976b7

Best regards,

Comments

Jiaxun Yang Sept. 19, 2024, 11:31 a.m. UTC | #1
在2024年9月14日九月 下午1:10,Jiaxun Yang写道:
> Hi all,
>
> This series refactored booting protocol generation code
> to better accommodate different host ABI / Alignment and
> endianess.

+ Bibo,

Ping for review.

Thanks

>
> It also enhanced LoongArch32 support.
>
> Thanks
>
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
> Jiaxun Yang (2):
>       hw/loongarch/boot: Refactor EFI booting protocol generation
>       hw/loongarch/boot: Rework boot code generation
>
>  hw/loongarch/boot.c         | 321 ++++++++++++++++++++++++++++----------------
>  include/hw/loongarch/boot.h | 106 ++++++++++++---
>  2 files changed, 293 insertions(+), 134 deletions(-)
> ---
> base-commit: 28ae3179fc52d2e4d870b635c4a412aab99759e7
> change-id: 20240914-loongarch-booting-b5ae3f4976b7
>
> Best regards,
> -- 
> Jiaxun Yang <jiaxun.yang@flygoat.com>
Jiaxun Yang Sept. 23, 2024, 11:18 a.m. UTC | #2
在2024年9月19日九月 下午12:31,Jiaxun Yang写道:
> 在2024年9月14日九月 下午1:10,Jiaxun Yang写道:
>> Hi all,
>>
>> This series refactored booting protocol generation code
>> to better accommodate different host ABI / Alignment and
>> endianess.
>
> + Bibo,
>
> Ping for review.

Ping?

Thanks
gaosong Sept. 23, 2024, 12:34 p.m. UTC | #3
在 2024/9/14 下午8:10, Jiaxun Yang 写道:
> Hi all,
>
> This series refactored booting protocol generation code
> to better accommodate different host ABI / Alignment and
> endianess.
>
> It also enhanced LoongArch32 support.
Hi,

I tested LoongArch64 and it works well.

But how to test LoongArch32? Could you provide an example?

Thanks.
Song Gao
> Thanks
>
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
> Jiaxun Yang (2):
>        hw/loongarch/boot: Refactor EFI booting protocol generation
>        hw/loongarch/boot: Rework boot code generation
>
>   hw/loongarch/boot.c         | 321 ++++++++++++++++++++++++++++----------------
>   include/hw/loongarch/boot.h | 106 ++++++++++++---
>   2 files changed, 293 insertions(+), 134 deletions(-)
> ---
> base-commit: 28ae3179fc52d2e4d870b635c4a412aab99759e7
> change-id: 20240914-loongarch-booting-b5ae3f4976b7
>
> Best regards,
Jiaxun Yang Sept. 23, 2024, 2:43 p.m. UTC | #4
在2024年9月23日九月 下午1:34,gaosong写道:
> 在 2024/9/14 下午8:10, Jiaxun Yang 写道:
>> Hi all,
>>
>> This series refactored booting protocol generation code
>> to better accommodate different host ABI / Alignment and
>> endianess.
>>
>> It also enhanced LoongArch32 support.
> Hi,
>
> I tested LoongArch64 and it works well.
>
> But how to test LoongArch32? Could you provide an example?

I have a W.I.P. LoonngArch 32 kernel tree[1] that can boot in QEMU,
but it still requires many other fixes in QEMU TCG.

32-bit stuff is just a bonus to this series and the main motivation
is to improve booting protocol quality.

Thanks

[1]: https://github.com/FlyGoat/linux/tree/b4/la32
>
> Thanks.
> Song Gao
>> Thanks
>>
>> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
>> ---
>> Jiaxun Yang (2):
>>        hw/loongarch/boot: Refactor EFI booting protocol generation
>>        hw/loongarch/boot: Rework boot code generation
>>
>>   hw/loongarch/boot.c         | 321 ++++++++++++++++++++++++++++----------------
>>   include/hw/loongarch/boot.h | 106 ++++++++++++---
>>   2 files changed, 293 insertions(+), 134 deletions(-)
>> ---
>> base-commit: 28ae3179fc52d2e4d870b635c4a412aab99759e7
>> change-id: 20240914-loongarch-booting-b5ae3f4976b7
>>
>> Best regards,
gaosong Sept. 29, 2024, 7:51 a.m. UTC | #5
在 2024/9/14 下午8:10, Jiaxun Yang 写道:
> Hi all,
>
> This series refactored booting protocol generation code
> to better accommodate different host ABI / Alignment and
> endianess.
>
> It also enhanced LoongArch32 support.
>
> Thanks
>
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
> Jiaxun Yang (2):
>        hw/loongarch/boot: Refactor EFI booting protocol generation
>        hw/loongarch/boot: Rework boot code generation
>
>   hw/loongarch/boot.c         | 321 ++++++++++++++++++++++++++++----------------
>   include/hw/loongarch/boot.h | 106 ++++++++++++---
>   2 files changed, 293 insertions(+), 134 deletions(-)
> ---
> base-commit: 28ae3179fc52d2e4d870b635c4a412aab99759e7
> change-id: 20240914-loongarch-booting-b5ae3f4976b7
>
> Best regards,
For this series,
Reviewed-by: Song Gao <gaosong@loongson.cn>

Applied to loongarch-next,

Thanks.
Song Gao