qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] d771ca: hw/loongarch: Move boot functions to


From: Richard Henderson
Subject: [Qemu-commits] [qemu/qemu] d771ca: hw/loongarch: Move boot functions to boot.c
Date: Tue, 30 Apr 2024 07:22:46 -0700

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: d771ca1c10ab146eae676dd6a6975a8f7cf84d65
      
https://github.com/qemu/qemu/commit/d771ca1c10ab146eae676dd6a6975a8f7cf84d65
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    A hw/loongarch/boot.c
    M hw/loongarch/meson.build
    M hw/loongarch/virt.c
    A include/hw/loongarch/boot.h
    M include/hw/loongarch/virt.h

  Log Message:
  -----------
  hw/loongarch: Move boot functions to boot.c

Move some boot functions to boot.c and struct
loongarch_boot_info into struct LoongArchMachineState.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240426091551.2397867-2-gaosong@loongson.cn>


  Commit: 02307a678c3cb366d089ef8d90f6acb9663b98ce
      
https://github.com/qemu/qemu/commit/02307a678c3cb366d089ef8d90f6acb9663b98ce
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/boot.c

  Log Message:
  -----------
  hw/loongarch: Add load initrd

we load initrd ramdisk after kernel_high address

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-3-gaosong@loongson.cn>


  Commit: 7e0510d7600cd0c1c4742751b415f4f7df84328e
      
https://github.com/qemu/qemu/commit/7e0510d7600cd0c1c4742751b415f4f7df84328e
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/boot.c

  Log Message:
  -----------
  hw/loongarch: Add slave cpu boot_code

Load the slave CPU boot code at pflash0 and set
the slave CPU elf_address to VIRT_FLASH0_BASE.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-4-gaosong@loongson.cn>


  Commit: 58ee60d2d29437d1ddb02640a12a3f028307594c
      
https://github.com/qemu/qemu/commit/58ee60d2d29437d1ddb02640a12a3f028307594c
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/boot.c
    M include/hw/loongarch/virt.h
    M target/loongarch/cpu.h

  Log Message:
  -----------
  hw/loongarch: Add init_cmdline

Add init_cmline and set boot_info->a0, a1

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-5-gaosong@loongson.cn>


  Commit: 4216baa90da53f9c53d0a9de264450040423ede0
      
https://github.com/qemu/qemu/commit/4216baa90da53f9c53d0a9de264450040423ede0
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/boot.c
    M include/hw/loongarch/boot.h

  Log Message:
  -----------
  hw/loongarch: Init efi_system_table

Add init_systab and set boot_info->a2

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-6-gaosong@loongson.cn>


  Commit: 252b8e68994aa48508cf1c7d365967e3850b70bb
      
https://github.com/qemu/qemu/commit/252b8e68994aa48508cf1c7d365967e3850b70bb
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/boot.c
    M hw/loongarch/virt.c
    M include/hw/loongarch/boot.h
    M include/hw/loongarch/virt.h

  Log Message:
  -----------
  hw/loongarch: Init efi_boot_memmap table

The efi_system_table adds a efi_boot_memmap configuration table.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-7-gaosong@loongson.cn>


  Commit: 060685041ce6b98e5fb015b1d0318eb2f72944b5
      
https://github.com/qemu/qemu/commit/060685041ce6b98e5fb015b1d0318eb2f72944b5
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/boot.c
    M include/hw/loongarch/boot.h

  Log Message:
  -----------
  hw/loongarch: Init efi_initrd table

The efi_system_table adds a efi_initrd configuration table.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-8-gaosong@loongson.cn>


  Commit: 6042385149a0fb3f4a51d264fc3dc42775819c79
      
https://github.com/qemu/qemu/commit/6042385149a0fb3f4a51d264fc3dc42775819c79
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/boot.c
    M hw/loongarch/virt.c
    M include/hw/loongarch/boot.h
    M include/hw/loongarch/virt.h

  Log Message:
  -----------
  hw/loongarch: Init efi_fdt table

The efi_system_table adds a efi_fdt configuration table.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-9-gaosong@loongson.cn>


  Commit: b11f9814526b833b3a052be2559457b1affad7f5
      
