mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
hw/riscv: virt: Remove the redundant ipi-id property
The imsic DT binding[1] has changed and no longer require an ipi-id. The latest IMSIC driver dynamically allocates ipi id if slow-ipi is not defined. Get rid of the unused dt property which may lead to confusion. [1] https://lore.kernel.org/lkml/20221111044207.1478350-5-apatel@ventanamicro.com/ Signed-off-by: Atish Patra <atishp@rivosinc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20221122080529.1692533-1-atishp@rivosinc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
6535a44334
commit
0c83343ba3
2 changed files with 0 additions and 5 deletions
|
@ -546,8 +546,6 @@ static void create_fdt_imsic(RISCVVirtState *s, const MemMapEntry *memmap,
|
||||||
riscv_socket_count(mc) * sizeof(uint32_t) * 4);
|
riscv_socket_count(mc) * sizeof(uint32_t) * 4);
|
||||||
qemu_fdt_setprop_cell(mc->fdt, imsic_name, "riscv,num-ids",
|
qemu_fdt_setprop_cell(mc->fdt, imsic_name, "riscv,num-ids",
|
||||||
VIRT_IRQCHIP_NUM_MSIS);
|
VIRT_IRQCHIP_NUM_MSIS);
|
||||||
qemu_fdt_setprop_cells(mc->fdt, imsic_name, "riscv,ipi-id",
|
|
||||||
VIRT_IRQCHIP_IPI_MSI);
|
|
||||||
if (riscv_socket_count(mc) > 1) {
|
if (riscv_socket_count(mc) > 1) {
|
||||||
qemu_fdt_setprop_cell(mc->fdt, imsic_name, "riscv,hart-index-bits",
|
qemu_fdt_setprop_cell(mc->fdt, imsic_name, "riscv,hart-index-bits",
|
||||||
imsic_num_bits(imsic_max_hart_per_socket));
|
imsic_num_bits(imsic_max_hart_per_socket));
|
||||||
|
@ -597,8 +595,6 @@ static void create_fdt_imsic(RISCVVirtState *s, const MemMapEntry *memmap,
|
||||||
riscv_socket_count(mc) * sizeof(uint32_t) * 4);
|
riscv_socket_count(mc) * sizeof(uint32_t) * 4);
|
||||||
qemu_fdt_setprop_cell(mc->fdt, imsic_name, "riscv,num-ids",
|
qemu_fdt_setprop_cell(mc->fdt, imsic_name, "riscv,num-ids",
|
||||||
VIRT_IRQCHIP_NUM_MSIS);
|
VIRT_IRQCHIP_NUM_MSIS);
|
||||||
qemu_fdt_setprop_cells(mc->fdt, imsic_name, "riscv,ipi-id",
|
|
||||||
VIRT_IRQCHIP_IPI_MSI);
|
|
||||||
if (imsic_guest_bits) {
|
if (imsic_guest_bits) {
|
||||||
qemu_fdt_setprop_cell(mc->fdt, imsic_name, "riscv,guest-index-bits",
|
qemu_fdt_setprop_cell(mc->fdt, imsic_name, "riscv,guest-index-bits",
|
||||||
imsic_guest_bits);
|
imsic_guest_bits);
|
||||||
|
|
|
@ -93,7 +93,6 @@ enum {
|
||||||
|
|
||||||
#define VIRT_PLATFORM_BUS_NUM_IRQS 32
|
#define VIRT_PLATFORM_BUS_NUM_IRQS 32
|
||||||
|
|
||||||
#define VIRT_IRQCHIP_IPI_MSI 1
|
|
||||||
#define VIRT_IRQCHIP_NUM_MSIS 255
|
#define VIRT_IRQCHIP_NUM_MSIS 255
|
||||||
#define VIRT_IRQCHIP_NUM_SOURCES VIRTIO_NDEV
|
#define VIRT_IRQCHIP_NUM_SOURCES VIRTIO_NDEV
|
||||||
#define VIRT_IRQCHIP_NUM_PRIO_BITS 3
|
#define VIRT_IRQCHIP_NUM_PRIO_BITS 3
|
||||||
|
|
Loading…
Reference in a new issue