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

Jiaxun Yang posted 2 patches 2 months, 1 week ago
hw/loongarch/boot.c         | 321 ++++++++++++++++++++++++++++----------------
include/hw/loongarch/boot.h | 106 ++++++++++++---
2 files changed, 293 insertions(+), 134 deletions(-)
[PATCH 0/2] hw/loongarch/booting: Booting protocol refactoring
Posted by Jiaxun Yang 2 months, 1 week ago
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,
-- 
Jiaxun Yang <jiaxun.yang@flygoat.com>
Re: [PATCH 0/2] hw/loongarch/booting: Booting protocol refactoring
Posted by gaosong 1 month, 3 weeks ago
在 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


Re: [PATCH 0/2] hw/loongarch/booting: Booting protocol refactoring
Posted by gaosong 2 months ago
在 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,


Re: [PATCH 0/2] hw/loongarch/booting: Booting protocol refactoring
Posted by Jiaxun Yang 2 months ago

在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,

-- 
- Jiaxun
Re: [PATCH 0/2] hw/loongarch/booting: Booting protocol refactoring
Posted by Jiaxun Yang 2 months ago

在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
Re: [PATCH 0/2] hw/loongarch/booting: Booting protocol refactoring
Posted by Jiaxun Yang 2 months ago

在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


-- 
- Jiaxun