https://github.com/qemu/qemu/commit/b11f9814526b833b3a052be2559457b1affad7f5
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/virt.c

  Log Message:
  -----------
  hw/loongarch: Fix fdt memory node wrong 'reg'

The right fdt memory node like [1], not [2]

  [1]
        memory@0 {
                device_type = "memory";
                reg = <0x00 0x00 0x00 0x10000000>;
        };
  [2]
        memory@0 {
                device_type = "memory";
                reg = <0x02 0x00 0x02 0x10000000>;
        };

Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240426091551.2397867-10-gaosong@loongson.cn>


  Commit: a0663efd81e6252b12ea716d13db10fdd022435b
      
https://github.com/qemu/qemu/commit/a0663efd81e6252b12ea716d13db10fdd022435b
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/virt.c

  Log Message:
  -----------
  hw/loongarch: fdt adds cpu interrupt controller node

fdt adds cpu interrupt controller node,
we use 'loongson,cpu-interrupt-controller'.

See:
https://github.com/torvalds/linux/blob/v6.7/drivers/irqchip/irq-loongarch-cpu.c
https://lore.kernel.org/r/20221114113824.1880-2-liupeibao@loongson.cn

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-11-gaosong@loongson.cn>


  Commit: 975a5afe376c192b1e5d5e3eff435ac8188fe41c
      
https://github.com/qemu/qemu/commit/975a5afe376c192b1e5d5e3eff435ac8188fe41c
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/virt.c
    M include/hw/intc/loongarch_extioi.h

  Log Message:
  -----------
  hw/loongarch: fdt adds Extend I/O Interrupt Controller

fdt adds Extend I/O Interrupt Controller,
we use 'loongson,ls2k2000-eiointc'.

See:
https://github.com/torvalds/linux/blob/v6.7/drivers/irqchip/irq-loongson-eiointc.c
https://lore.kernel.org/r/764e02d924094580ac0f1d15535f4b98308705c6.1683279769.git.zhoubinbin@loongson.cn

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-12-gaosong@loongson.cn>


  Commit: 2904f50a8119a7a3adee68df7baa18c073892061
      
https://github.com/qemu/qemu/commit/2904f50a8119a7a3adee68df7baa18c073892061
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/virt.c
    M include/hw/pci-host/ls7a.h

  Log Message:
  -----------
  hw/loongarch: fdt adds pch_pic Controller

fdt adds pch pic controller, we use 'loongson,pch-pic-1.0'

See:
https://github.com/torvalds/linux/blob/v6.7/drivers/irqchip/irq-loongson-pch-pic.c
https://lore.kernel.org/r/20200528152757.1028711-4-jiaxun.yang@flygoat.com

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-13-gaosong@loongson.cn>


  Commit: 572d45e5469eb323a5a8b060ad195b9aac82ecc3
      
https://github.com/qemu/qemu/commit/572d45e5469eb323a5a8b060ad195b9aac82ecc3
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/virt.c
    M include/hw/pci-host/ls7a.h

  Log Message:
  -----------
  hw/loongarch: fdt adds pch_msi Controller

fdt adds pch msi controller, we use 'loongson,pch-msi-1.0'.

See:
https://github.com/torvalds/linux/blob/v6.7/drivers/irqchip/irq-loongson-pch-msi.c
https://lore.kernel.org/r/20200528152757.1028711-6-jiaxun.yang@flygoat.com

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-14-gaosong@loongson.cn>


  Commit: 07bf0b6aa1707a6d8d9c3132424df32f42915d66
      
https://github.com/qemu/qemu/commit/07bf0b6aa1707a6d8d9c3132424df32f42915d66
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/virt.c

  Log Message:
  -----------
  hw/loongarch: fdt adds pcie irq_map node

This patch adds pcie irq_map node for FDT.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-15-gaosong@loongson.cn>


  Commit: 22126fdb1c4f71d7ff02327e14b612d77126334b
      
https://github.com/qemu/qemu/commit/22126fdb1c4f71d7ff02327e14b612d77126334b
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/virt.c

  Log Message:
  -----------
  hw/loongarch: fdt remove unused irqchip node

