Skip to content

Commit a6bdc08

Browse files
committed
Merge 'bpf-next 2023-10-16' into loongarch-next
LoongArch architecture changes for 6.7 (BPF CPU v4 support) depend on the bpf changes to fix conflictions in selftests and work, so merge them to create a base.
2 parents ffc2532 + 99c9991 commit a6bdc08

File tree

558 files changed

+44893
-4883
lines changed

Some content is hidden

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

558 files changed

+44893
-4883
lines changed

Documentation/admin-guide/sysctl/net.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ two flavors of JITs, the newer eBPF JIT currently supported on:
7171
- s390x
7272
- riscv64
7373
- riscv32
74+
- loongarch64
7475

7576
And the older cBPF JIT supported on the following archs:
7677

Documentation/bpf/libbpf/program_types.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ described in more detail in the footnotes.
5656
| | ``BPF_CGROUP_UDP6_RECVMSG`` | ``cgroup/recvmsg6`` | |
5757
+ +----------------------------------------+----------------------------------+-----------+
5858
| | ``BPF_CGROUP_UDP6_SENDMSG`` | ``cgroup/sendmsg6`` | |
59+
| +----------------------------------------+----------------------------------+-----------+
60+
| | ``BPF_CGROUP_UNIX_CONNECT`` | ``cgroup/connect_unix`` | |
61+
| +----------------------------------------+----------------------------------+-----------+
62+
| | ``BPF_CGROUP_UNIX_SENDMSG`` | ``cgroup/sendmsg_unix`` | |
63+
| +----------------------------------------+----------------------------------+-----------+
64+
| | ``BPF_CGROUP_UNIX_RECVMSG`` | ``cgroup/recvmsg_unix`` | |
65+
| +----------------------------------------+----------------------------------+-----------+
66+
| | ``BPF_CGROUP_UNIX_GETPEERNAME`` | ``cgroup/getpeername_unix`` | |
67+
| +----------------------------------------+----------------------------------+-----------+
68+
| | ``BPF_CGROUP_UNIX_GETSOCKNAME`` | ``cgroup/getsockname_unix`` | |
5969
+-------------------------------------------+----------------------------------------+----------------------------------+-----------+
6070
| ``BPF_PROG_TYPE_CGROUP_SOCK`` | ``BPF_CGROUP_INET4_POST_BIND`` | ``cgroup/post_bind4`` | |
6171
+ +----------------------------------------+----------------------------------+-----------+

Documentation/bpf/prog_flow_dissector.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Flags
113113
used by ``eth_get_headlen`` to estimate length of all headers for GRO.
114114
* ``BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL`` - tells BPF flow dissector to
115115
stop parsing as soon as it reaches IPv6 flow label; used by
116-
``___skb_get_hash`` and ``__skb_get_hash_symmetric`` to get flow hash.
116+
``___skb_get_hash`` to get flow hash.
117117
* ``BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP`` - tells BPF flow dissector to stop
118118
parsing as soon as it reaches encapsulated headers; used by routing
119119
infrastructure.

Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-wed.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ properties:
2222
- mediatek,mt7622-wed
2323
- mediatek,mt7981-wed
2424
- mediatek,mt7986-wed
25+
- mediatek,mt7988-wed
2526
- const: syscon
2627

2728
reg:

Documentation/devicetree/bindings/mfd/syscon.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ properties:
4949
- hisilicon,peri-subctrl
5050
- hpe,gxp-sysreg
5151
- intel,lgm-syscon
52+
- loongson,ls1b-syscon
53+
- loongson,ls1c-syscon
5254
- marvell,armada-3700-usb2-host-misc
5355
- mediatek,mt8135-pctl-a-syscfg
5456
- mediatek,mt8135-pctl-b-syscfg

Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,26 @@ properties:
4949
Set if the output SYNCLKO clock should be disabled. Do not mix with
5050
microchip,synclko-125.
5151

