[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 02/13] hw/riscv: add riscv-iommu-bits.h
From: |
Eric Cheng |
Subject: |
Re: [PATCH v3 02/13] hw/riscv: add riscv-iommu-bits.h |
Date: |
Tue, 28 May 2024 14:41:39 +0800 |
User-agent: |
Mozilla Thunderbird |
On 5/24/2024 1:39 AM, Daniel Henrique Barboza wrote:
...
+/* 5.4 Features control register (32bits) */
+#define RISCV_IOMMU_REG_FCTL 0x0008
Looks like doesn't support RISCV_IOMMU_FCTL_BE?
If so, need to implement it as read-only? along with other 2 bits.
IIUC,
diff --git a/hw/riscv/riscv-iommu.c b/hw/riscv/riscv-iommu.c
index 1b34d226f9..6a6bf1db98 100644
--- a/hw/riscv/riscv-iommu.c
+++ b/hw/riscv/riscv-iommu.c
@@ -2035,6 +2035,7 @@ static void riscv_iommu_realize(DeviceState *dev, Error
**errp)
/* Set power-on register state */
stq_le_p(&s->regs_rw[RISCV_IOMMU_REG_CAP], s->cap);
stq_le_p(&s->regs_rw[RISCV_IOMMU_REG_FCTL], 0);
+ stq_le_p(&s->regs_ro[RISCV_IOMMU_REG_FCTL], ~0);
stq_le_p(&s->regs_ro[RISCV_IOMMU_REG_DDTP],
~(RISCV_IOMMU_DDTP_PPN | RISCV_IOMMU_DDTP_MODE));
stq_le_p(&s->regs_ro[RISCV_IOMMU_REG_CQB],
+#define RISCV_IOMMU_FCTL_WSI BIT(1)
+
...
- [PATCH v3 00/13] riscv: QEMU RISC-V IOMMU Support, Daniel Henrique Barboza, 2024/05/23
- [PATCH v3 02/13] hw/riscv: add riscv-iommu-bits.h, Daniel Henrique Barboza, 2024/05/23
- Re: [PATCH v3 02/13] hw/riscv: add riscv-iommu-bits.h,
Eric Cheng <=
- [PATCH v3 03/13] hw/riscv: add RISC-V IOMMU base emulation, Daniel Henrique Barboza, 2024/05/23
- [PATCH v3 04/13] pci-ids.rst: add Red Hat pci-id for RISC-V IOMMU device, Daniel Henrique Barboza, 2024/05/23
- [PATCH v3 08/13] hw/riscv/riscv-iommu: add Address Translation Cache (IOATC), Daniel Henrique Barboza, 2024/05/23
- [PATCH v3 05/13] hw/riscv: add riscv-iommu-pci reference device, Daniel Henrique Barboza, 2024/05/23
- [PATCH v3 07/13] test/qtest: add riscv-iommu-pci tests, Daniel Henrique Barboza, 2024/05/23
- [PATCH v3 12/13] hw/riscv/riscv-iommu: Add another irq for mrif notifications, Daniel Henrique Barboza, 2024/05/23
- [PATCH v3 10/13] hw/riscv/riscv-iommu: add ATS support, Daniel Henrique Barboza, 2024/05/23
- [PATCH v3 01/13] exec/memtxattr: add process identifier to the transaction attributes, Daniel Henrique Barboza, 2024/05/23
- [PATCH v3 06/13] hw/riscv/virt.c: support for RISC-V IOMMU PCIDevice hotplug, Daniel Henrique Barboza, 2024/05/23