Skip to content

Commit 6daa904

Browse files
committed
Merge tag 'dmaengine-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine
Pull dmaengine updates from Vinod Koul: "The last dmaengine updates for this year :) This contains couple of new drivers, new device support and updates to bunch of drivers. New drivers/devices: - Qualcomm ADM driver - Qualcomm GPI driver - Allwinner A100 DMA support - Microchip Sama7g5 support - Mediatek MT8516 apdma Updates: - more updates to idxd driver and support for IAX config - runtime PM support for dw driver - TI drivers" * tag 'dmaengine-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine: (75 commits) soc: ti: k3-ringacc: Use correct error casting in k3_ringacc_dmarings_init dmaengine: ti: k3-udma-glue: Add support for K3 PKTDMA dmaengine: ti: k3-udma: Initial support for K3 PKTDMA dmaengine: ti: k3-udma: Add support for BCDMA channel TPL handling dmaengine: ti: k3-udma: Initial support for K3 BCDMA soc: ti: k3-ringacc: add AM64 DMA rings support. dmaengine: ti: Add support for k3 event routers dmaengine: ti: k3-psil: Add initial map for AM64 dmaengine: ti: k3-psil: Extend psil_endpoint_config for K3 PKTDMA dt-bindings: dma: ti: Add document for K3 PKTDMA dt-bindings: dma: ti: Add document for K3 BCDMA dmaengine: dmatest: Use dmaengine_get_dma_device dmaengine: doc: client: Update for dmaengine_get_dma_device() usage dmaengine: Add support for per channel coherency handling dmaengine: of-dma: Add support for optional router configuration callback dmaengine: ti: k3-udma-glue: Configure the dma_dev for rings dmaengine: ti: k3-udma-glue: Get the ringacc from udma_dev dmaengine: ti: k3-udma-glue: Add function to get device pointer for DMA API dmaengine: ti: k3-udma: Add support for second resource range from sysfw dmaengine: ti: k3-udma: Wait for peer teardown completion if supported ...
2 parents 83005cd + 115ff12 commit 6daa904

70 files changed

Lines changed: 7724 additions & 575 deletions

Some content is hidden

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

‎Documentation/ABI/stable/sysfs-driver-dma-idxd‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ Contact: dmaengine@vger.kernel.org
7777
Description: The operation capability bit mask specify the operation types
7878
supported by the this device.
7979

80+
What: /sys/bus/dsa/devices/dsa<m>/pasid_enabled
81+
Date: Oct 27, 2020
82+
KernelVersion: 5.11.0
83+
Contact: dmaengine@vger.kernel.org
84+
Description: To indicate if PASID (process address space identifier) is
85+
enabled or not for this device.
86+
8087
What: /sys/bus/dsa/devices/dsa<m>/state
8188
Date: Oct 25, 2019
8289
KernelVersion: 5.6.0
@@ -122,6 +129,13 @@ KernelVersion: 5.10.0
122129
Contact: dmaengine@vger.kernel.org
123130
Description: The last executed device administrative command's status/error.
124131

132+
What: /sys/bus/dsa/devices/wq<m>.<n>/block_on_fault
133+
Date: Oct 27, 2020
134+
KernelVersion: 5.11.0
135+
Contact: dmaengine@vger.kernel.org
136+
Description: To indicate block on fault is allowed or not for the work queue
137+
to support on demand paging.
138+
125139
What: /sys/bus/dsa/devices/wq<m>.<n>/group_id
126140
Date: Oct 25, 2019
127141
KernelVersion: 5.6.0
@@ -190,6 +204,13 @@ Contact: dmaengine@vger.kernel.org
190204
Description: The max batch size for this workqueue. Cannot exceed device
191205
max batch size. Configurable parameter.
192206

207+
What: /sys/bus/dsa/devices/wq<m>.<n>/ats_disable
208+
Date: Nov 13, 2020
209+
KernelVersion: 5.11.0
210+
Contact: dmaengine@vger.kernel.org
211+
Description: Indicate whether ATS disable is turned on for the workqueue.
212+
0 indicates ATS is on, and 1 indicates ATS is off for the workqueue.
213+
193214
What: /sys/bus/dsa/devices/engine<m>.<n>/group_id
194215
Date: Oct 25, 2019
195216
KernelVersion: 5.6.0

‎Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ properties:
2121
compatible:
2222
oneOf:
2323
- const: allwinner,sun50i-a64-dma
24+
- const: allwinner,sun50i-a100-dma
2425
- const: allwinner,sun50i-h6-dma
2526
- items:
2627
- const: allwinner,sun8i-r40-dma
@@ -56,7 +57,9 @@ required:
5657
if:
5758
properties:
5859
compatible:
59-
const: allwinner,sun50i-h6-dma
60+
enum:
61+
- allwinner,sun50i-a100-dma
62+
- allwinner,sun50i-h6-dma
6063

