Skip to content

Commit fb4da21

Browse files
committed
Merge tag 'pci-v5.3-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI updates from Bjorn Helgaas: "Enumeration changes: - Evaluate PCI Boot Configuration _DSM to learn if firmware wants us to preserve its resource assignments (Benjamin Herrenschmidt) - Simplify resource distribution (Nicholas Johnson) - Decode 32 GT/s link speed (Gustavo Pimentel) Virtualization: - Fix incorrect caching of VF config space size (Alex Williamson) - Fix VF driver probing sysfs knobs (Alex Williamson) Peer-to-peer DMA: - Fix dma_virt_ops check (Logan Gunthorpe) Altera host bridge driver: - Allow building as module (Ley Foon Tan) Armada 8K host bridge driver: - add PHYs support (Miquel Raynal) DesignWare host bridge driver: - Export APIs to support removable loadable module (Vidya Sagar) - Enable Relaxed Ordering erratum workaround only on Tegra20 & Tegra30 (Vidya Sagar) Hyper-V host bridge driver: - Fix use-after-free in eject (Dexuan Cui) Mobiveil host bridge driver: - Clean up and fix many issues, including non-identify mapped windows, 64-bit windows, multi-MSI, class code, INTx clearing (Hou Zhiqiang) Qualcomm host bridge driver: - Use clk bulk API for 2.4.0 controllers (Bjorn Andersson) - Add QCS404 support (Bjorn Andersson) - Assert PERST for at least 100ms (Niklas Cassel) R-Car host bridge driver: - Add r8a774a1 DT support (Biju Das) Tegra host bridge driver: - Add support for Gen2, opportunistic UpdateFC and ACK (PCIe protocol details) AER, GPIO-based PERST# (Manikanta Maddireddy) - Fix many issues, including power-on failure cases, interrupt masking in suspend, UPHY settings, AFI dynamic clock gating, pending DLL transactions (Manikanta Maddireddy) Xilinx host bridge driver: - Fix NWL Multi-MSI programming (Bharat Kumar Gogada) Endpoint support: - Fix 64bit BAR support (Alan Mikhak) - Fix pcitest build issues (Alan Mikhak, Andy Shevchenko) Bug fixes: - Fix NVIDIA GPU multi-function power dependencies (Abhishek Sahu) - Fix NVIDIA GPU HDA enablement issue (Lukas Wunner) - Ignore lockdep for sysfs "remove" (Marek Vasut) Misc: - Convert docs to reST (Changbin Du, Mauro Carvalho Chehab)" * tag 'pci-v5.3-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (107 commits) PCI: Enable NVIDIA HDA controllers tools: PCI: Fix installation when `make tools/pci_install` PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB PCI: Fix typos and whitespace errors PCI: mobiveil: Fix INTx interrupt clearing in mobiveil_pcie_isr() PCI: mobiveil: Fix infinite-loop in the INTx handling function PCI: mobiveil: Move PCIe PIO enablement out of inbound window routine PCI: mobiveil: Add upper 32-bit PCI base address setup in inbound window PCI: mobiveil: Add upper 32-bit CPU base address setup in outbound window PCI: mobiveil: Mask out hardcoded bits in inbound/outbound windows setup PCI: mobiveil: Clear the control fields before updating it PCI: mobiveil: Add configured inbound windows counter PCI: mobiveil: Fix the valid check for inbound and outbound windows PCI: mobiveil: Clean-up program_{ib/ob}_windows() PCI: mobiveil: Remove an unnecessary return value check PCI: mobiveil: Fix error return values PCI: mobiveil: Refactor the MEM/IO outbound window initialization PCI: mobiveil: Make some register updates more readable PCI: mobiveil: Reformat the code for readability dt-bindings: PCI: mobiveil: Change gpio_slave and apb_csr to optional ...
2 parents 2a3c389 + 7b4b0f6 commit fb4da21

117 files changed

Lines changed: 4502 additions & 2994 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/ABI/testing/sysfs-class-powercap‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Contact: linux-pm@vger.kernel.org
55
Description:
66
The powercap/ class sub directory belongs to the power cap
77
subsystem. Refer to
8-
Documentation/power/powercap/powercap.txt for details.
8+
Documentation/power/powercap/powercap.rst for details.
99

1010
What: /sys/class/powercap/<control type>
1111
Date: September 2013
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
ACPI considerations for PCI host bridges
1+
.. SPDX-License-Identifier: GPL-2.0
2+
3+
========================================
4+
ACPI considerations for PCI host bridges
5+
========================================
26

37
The general rule is that the ACPI namespace should describe everything the
48
OS might use unless there's another way for the OS to find it [1, 2].
@@ -131,12 +135,13 @@ address always corresponds to bus 0, even if the bus range below the bridge
131135

132136
[4] ACPI 6.2, sec 6.4.3.5.1, 2, 3, 4:
133137
QWord/DWord/Word Address Space Descriptor (.1, .2, .3)
134-
General Flags: Bit [0] Ignored
138+
General Flags: Bit [0] Ignored
135139

136140
Extended Address Space Descriptor (.4)
137-
General Flags: Bit [0] Consumer/Producer:
138-
1–This device consumes this resource
139-
0–This device produces and consumes this resource
141+
General Flags: Bit [0] Consumer/Producer:
142+
143+
* 1 – This device consumes this resource
144+
* 0 – This device produces and consumes this resource
140145

