Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Jerome Brunet and committed by
Bjorn Helgaas
152a0936 1ad82f9d

+7 -2
+7 -2
Documentation/PCI/endpoint/pci-vntb-howto.rst
··· 90 90 attributes that can be configured by the user:: 91 91 92 92 # 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 95 96 96 97 A sample configuration for NTB function is given below:: 97 98 ··· 100 99 # echo 128 > functions/pci_epf_vntb/func1/pci_epf_vntb.0/spad_count 101 100 # echo 1 > functions/pci_epf_vntb/func1/pci_epf_vntb.0/num_mws 102 101 # echo 0x100000 > functions/pci_epf_vntb/func1/pci_epf_vntb.0/mw1 102 + 103 + By default, each construct is assigned a BAR, as needed and in order. 104 + Should a specific BAR setup be required by the platform, BAR may be assigned 105 + to each construct using the related ``XYZ_bar`` entry. 103 106 104 107 A sample configuration for virtual NTB driver for virtual PCI bus:: 105 108