52+
microchip,io-drive-strength-microamp:
53+
description:
54+
IO Pad Drive Strength
55+
enum: [8000, 16000]
56+
default: 16000
57+
58+
microchip,hi-drive-strength-microamp:
59+
description:
60+
High Speed Drive Strength. Controls drive strength of GMII / RGMII /
61+
MII / RMII (except TX_CLK/REFCLKI, COL and CRS) and CLKO_25_125 lines.
62+
enum: [2000, 4000, 8000, 12000, 16000, 20000, 24000, 28000]
63+
default: 24000
64+
65+
microchip,lo-drive-strength-microamp:
66+
description:
67+
Low Speed Drive Strength. Controls drive strength of TX_CLK / REFCLKI,
68+
COL, CRS, LEDs, PME_N, NTRP_N, SDO and SDI/SDA/MDIO lines.
69+
enum: [2000, 4000, 8000, 12000, 16000, 20000, 24000, 28000]
70+
default: 8000
71+
5272
interrupts:
5373
maxItems: 1
5474

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/loongson,ls1b-gmac.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Loongson-1B Gigabit Ethernet MAC Controller
8+
9+
maintainers:
10+
- Keguang Zhang <keguang.zhang@gmail.com>
11+
12+
description: |
13+
Loongson-1B Gigabit Ethernet MAC Controller is based on
14+
Synopsys DesignWare MAC (version 3.50a).
15+
16+
Main features
17+
- Dual 10/100/1000Mbps GMAC controllers
18+
- Full-duplex operation (IEEE 802.3x flow control automatic transmission)
19+
- Half-duplex operation (CSMA/CD Protocol and back-pressure support)
20+
- RX Checksum Offload
21+
- TX Checksum insertion
22+
- MII interface
23+
- RGMII interface
24+
25+
select:
26+
properties:
27+
compatible:
28+
contains:
29+
enum:
30+
- loongson,ls1b-gmac
31+
required:
32+
- compatible
33+
34+
properties:
35+
compatible:
36+
items:
37+
- enum:
38+
- loongson,ls1b-gmac
39+
- const: snps,dwmac-3.50a
40+
41+
reg:
42+
maxItems: 1
43+
44+
clocks:
45+
maxItems: 1
46+
47+
clock-names:
48+
items:
49+
- const: stmmaceth
50+
51+
interrupts:
52+
maxItems: 1
53+
54+
interrupt-names:
55+
items:
56+
- const: macirq
57+
58+
loongson,ls1-syscon:
59+
$ref: /schemas/types.yaml#/definitions/phandle
60+
description:
61+
Phandle to the syscon containing some extra configurations
62+
including PHY interface mode.
63+
64+
phy-mode:
65+
enum:
66+
- mii
67+
- rgmii-id
68+
69+
required:
70+
- compatible
71+
- reg
72+
- clocks
73+
- clock-names
74+
- interrupts
75+
- interrupt-names
76+
- loongson,ls1-syscon
77+
78+
allOf:
79+
- $ref: snps,dwmac.yaml#
80+
81+
unevaluatedProperties: false
82+
83+
examples:
84+
- |
85+
#include <dt-bindings/clock/loongson,ls1x-clk.h>
86+
#include <dt-bindings/interrupt-controller/irq.h>
87+
88+
gmac0: ethernet@1fe10000 {
89+
compatible = "loongson,ls1b-gmac", "snps,dwmac-3.50a";
90+
reg = <0x1fe10000 0x10000>;
91+
92+
clocks = <&clkc LS1X_CLKID_AHB>;
93+
clock-names = "stmmaceth";
94+
95+
interrupt-parent = <&intc1>;
96+
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
97+
interrupt-names = "macirq";
98+
99+
loongson,ls1-syscon = <&syscon>;
100+
101+
phy-handle = <&phy0>;
102+
phy-mode = "mii";
103+
snps,pbl = <1>;
104+
105+
mdio {
106+
#address-cells = <1>;
107+
#size-cells = <0>;
108+
compatible = "snps,dwmac-mdio";
109+
110+
phy0: ethernet-phy@0 {
111+
reg = <0x0>;
112+
};
113+
};
114+
};
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/loongson,ls1c-emac.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Loongson-1C Ethernet MAC Controller
8+
9+
maintainers:
10+
- Keguang Zhang <keguang.zhang@gmail.com>
11+
12+
description: |
13+
Loongson-1C Ethernet MAC Controller is based on
14+
Synopsys DesignWare MAC (version 3.50a).
15+
16+
Main features
17+
- 10/100Mbps
18+
- Full-duplex operation (IEEE 802.3x flow control automatic transmission)
19+
- Half-duplex operation (CSMA/CD Protocol and back-pressure support)
20+
- IEEE 802.1Q VLAN tag detection for reception frames
21+
- MII interface
22+
- RMII interface
23+
24+
select:
25+
properties:
26+
compatible:
27+
contains:
28+
enum:
29+
- loongson,ls1c-emac
30+
required:
31+
- compatible
32+
33+
properties:
34+
compatible:
35+
items:
36+
- enum:
37+
- loongson,ls1c-emac
38+
- const: snps,dwmac-3.50a
39+
40+
reg:
41+
maxItems: 1
42+
43+
clocks:
44+
maxItems: 1
45+
46+
clock-names:
47+
items:
48+
- const: stmmaceth
49+
50+
interrupts:
51+
maxItems: 1
52+
53+
interrupt-names:
54+
items:
55+
- const: macirq
56+
57+
loongson,ls1-syscon:
58+
$ref: /schemas/types.yaml#/definitions/phandle
59+
description:
60+
Phandle to the syscon containing some extra configurations
61+
including PHY interface mode.
62+
63+
phy-mode:
64+
enum:
65+
- mii
66+
- rmii
67+
68+
required:
69+
- compatible
70+
- reg
71+
- clocks
72+
- clock-names
73+
- interrupts
74+
- interrupt-names
75+
- loongson,ls1-syscon
76+
77+
allOf:
78+
- $ref: snps,dwmac.yaml#
79+
80+
unevaluatedProperties: false
81+
82+
examples:
83+
- |
84+
#include <dt-bindings/clock/loongson,ls1x-clk.h>
85+
#include <dt-bindings/interrupt-controller/irq.h>
86+
87+
emac: ethernet@1fe10000 {
88+
compatible = "loongson,ls1c-emac", "snps,dwmac-3.50a";
89+
reg = <0x1fe10000 0x10000>;
90+
91+
clocks = <&clkc LS1X_CLKID_AHB>;
92+
clock-names = "stmmaceth";
93+
94+
interrupt-parent = <&intc1>;
95+
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
96+
interrupt-names = "macirq";
97+
98+
loongson,ls1-syscon = <&syscon>;
99+
100+
phy-handle = <&phy0>;
101+
phy-mode = "mii";
102+
snps,pbl = <1>;
103+
104+
mdio {
105+
#address-cells = <1>;
106+
#size-cells = <0>;
107+
compatible = "snps,dwmac-mdio";
108+
109+
phy0: ethernet-phy@13 {
110+
reg = <0x13>;
111+
};
112+
};
113+
};

Documentation/devicetree/bindings/net/snps,dwmac.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,11 @@ properties:
394394
When a PFC frame is received with priorities matching the bitmask,
395395
the queue is blocked from transmitting for the pause time specified
396396
in the PFC frame.
397+
398+
snps,coe-unsupported:
399+
type: boolean
400+
description: TX checksum offload is unsupported by the TX queue.
401+
397402
allOf:
398403
- if:
399404
required:

Documentation/devicetree/bindings/net/ti,icssg-prueth.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ allOf:
1919
properties:
2020
compatible:
2121
enum:
22+
- ti,am642-icssg-prueth # for AM64x SoC family
2223
- ti,am654-icssg-prueth # for AM65x SoC family
2324

2425
sram:
@@ -106,6 +107,13 @@ properties:
106107
phandle to system controller node and register offset
107108
to ICSSG control register for RGMII transmit delay
108109

110+
ti,half-duplex-capable:
111+
type: boolean
112+
description:
113+
Indicates that the PHY output pin COL is routed to ICSSG GPIO pin
114+
(PRGx_PRU0/1_GPIO10) as input so that the ICSSG MII port is
115+
capable of half duplex operations.
116+
109117
required:
110118
- reg
111119
anyOf:

0 commit comments

Comments
 (0)