mbox series

[v1,0/6] Support booting bios and kernel for LoongArch

Message ID 20220712083206.4187715-1-yangxiaojuan@loongson.cn (mailing list archive)
Headers show
Series Support booting bios and kernel for LoongArch | expand

Message

Xiaojuan Yang July 12, 2022, 8:32 a.m. UTC
This series add some new funcitons for LoongArch virt machine.
Support loading uefi bios and linux kernel to boot system, and 
add fw_cfg table, smbios table, acpi table, fdt table to transmit
information for the system.

We could get the uefi bios and linux kernel file by this address:
The kernel file:
   * https://github.com/loongson/linux/tree/loongarch-next
The bios file:
   * https://github.com/loongson/edk2
   * https://github.com/loongson/edk2-platforms

Xiaojuan Yang (6):
  hw/loongarch: Add fw_cfg table support
  hw/loongarch: Add uefi bios loading support
  hw/loongarch: Add linux kernel booting support
  hw/loongarch: Add smbios support
  hw/loongarch: Add acpi ged support
  hw/loongarch: Add fdt support

 hw/loongarch/Kconfig        |   3 +
 hw/loongarch/acpi-build.c   | 609 ++++++++++++++++++++++++++++++++++++
 hw/loongarch/fw_cfg.c       |  33 ++
 hw/loongarch/fw_cfg.h       |  15 +
 hw/loongarch/loongson3.c    | 439 ++++++++++++++++++++++++--
 hw/loongarch/meson.build    |   4 +
 include/hw/loongarch/virt.h |  25 ++
 include/hw/pci-host/ls7a.h  |   4 +
 target/loongarch/cpu.c      |   1 +
 target/loongarch/cpu.h      |   3 +
 10 files changed, 1117 insertions(+), 19 deletions(-)
 create mode 100644 hw/loongarch/acpi-build.c
 create mode 100644 hw/loongarch/fw_cfg.c
 create mode 100644 hw/loongarch/fw_cfg.h

Comments

Richard Henderson July 19, 2022, 8:10 a.m. UTC | #1
On 7/12/22 14:02, Xiaojuan Yang wrote:
> This series add some new funcitons for LoongArch virt machine.
> Support loading uefi bios and linux kernel to boot system, and
> add fw_cfg table, smbios table, acpi table, fdt table to transmit
> information for the system.
> 
> We could get the uefi bios and linux kernel file by this address:
> The kernel file:
>     * https://github.com/loongson/linux/tree/loongarch-next
> The bios file:
>     * https://github.com/loongson/edk2
>     * https://github.com/loongson/edk2-platforms
> 
> Xiaojuan Yang (6):
>    hw/loongarch: Add fw_cfg table support
>    hw/loongarch: Add uefi bios loading support
>    hw/loongarch: Add linux kernel booting support
>    hw/loongarch: Add smbios support
>    hw/loongarch: Add acpi ged support
>    hw/loongarch: Add fdt support

Queued.

If there are bugs in the smbios or acpi patches, they can be fixed before hard freeze, but 
we do want the feature committed before soft freeze.


r~
Richard Henderson July 19, 2022, 4:21 p.m. UTC | #2
On 7/19/22 13:40, Richard Henderson wrote:
> On 7/12/22 14:02, Xiaojuan Yang wrote:
>> This series add some new funcitons for LoongArch virt machine.
>> Support loading uefi bios and linux kernel to boot system, and
>> add fw_cfg table, smbios table, acpi table, fdt table to transmit
>> information for the system.
>>
>> We could get the uefi bios and linux kernel file by this address:
>> The kernel file:
>>     * https://github.com/loongson/linux/tree/loongarch-next
>> The bios file:
>>     * https://github.com/loongson/edk2
>>     * https://github.com/loongson/edk2-platforms
>>
>> Xiaojuan Yang (6):
>>    hw/loongarch: Add fw_cfg table support
>>    hw/loongarch: Add uefi bios loading support
>>    hw/loongarch: Add linux kernel booting support
>>    hw/loongarch: Add smbios support
>>    hw/loongarch: Add acpi ged support
>>    hw/loongarch: Add fdt support
> 
> Queued.
> 
> If there are bugs in the smbios or acpi patches, they can be fixed before hard freeze, but 
> we do want the feature committed before soft freeze.

Patch 3 has a 32-bit error wrt %lx and uint64_t.

Patch 5 misses setting TARGET_NEED_FDT in configs/targets/loongarch64-softmmu.mak.



r~