← Documents Documentation/devicetree/bindings/virtio/mmio.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Virtio

Virtio Memory-Mapped Devices

Virtio MMIO transport의 register, interrupt, IOMMU와 wakeup 속성을 설명합니다.

Source pathDocumentation/devicetree/bindings/virtio/mmio.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

mmio.yaml:1-67

Virtio MMIO transport의 register, interrupt, IOMMU와 wakeup 속성을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, property, PCI BDF·RID, phandle, example, source path와 원문 줄 좌표를 원형대로 보존합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/virtio/mmio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: virtio memory mapped devices
8
9 maintainers:
10 - Jean-Philippe Brucker <[email protected]>
11
12 description:
13 See https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=virtio for
14 more details.
15
16 properties:
17 compatible:
18 const: virtio,mmio
19
20 reg:
21 maxItems: 1
22
23 dma-coherent: true
24
25 interrupts:
26 maxItems: 1
27
28 '#iommu-cells':
29 description: Required when the node corresponds to a virtio-iommu device.
30 const: 1
31
32 iommus:
33 description: Required for devices making accesses thru an IOMMU.
34 maxItems: 1
35
36 wakeup-source:
37 type: boolean
38 description: Required for setting irq of a virtio_mmio device as wakeup source.
39
40 required:
41 - compatible
42 - reg
43 - interrupts
44
45 additionalProperties:
46 type: object
47
48 examples:
49 - |
50 virtio@3000 {
51 compatible = "virtio,mmio";
52 reg = <0x3000 0x100>;
53 interrupts = <41>;
54
55 /* Device has endpoint ID 23 */
56 iommus = <&viommu 23>;
57 };
58
59 viommu: iommu@3100 {
60 compatible = "virtio,mmio";
61 reg = <0x3100 0x100>;
62 interrupts = <42>;
63
64 #iommu-cells = <1>;
65 };
66
67 ...
68

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

Virtio memory-mapped device

1-15

GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 memory-mapped Virtio device를 정의합니다. 자세한 규격은 OASIS Virtio 기술 위원회 문서를 참조하며 관리자는 Jean-Philippe Brucker입니다.

MMIO 자원, IOMMU와 wakeup

16-47

`compatible`은 `virtio,mmio`로 고정됩니다. `reg`와 `interrupts`는 각각 최대 한 항목이며 `dma-coherent`를 지원합니다.

node가 virtio-iommu device이면 `#iommu-cells = <1>`이 필요합니다. IOMMU를 통해 memory access를 수행하는 device에는 `iommus`가 필요하고 최대 한 항목입니다. `wakeup-source`는 virtio_mmio device의 IRQ를 wakeup source로 설정할 때 필요합니다.

compatible, reg, interrupts가 필수이며 child object 형태의 추가 속성을 허용합니다.

properties:
  compatible:
    const: virtio,mmio

  reg:
    maxItems: 1

  dma-coherent: true

  interrupts:
    maxItems: 1

  '#iommu-cells':
    description: Required when the node corresponds to a virtio-iommu device.
    const: 1

  iommus:
    description: Required for devices making accesses thru an IOMMU.
    maxItems: 1

  wakeup-source:
    type: boolean
    description: Required for setting irq of a virtio_mmio device as wakeup source.

required:
  - compatible
  - reg
  - interrupts

additionalProperties:
  type: object

Virtio endpoint와 IOMMU 예제

48-67

첫 MMIO Virtio device는 endpoint ID 23으로 `viommu`를 참조합니다. 이어지는 Virtio IOMMU node는 별도 register와 interrupt를 가지며 한 cell의 endpoint ID를 받도록 `#iommu-cells = <1>`을 선언합니다.

examples:
  - |
    virtio@3000 {
        compatible = "virtio,mmio";
        reg = <0x3000 0x100>;
        interrupts = <41>;

        /* Device has endpoint ID 23 */
        iommus = <&viommu 23>;
    };

    viommu: iommu@3100 {
        compatible = "virtio,mmio";
        reg = <0x3100 0x100>;
        interrupts = <42>;

        #iommu-cells = <1>;
    };

...