← Documents Documentation/PCI/endpoint/function/binding/pci-ntb.rst GitHub 원문 ↗

Linux 6.18.37 · PCI

PCI NTB endpoint function

NTB EPF의 표준 PCI field와 doorbell·memory window·scratchpad 설정을 정의합니다.

Source pathDocumentation/PCI/endpoint/function/binding/pci-ntb.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약·해설

pci-ntb.rst:1-38

Configfs에서 NTB EPF를 만들고 J721E PCI ID 및 최대 4개 memory window와 doorbell·scratchpad 수를 설정합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0
2
3 ==========================
4 PCI NTB Endpoint Function
5 ==========================
6
7 1) Create a subdirectory to pci_epf_ntb directory in configfs.
8
9 Standard EPF Configurable Fields:
10
11 ================ ===========================================================
12 vendorid should be 0x104c
13 deviceid should be 0xb00d for TI's J721E SoC
14 revid don't care
15 progif_code don't care
16 subclass_code should be 0x00
17 baseclass_code should be 0x5
18 cache_line_size don't care
19 subsys_vendor_id don't care
20 subsys_id don't care
21 interrupt_pin don't care
22 msi_interrupts don't care
23 msix_interrupts don't care
24 ================ ===========================================================
25
26 2) Create a subdirectory to directory created in 1
27
28 NTB EPF specific configurable fields:
29
30 ================ ===========================================================
31 db_count Number of doorbells; default = 4
32 mw1 size of memory window1
33 mw2 size of memory window2
34 mw3 size of memory window3
35 mw4 size of memory window4
36 num_mws Number of memory windows; max = 4
37 spad_count Number of scratchpad registers; default = 64
38 ================ ===========================================================
39

3. 한국어 전문 번역

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

NTB EPF 생성과 표준 field

1-25

Configfs의 `pci_epf_ntb` directory 아래에 subdirectory를 만들어 PCI NTB endpoint function을 생성합니다.

NTB standard EPF fields
Field
vendorid0x104c
deviceid0xb00d (TI J721E SoC)
revid / progif_code무관
subclass_code0x00
baseclass_code0x5
cache_line_size무관
subsys_vendor_id / subsys_id무관
interrupt_pin / msi_interrupts / msix_interrupts무관

J721E SoC용 표준 PCI configuration header 값입니다.

.. SPDX-License-Identifier: GPL-2.0

==========================
PCI NTB Endpoint Function
==========================

1) Create a subdirectory to pci_epf_ntb directory in configfs.

Standard EPF Configurable Fields:

================   ===========================================================
vendorid           should be 0x104c
deviceid           should be 0xb00d for TI's J721E SoC
revid                   don't care
progif_code           don't care
subclass_code           should be 0x00
baseclass_code           should be 0x5
cache_line_size           don't care
subsys_vendor_id   don't care
subsys_id           don't care
interrupt_pin           don't care
msi_interrupts           don't care
msix_interrupts           don't care
================   ===========================================================

NTB 전용 configurable field

26-38

첫 단계에서 만든 directory 아래에 subdirectory를 하나 더 만들고 NTB EPF 전용 값을 설정합니다.

NTB EPF fields
Field의미
db_countDoorbell 수, 기본 4
mw1 / mw2 / mw3 / mw4각 memory window 크기
num_mwsMemory window 수, 최대 4
spad_countScratchpad register 수, 기본 64

Doorbell, memory window와 scratchpad 규모를 지정합니다.

2) Create a subdirectory to directory created in 1

NTB EPF specific configurable fields:

================   ===========================================================
db_count           Number of doorbells; default = 4
mw1                size of memory window1
mw2                size of memory window2
mw3                size of memory window3
mw4                size of memory window4
num_mws                Number of memory windows; max = 4
spad_count                Number of scratchpad registers; default = 64
================   ===========================================================