This patch removes the unused fdt irqchip node.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-16-gaosong@loongson.cn>


  Commit: f5cce57f6aca89c83b7f99b11b93ad9212b1573e
      
https://github.com/qemu/qemu/commit/f5cce57f6aca89c83b7f99b11b93ad9212b1573e
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/virt.c

  Log Message:
  -----------
  hw/loongarch: Add cells missing from uart node

uart node need interrupts and interrupt-parent cells.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-17-gaosong@loongson.cn>


  Commit: 841ef2c9df5317e32de590424b0c5c36fbb4de78
      
https://github.com/qemu/qemu/commit/841ef2c9df5317e32de590424b0c5c36fbb4de78
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M hw/loongarch/virt.c

  Log Message:
  -----------
  hw/loongarch: Add cells missing from rtc node

rtc node need interrupts and interrupt-parent cells.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-18-gaosong@loongson.cn>


  Commit: de7e907d011cf12805b80150a81470ff7c8b5d44
      
https://github.com/qemu/qemu/commit/de7e907d011cf12805b80150a81470ff7c8b5d44
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2024-04-30 (Tue, 30 Apr 2024)

  Changed paths:
    A hw/loongarch/boot.c
    M hw/loongarch/meson.build
    M hw/loongarch/virt.c
    M include/hw/intc/loongarch_extioi.h
    A include/hw/loongarch/boot.h
    M include/hw/loongarch/virt.h
    M include/hw/pci-host/ls7a.h
    M target/loongarch/cpu.h

  Log Message:
  -----------
  Merge tag 'pull-loongarch-20240429' of https://gitlab.com/gaosong/qemu into 
staging

Add boot LoongArch elf kernel with FDT

v2: Fix 'make check-tcg' fail.

# -----BEGIN PGP SIGNATURE-----
#
# iLMEAAEKAB0WIQS4/x2g0v3LLaCcbCxAov/yOSY+3wUCZi8F3AAKCRBAov/yOSY+
# 35VrBADb6f1mYNUTG5iDvKppvA8RG1TybxfXfgA+Z9vPkJqFkT6wt8J+JFwgh3UT
# w0xY2Y2xZkPjxnUpEhZiVJjp5hk+BEzr3vE4M5DzKC1vpCYpbojxxN6FB41Up862
# kS7slW6XsZgKpLLvUkFttPt3G4DUN29CscVgy4Ci0zrqyNjnsw==
# =ufbc
# -----END PGP SIGNATURE-----
# gpg: Signature made Sun 28 Apr 2024 07:28:44 PM PDT
# gpg:                using RSA key B8FF1DA0D2FDCB2DA09C6C2C40A2FFF239263EDF
# gpg: Good signature from "Song Gao <m17746591750@163.com>" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: B8FF 1DA0 D2FD CB2D A09C  6C2C 40A2 FFF2 3926 3EDF

* tag 'pull-loongarch-20240429' of https://gitlab.com/gaosong/qemu:
  hw/loongarch: Add cells missing from rtc node
  hw/loongarch: Add cells missing from uart node
  hw/loongarch: fdt remove unused irqchip node
  hw/loongarch: fdt adds pcie irq_map node
  hw/loongarch: fdt adds pch_msi Controller
  hw/loongarch: fdt adds pch_pic Controller
  hw/loongarch: fdt adds Extend I/O Interrupt Controller
  hw/loongarch: fdt adds cpu interrupt controller node
  hw/loongarch: Fix fdt memory node wrong 'reg'
  hw/loongarch: Init efi_fdt table
  hw/loongarch: Init efi_initrd table
  hw/loongarch: Init efi_boot_memmap table
  hw/loongarch: Init efi_system_table
  hw/loongarch: Add init_cmdline
  hw/loongarch: Add slave cpu boot_code
  hw/loongarch: Add load initrd
  hw/loongarch: Move boot functions to boot.c

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Compare: https://github.com/qemu/qemu/compare/2358f1b60f73...de7e907d011c

To unsubscribe from these emails, change your notification settings at 
https://github.com/qemu/qemu/settings/notifications



reply via email to

[Prev in Thread] Current Thread [Next in Thread]