Skip to content

Commit 152a093

Browse files
jbrun3tbjorn-helgaas
authored andcommitted
Documentation: PCI: endpoint: Document BAR assignment
It is now possible to assign BARs while creating a vNTB endpoint function. Update the documentation accordingly. Suggested-by: Bjorn Helgaas <helgaas@kernel.org> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://patch.msgid.link/20250731-vntb-doc-v1-1-95a0e0cd28d0@baylibre.com
1 parent 1ad82f9 commit 152a093

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Documentation/PCI/endpoint/pci-vntb-howto.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ of the function device and is populated with the following NTB specific
9090
attributes that can be configured by the user::
9191

9292
# ls functions/pci_epf_vntb/func1/pci_epf_vntb.0/
93-
db_count mw1 mw2 mw3 mw4 num_mws
94-
spad_count
93+
ctrl_bar db_count mw1_bar mw2_bar mw3_bar mw4_bar spad_count
94+
db_bar mw1 mw2 mw3 mw4 num_mws vbus_number
95+
vntb_vid vntb_pid
9596

9697
A sample configuration for NTB function is given below::
9798

@@ -100,6 +101,10 @@ A sample configuration for NTB function is given below::
100101
# echo 1 > functions/pci_epf_vntb/func1/pci_epf_vntb.0/num_mws
101102
# echo 0x100000 > functions/pci_epf_vntb/func1/pci_epf_vntb.0/mw1
102103

104+
By default, each construct is assigned a BAR, as needed and in order.
105+
Should a specific BAR setup be required by the platform, BAR may be assigned
106+
to each construct using the related ``XYZ_bar`` entry.
107+
103108
A sample configuration for virtual NTB driver for virtual PCI bus::
104109

105110
# echo 0x1957 > functions/pci_epf_vntb/func1/pci_epf_vntb.0/vntb_vid

0 commit comments

Comments
 (0)