Skip to content

Commit

Permalink
Merge pull request #5 from vlsunil/bib_update
Browse files Browse the repository at this point in the history
Minor updates to make it ready for internal review
  • Loading branch information
vlsunil authored Sep 5, 2024
2 parents bdc19b3 + f9766c0 commit 292cea5
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 80 deletions.
9 changes: 0 additions & 9 deletions CHANGELOG.md

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DOCS := \
rimt-spec.adoc

DATE ?= $(shell date +%Y-%m-%d)
VERSION ?= v0.0.1
VERSION ?= 1.0.0-rc1
REVMARK ?= Draft
DOCKER_IMG := riscvintl/riscv-docs-base-container-image:latest
ifneq ($(SKIP_DOCKER),true)
Expand Down Expand Up @@ -48,7 +48,7 @@ OPTIONS := --trace \
--failure-level=ERROR
REQUIRES := --require=asciidoctor-bibtex \
--require=asciidoctor-diagram \
--require=asciidoctor-lists \
--require=asciidoctor-lists \
--require=asciidoctor-mathematical

.PHONY: all build clean build-container build-no-container build-docs
Expand Down
10 changes: 10 additions & 0 deletions src/changelog.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
== Changelog

- *Version 1.0.0-rc1*
* Draft for internal review.
* Added ID mapping examples.
* Documentation template changes.
* Addressed PRS TG feedback.
- *Version 0.0.1*
* Initial draft for PRS TG review
2 changes: 2 additions & 0 deletions src/contributors.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ This RISC-V specification has been contributed to directly or indirectly by:
[%hardbreaks]
* Aaron Durbin <adurbin@rivosinc.com>
* Anup Patel <apatel@ventanamicro.com>
* Atish Kumar Patra <atishp@rivosinc.com>
* Bin Meng <bmeng@tinylab.org>
* Samuel Holland <samuel[email protected]>
* Sebastien Boeuf <seb@rivosinc.com>
* Sunil V L <sunilvl@ventanamicro.com>
* Tomasz Jeznach <tjeznach@rivosinc.com>
Expand Down
36 changes: 0 additions & 36 deletions src/example.bib

This file was deleted.

55 changes: 22 additions & 33 deletions src/rimt-spec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
:docgroup: Platform Runtime Services Task Group
:description: RISC-V IO Mapping Table (RIMT)
:company: RISC-V.org
:revdate: 8/2024
:revdate: 9/2024
:revnumber: 1.0
:revremark: This document is under development. Expect potential changes. Visit http://riscv.org/spec-state for further details.
:revinfo:
Expand All @@ -21,9 +21,9 @@
//:WaveDromEditorApp: app/wavedrom-editor.app
:imagesoutdir: images
//:srcdir: src
:bibtex-file: src/example.bib
:bibtex-file: src/rimt.bib
:bibtex-order: alphabetical
:bibtex-style: apa
:bibtex-style: ieee
:icons: font
:lang: en
:listing-caption: Listing
Expand Down Expand Up @@ -73,14 +73,17 @@ Copyright 2024 by RISC-V International.
include::contributors.adoc[]

[preface]
include::changelog.adoc[]


== Introduction

The RISC-V IO Mapping Table (RIMT) provides information about the RISC-V IOMMU and the relationship
between the IO topology and the IOMMU in ACPI based RISC-V platforms. The RIMT identifies which
components are behind IOMMU and how they are connected together. RISC-V IOMMU can be implemented as
either a PCI device or a platform device.

=== Terms and Abbreviations
== Terms and Abbreviations

This specification uses the following terms and abbreviations:

Expand All @@ -89,9 +92,7 @@ This specification uses the following terms and abbreviations:
| Term | Meaning

| ACPI | Advanced Configuration and Power Interface Specification
| ASL | ACPI Source Language
| AML | ACPI Machine Language
| OSPM | Operating System-directed configuration and Power Management
| IOMMU | Input-Output Memory Management Unit
| RCiEP | Root Complex Integrated End Point
|===

Expand Down Expand Up @@ -371,43 +372,31 @@ device only.
<<id_mapping_structure>>.
|===

== References

* link:https://github.com/riscv-non-isa/riscv-iommu/releases/download/v1.0.0/riscv-iommu.pdf[RISC-V IOMMU Specification], v1.0.0
* link:https://uefi.org/specs/ACPI/6.5/[ACPI Specification], Version: v6.5

[[Mapping-Examples]]
== ID Mapping Examples

=== IOMMU as a PCI device

.PCIe device ID mapping
[[pci_rc_id_mapping_1]]
[cols="2,2,2,2,1", width=95%, options="header"]
|===
| *Source ID Base* | *Number of IDs* | *Destination Device ID Base* | *Destination IOMMU Offset* | *Flags*
| 0x0100 | 0xFEFF | 0x0100 | IOMMU0 | 0x3
|===

=== IOMMU as a memory mapped device

.PCIe device ID mapping
.PCIe device ID mapping example
[[pci_rc_id_mapping_2]]
[cols="2,2,2,2,1", width=95%, options="header"]
[cols="2,2,2,4,1", width=95%, options="header"]
|===
| *Source ID Base* | *Number of IDs* | *Destination Device ID Base* | *Destination IOMMU Offset* | *Flags*
| 0x0000 | 0x10 | 0x0 | IOMMU1 | 0
| 0x0100 | 0x10 | 0x10 | IOMMU1 | 0
| 0x0000 | 0x10 | 0x0 | IOMMU0_OFFSET_IN_RIMT | 0
| 0x0100 | 0x10 | 0x10 | IOMMU0_OFFSET_IN_RIMT | 0
|===

.Platform device ID mapping
.Platform device ID mapping example
[[platform_id_mapping]]
[cols="2,2,2,2,1", width=95%, options="header"]
[cols="2,2,2,4,1", width=95%, options="header"]
|===
| *Source ID Base* | *Number of IDs* | *Destination Device ID Base* | *Destination IOMMU Offset* | *Flags*
| 0x0000 | 0x1 | 0x20 | IOMMU1 | 0
| 0x0000 | 0x1 | 0x20 | IOMMU0_OFFSET_IN_RIMT | 0
|===

== References

* link:https://github.com/riscv-non-isa/riscv-iommu/releases/download/v1.0.0/riscv-iommu.pdf[RISC-V IOMMU Specification], v1.0.0
* link:https://uefi.org/specs/ACPI/6.5/[ACPI Specification], Version: v6.5

// The index must precede the bibliography
include::index.adoc[]
include::bibliography.adoc[]
//include::index.adoc[]
//include::bibliography.adoc[]
8 changes: 8 additions & 0 deletions src/rimt.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@electronic{IOMMU-SPEC,
title = {RISC-V IOMMU Specification 1.0.0},
url = {https://github.com/riscv-non-isa/riscv-iommu/releases/download/v1.0.0/riscv-iommu.pdf}
}
@electronic{ACPI-SPEC,
title = {Advanced Configuration and Power Interface Specification 6.6},
url = {https://uefi.org/specifications}
}

0 comments on commit 292cea5

Please sign in to comment.