6164
then:
6265
properties:

‎Documentation/devicetree/bindings/dma/atmel-xdma.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
* XDMA Controller
44
Required properties:
5-
- compatible: Should be "atmel,sama5d4-dma" or "microchip,sam9x60-dma".
5+
- compatible: Should be "atmel,sama5d4-dma", "microchip,sam9x60-dma" or
6+
"microchip,sama7g5-dma".
67
- reg: Should contain DMA registers location and length.
78
- interrupts: Should contain DMA interrupt.
89
- #dma-cells: Must be <1>, used to represent the number of integer cells in

‎Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Required properties:
44
- compatible should contain:
55
* "mediatek,mt2712-uart-dma" for MT2712 compatible APDMA
66
* "mediatek,mt6577-uart-dma" for MT6577 and all of the above
7+
* "mediatek,mt8516-uart-dma", "mediatek,mt6577" for MT8516 SoC
78

89
- reg: The base address of the APDMA register bank.
910

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/dma/qcom,gpi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm Technologies Inc GPI DMA controller
8+
9+
maintainers:
10+
- Vinod Koul <vkoul@kernel.org>
11+
12+
description: |
13+
QCOM GPI DMA controller provides DMA capabilities for
14+
peripheral buses such as I2C, UART, and SPI.
15+
16+
allOf:
17+
- $ref: "dma-controller.yaml#"
18+
19+
properties:
20+
compatible:
21+
enum:
22+
- qcom,sdm845-gpi-dma
23+
24+
reg:
25+
maxItems: 1
26+
27+
interrupts:
28+
description:
29+
Interrupt lines for each GPI instance
30+
maxItems: 13
31+
32+
"#dma-cells":
33+
const: 3
34+
description: >
35+
DMA clients must use the format described in dma.txt, giving a phandle
36+
to the DMA controller plus the following 3 integer cells:
37+
- channel: if set to 0xffffffff, any available channel will be allocated
38+
for the client. Otherwise, the exact channel specified will be used.
39+
- seid: serial id of the client as defined in the SoC documentation.
40+
- client: type of the client as defined in dt-bindings/dma/qcom-gpi.h
41+
42+
iommus:
43+
maxItems: 1
44+
45+
dma-channels:
46+
maximum: 31
47+
48+
dma-channel-mask:
49+
maxItems: 1
50+
51+
required:
52+
- compatible
53+
- reg
54+
- interrupts
55+
- "#dma-cells"
56+
- iommus
57+
- dma-channels
58+
- dma-channel-mask
59+
60+
additionalProperties: false
61+
62+
examples:
63+
- |
64+
#include <dt-bindings/interrupt-controller/arm-gic.h>
65+
#include <dt-bindings/dma/qcom-gpi.h>
66+
gpi_dma0: dma-controller@800000 {
67+
compatible = "qcom,gpi-dma";
68+
#dma-cells = <3>;
69+
reg = <0x00800000 0x60000>;
70+
iommus = <&apps_smmu 0x0016 0x0>;
71+
dma-channels = <13>;
72+
dma-channel-mask = <0xfa>;
73+
interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>,
74+
<GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
75+
<GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>,
76+
<GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>,
77+
<GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>,
78+
<GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>,
79+
<GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>,
80+
<GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>,
81+
<GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>,
82+
<GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>,
83+
<GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>,
84+
<GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>,
85+
<GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>;
86+
};
87+
88+
...
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/dma/ti/k3-bcdma.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Texas Instruments K3 DMSS BCDMA Device Tree Bindings
8+
9+
maintainers:
10+
- Peter Ujfalusi <peter.ujfalusi@ti.com>
11+
12+
description: |
13+
The Block Copy DMA (BCDMA) is intended to perform similar functions as the TR
14+
mode channels of K3 UDMA-P.
15+
BCDMA includes block copy channels and Split channels.
16+
17+
Block copy channels mainly used for memory to memory transfers, but with
18+
optional triggers a block copy channel can service peripherals by accessing
19+
directly to memory mapped registers or area.
20+
21+
Split channels can be used to service PSI-L based peripherals.
22+
The peripherals can be PSI-L native or legacy, non PSI-L native peripherals
23+
with PDMAs. PDMA is tasked to act as a bridge between the PSI-L fabric and the
24+
legacy peripheral.
25+
26+
PDMAs can be configured via BCDMA split channel's peer registers to match with
27+
the configuration of the legacy peripheral.
28+
29+
allOf:
30+
- $ref: /schemas/dma/dma-controller.yaml#
31+
32+
properties:
33+
compatible:
34+
const: ti,am64-dmss-bcdma
35+
36+
"#dma-cells":
37+
const: 3
38+
description: |
39+
cell 1: type of the BCDMA channel to be used to service the peripheral:
40+
0 - split channel
41+
1 - block copy channel using global trigger 1
42+
2 - block copy channel using global trigger 2
43+
3 - block copy channel using local trigger
44+
45+
cell 2: parameter for the channel:
46+
if cell 1 is 0 (split channel):
47+
PSI-L thread ID of the remote (to BCDMA) end.
48+
Valid ranges for thread ID depends on the data movement direction:
49+
for source thread IDs (rx): 0 - 0x7fff
50+
for destination thread IDs (tx): 0x8000 - 0xffff
51+
52+
Please refer to the device documentation for the PSI-L thread map and
53+
also the PSI-L peripheral chapter for the correct thread ID.
54+
if cell 1 is 1 or 2 (block copy channel using global trigger):
55+
Unused, ignored
56+
57+
The trigger must be configured for the channel externally to BCDMA,
58+
channels using global triggers should not be requested directly, but
59+
via DMA event router.
60+
if cell 1 is 3 (block copy channel using local trigger):
61+
bchan number of the locally triggered channel
62+
63+
cell 3: ASEL value for the channel
64+
65+
reg:
66+
maxItems: 5
67+
68+
reg-names:
69+
items:
70+
- const: gcfg
71+
- const: bchanrt
72+
- const: rchanrt
73+
- const: tchanrt
74+
- const: ringrt
75+
76+
msi-parent: true
77+
78+
ti,asel:
79+
$ref: /schemas/types.yaml#/definitions/uint32
80+
description: ASEL value for non slave channels
81+
82+
ti,sci-rm-range-bchan:
83+
$ref: /schemas/types.yaml#/definitions/uint32-array
84+
description: |
85+
Array of BCDMA block-copy channel resource subtypes for resource
86+
allocation for this host
87+
minItems: 1
88+
# Should be enough
89+
maxItems: 255
90+
items:
91+
maximum: 0x3f
92+
93+
ti,sci-rm-range-tchan:
94+
$ref: /schemas/types.yaml#/definitions/uint32-array
95+
description: |
96+
Array of BCDMA split tx channel resource subtypes for resource allocation
97+
for this host
98+
minItems: 1
99+
# Should be enough
100+
maxItems: 255
101+
items:
102+
maximum: 0x3f
103+
104+
ti,sci-rm-range-rchan:
105+
$ref: /schemas/types.yaml#/definitions/uint32-array
106+
description: |
107+
Array of BCDMA split rx channel resource subtypes for resource allocation
108+
for this host
109+
minItems: 1
110+
# Should be enough
111+
maxItems: 255
112+
items:
113+
maximum: 0x3f
114+
115+
required:
116+
- compatible
117+
- "#dma-cells"
118+
- reg
119+
- reg-names
120+
- msi-parent
121+
- ti,sci
122+
- ti,sci-dev-id
123+
- ti,sci-rm-range-bchan
124+
- ti,sci-rm-range-tchan
125+
- ti,sci-rm-range-rchan
126+
127+
unevaluatedProperties: false
128+
129+
examples:
130+
- |+
131+
cbass_main {
132+
#address-cells = <2>;
133+
#size-cells = <2>;
134+
135+
main_dmss {
136+
compatible = "simple-mfd";
137+
#address-cells = <2>;
138+
#size-cells = <2>;
139+
dma-ranges;
140+
ranges;
141+
142+
ti,sci-dev-id = <25>;
143+
144+
main_bcdma: dma-controller@485c0100 {
145+
compatible = "ti,am64-dmss-bcdma";
146+
147+
reg = <0x0 0x485c0100 0x0 0x100>,
148+
<0x0 0x4c000000 0x0 0x20000>,
149+
<0x0 0x4a820000 0x0 0x20000>,
150+
<0x0 0x4aa40000 0x0 0x20000>,
151+
<0x0 0x4bc00000 0x0 0x100000>;
152+
reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt";
153+
msi-parent = <&inta_main_dmss>;
154+
#dma-cells = <3>;
155+
156+
ti,sci = <&dmsc>;
157+
ti,sci-dev-id = <26>;
158+
159+
ti,sci-rm-range-bchan = <0x20>; /* BLOCK_COPY_CHAN */
160+
ti,sci-rm-range-rchan = <0x21>; /* SPLIT_TR_RX_CHAN */
161+
ti,sci-rm-range-tchan = <0x22>; /* SPLIT_TR_TX_CHAN */
162+
};
163+
};
164+
};

0 commit comments

Comments
 (0)