diff mbox series

[RFC,1/1] pci-ids.rst: add Red Hat pci-id for generic IOMMU device

Message ID 20240503124244.8804-2-dbarboza@ventanamicro.com
State New
Headers show
Series pci: allocate a PCI ID for RISC-V IOMMU | expand

Commit Message

Daniel Henrique Barboza May 3, 2024, 12:42 p.m. UTC
Reserve an id to be used by the RISC-V IOMMU PCI device.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
---
 docs/specs/pci-ids.rst | 2 ++
 include/hw/pci/pci.h   | 1 +
 2 files changed, 3 insertions(+)

Comments

Frank Chang May 7, 2024, 3:35 p.m. UTC | #1
Hi Daniel,

It's glad to see that we have the dedicate PCIe device ID for RISC-V IOMMU.

Reviewed-by: Frank Chang <frank.chang@sifive.com>

Daniel Henrique Barboza <dbarboza@ventanamicro.com> 於 2024年5月3日 週五 下午8:44寫道:

>
> Reserve an id to be used by the RISC-V IOMMU PCI device.
>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
> ---
>  docs/specs/pci-ids.rst | 2 ++
>  include/hw/pci/pci.h   | 1 +
>  2 files changed, 3 insertions(+)
>
> diff --git a/docs/specs/pci-ids.rst b/docs/specs/pci-ids.rst
> index c0a3dec2e7..a89a9d0939 100644
> --- a/docs/specs/pci-ids.rst
> +++ b/docs/specs/pci-ids.rst
> @@ -94,6 +94,8 @@ PCI devices (other than virtio):
>    PCI ACPI ERST device (``-device acpi-erst``)
>  1b36:0013
>    PCI UFS device (``-device ufs``)
> +1b36:0014
> +  PCI RISC-V IOMMU device
>
>  All these devices are documented in :doc:`index`.
>
> diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
> index eaa3fc99d8..462aed1503 100644
> --- a/include/hw/pci/pci.h
> +++ b/include/hw/pci/pci.h
> @@ -115,6 +115,7 @@ extern bool pci_available;
>  #define PCI_DEVICE_ID_REDHAT_PVPANIC     0x0011
>  #define PCI_DEVICE_ID_REDHAT_ACPI_ERST   0x0012
>  #define PCI_DEVICE_ID_REDHAT_UFS         0x0013
> +#define PCI_DEVICE_ID_REDHAT_RISCV_IOMMU 0x0014
>  #define PCI_DEVICE_ID_REDHAT_QXL         0x0100
>
>  #define FMT_PCIBUS                      PRIx64
> --
> 2.44.0
>
>
diff mbox series

Patch

diff --git a/docs/specs/pci-ids.rst b/docs/specs/pci-ids.rst
index c0a3dec2e7..a89a9d0939 100644
--- a/docs/specs/pci-ids.rst
+++ b/docs/specs/pci-ids.rst
@@ -94,6 +94,8 @@  PCI devices (other than virtio):
   PCI ACPI ERST device (``-device acpi-erst``)
 1b36:0013
   PCI UFS device (``-device ufs``)
+1b36:0014
+  PCI RISC-V IOMMU device
 
 All these devices are documented in :doc:`index`.
 
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index eaa3fc99d8..462aed1503 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -115,6 +115,7 @@  extern bool pci_available;
 #define PCI_DEVICE_ID_REDHAT_PVPANIC     0x0011
 #define PCI_DEVICE_ID_REDHAT_ACPI_ERST   0x0012
 #define PCI_DEVICE_ID_REDHAT_UFS         0x0013
+#define PCI_DEVICE_ID_REDHAT_RISCV_IOMMU 0x0014
 #define PCI_DEVICE_ID_REDHAT_QXL         0x0100
 
 #define FMT_PCIBUS                      PRIx64