Lines Matching +full:endpoint +full:- +full:config
1 .. SPDX-License-Identifier: GPL-2.0
9 This document is a guide to help users use pci-epf-test function driver
13 Endpoint Device
16 Endpoint Controller Devices
17 ---------------------------
19 To find the list of endpoint controller devices in the system::
26 # ls /sys/kernel/config/pci_ep/controllers
30 Endpoint Function Drivers
31 -------------------------
33 To find the list of endpoint function drivers in the system::
35 # ls /sys/bus/pci-epf/drivers
40 # ls /sys/kernel/config/pci_ep/functions
44 Creating pci-epf-test Device
45 ----------------------------
47 PCI endpoint function device can be created using the configfs. To create
48 pci-epf-test device, the following commands can be used::
50 # mount -t configfs none /sys/kernel/config
51 # cd /sys/kernel/config/pci_ep/
54 The "mkdir func1" above creates the pci-epf-test function device that will
57 The PCI endpoint framework populates the directory with the following
65 The PCI endpoint function driver populates these entries with default values
66 when the device is bound to the driver. The pci-epf-test driver populates
75 Configuring pci-epf-test Device
76 -------------------------------
78 The user can configure the pci-epf-test device using configfs entry. In order
88 Binding pci-epf-test Device to EP Controller
89 --------------------------------------------
91 In order for the endpoint function device to be useful, it has to be bound to
92 a PCI endpoint controller driver. Use the configfs to bind the function
95 # ln -s functions/pci_epf_test/func1 controllers/51000000.pcie_ep/
97 Once the above step is completed, the PCI endpoint is ready to establish a link
102 --------------
104 In order for the endpoint device to establish a link with the host, the _start_
114 ------------
123 Using Endpoint Test function Device
124 -----------------------------------
127 the default PCI endpoint tests. To build the Kselftest for PCI endpoint
130 # cd <kernel-dir>
131 # make -C tools/testing/selftests/pci_endpoint
135 # cd <kernel-dir>
136 # make -C tools/testing/selftests/pci_endpoint INSTALL_PATH=/usr/bin install
201 capable endpoint controllers due to the absence of the MEMCPY over DMA. For such
205 # pci_endpoint_test -f pci_ep_bar -f pci_ep_basic -v memcpy -T COPY_TEST -v dma