141146
[5] ACPI 6.2, sec 19.6.43:
142147
ResourceUsage specifies whether the Memory range is consumed by
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.. SPDX-License-Identifier: GPL-2.0
2+
3+
======================
4+
PCI Endpoint Framework
5+
======================
6+
7+
.. toctree::
8+
:maxdepth: 2
9+
10+
pci-endpoint
11+
pci-endpoint-cfs
12+
pci-test-function
13+
pci-test-howto
Lines changed: 56 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,51 @@
1-
CONFIGURING PCI ENDPOINT USING CONFIGFS
2-
Kishon Vijay Abraham I <kishon@ti.com>
1+
.. SPDX-License-Identifier: GPL-2.0
2+
3+
=======================================
4+
Configuring PCI Endpoint Using CONFIGFS
5+
=======================================
6+
7+
:Author: Kishon Vijay Abraham I <kishon@ti.com>
38

49
The PCI Endpoint Core exposes configfs entry (pci_ep) to configure the
510
PCI endpoint function and to bind the endpoint function
611
with the endpoint controller. (For introducing other mechanisms to
712
configure the PCI Endpoint Function refer to [1]).
813

9-
*) Mounting configfs
14+
Mounting configfs
15+
=================
1016

1117
The PCI Endpoint Core layer creates pci_ep directory in the mounted configfs
12-
directory. configfs can be mounted using the following command.
18+
directory. configfs can be mounted using the following command::
1319

1420
mount -t configfs none /sys/kernel/config
1521

16-
*) Directory Structure
22+
Directory Structure
23+
===================
1724

1825
The pci_ep configfs has two directories at its root: controllers and
1926
functions. Every EPC device present in the system will have an entry in
2027
the *controllers* directory and and every EPF driver present in the system
2128
will have an entry in the *functions* directory.
29+
::
2230

23-
/sys/kernel/config/pci_ep/
24-
.. controllers/
25-
.. functions/
31+
/sys/kernel/config/pci_ep/
32+
.. controllers/
33+
.. functions/
2634

27-
*) Creating EPF Device
35+
Creating EPF Device
36+
===================
2837

2938
Every registered EPF driver will be listed in controllers directory. The
3039
entries corresponding to EPF driver will be created by the EPF core.
40+
::
3141

32-
/sys/kernel/config/pci_ep/functions/
33-
.. <EPF Driver1>/
34-
... <EPF Device 11>/
35-
... <EPF Device 21>/
36-
.. <EPF Driver2>/
37-
... <EPF Device 12>/
38-
... <EPF Device 22>/
42+
/sys/kernel/config/pci_ep/functions/
43+
.. <EPF Driver1>/
44+
... <EPF Device 11>/
45+
... <EPF Device 21>/
46+
.. <EPF Driver2>/
47+
... <EPF Device 12>/
48+
... <EPF Device 22>/
3949

4050
In order to create a <EPF device> of the type probed by <EPF Driver>, the
4151
user has to create a directory inside <EPF DriverN>.
@@ -44,34 +54,37 @@ Every <EPF device> directory consists of the following entries that can be
4454
used to configure the standard configuration header of the endpoint function.
4555
(These entries are created by the framework when any new <EPF Device> is
4656
created)
47-
48-
.. <EPF Driver1>/
49-
... <EPF Device 11>/
50-
... vendorid
51-
... deviceid
52-
... revid
53-
... progif_code
54-
... subclass_code
55-
... baseclass_code
56-
... cache_line_size
57-
... subsys_vendor_id
58-
... subsys_id
59-
... interrupt_pin
60-
61-
*) EPC Device
57+
::
58+
59+
.. <EPF Driver1>/
60+
... <EPF Device 11>/
61+
... vendorid
62+
... deviceid
63+
... revid
64+
... progif_code
65+
... subclass_code
66+
... baseclass_code
67+
... cache_line_size
68+
... subsys_vendor_id
69+
... subsys_id
70+
... interrupt_pin
71+
72+
EPC Device
73+
==========
6274

6375
Every registered EPC device will be listed in controllers directory. The
6476
entries corresponding to EPC device will be created by the EPC core.
65-
66-
/sys/kernel/config/pci_ep/controllers/
67-
.. <EPC Device1>/
68-
... <Symlink EPF Device11>/
69-
... <Symlink EPF Device12>/
70-
... start
71-
.. <EPC Device2>/
72-
... <Symlink EPF Device21>/
73-
... <Symlink EPF Device22>/
74-
... start
77+
::
78+
79+
/sys/kernel/config/pci_ep/controllers/
80+
.. <EPC Device1>/
81+
... <Symlink EPF Device11>/
82+
... <Symlink EPF Device12>/
83+
... start
84+
.. <EPC Device2>/
85+
... <Symlink EPF Device21>/
86+
... <Symlink EPF Device22>/
87+
... start
7588

7689
The <EPC Device> directory will have a list of symbolic links to
7790
<EPF Device>. These symbolic links should be created by the user to
@@ -81,7 +94,7 @@ The <EPC Device> directory will also have a *start* field. Once
8194
"1" is written to this field, the endpoint device will be ready to
8295
establish the link with the host. This is usually done after
8396
all the EPF devices are created and linked with the EPC device.
84-
97+
::
8598

8699
| controllers/
87100
| <Directory: EPC name>/
@@ -102,4 +115,4 @@ all the EPF devices are created and linked with the EPC device.
102115
| interrupt_pin
103116
| function
104117

105-
[1] -> Documentation/PCI/endpoint/pci-endpoint.txt
118+
[1] :doc:`pci-endpoint`

0 commit comments

Comments
 (0)