Skip to content

Commit 8e3a324

Browse files
committed
Merge tag 'char-misc-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver updates from Greg KH: "Here is the big set of various smaller driver subsystem updates for 5.13-rc1. Major bits in here are: - habanalabs driver updates - hwtracing driver updates - interconnect driver updates - mhi driver updates - extcon driver updates - fpga driver updates - new binder features added - nvmem driver updates - phy driver updates - soundwire driver updates - smaller misc and char driver fixes and updates. - bluetooth driver bugfix that maintainer wanted to go through this tree. All of these have been in linux-next with no reported issues" * tag 'char-misc-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (330 commits) bluetooth: eliminate the potential race condition when removing the HCI controller coresight: etm-perf: Fix define build issue when built as module phy: Revert "phy: ti: j721e-wiz: add missing of_node_put" phy: ti: j721e-wiz: Add missing include linux/slab.h phy: phy-twl4030-usb: Fix possible use-after-free in twl4030_usb_remove() stm class: Use correct UUID APIs intel_th: pci: Add Alder Lake-M support intel_th: pci: Add Rocket Lake CPU support intel_th: Consistency and off-by-one fix intel_th: Constify attribute_group structs intel_th: Constify all drvdata references stm class: Remove an unused function habanalabs/gaudi: Fix uninitialized return code rc when read size is zero greybus: es2: fix kernel-doc warnings mei: me: add Alder Lake P device id. dw-xdata-pcie: Update outdated info and improve text format dw-xdata-pcie: Fix documentation build warns fbdev: zero-fill colormap in fbcmap.c firmware: qcom-scm: Fix QCOM_SCM configuration speakup: i18n: Switch to kmemdup_nul() in spk_msg_set() ...
2 parents 90035c2 + e2cb6b8 commit 8e3a324

216 files changed

Lines changed: 16281 additions & 1994 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/debugfs-driver-habanalabs

Lines changed: 54 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,24 @@ Description: Allows the root user to read or write 64 bit data directly
8282
If the IOMMU is disabled, it also allows the root user to read
8383
or write from the host a device VA of a host mapped memory
8484

85+
What: /sys/kernel/debug/habanalabs/hl<n>/data_dma
86+
Date: Apr 2021
87+
KernelVersion: 5.13
88+
Contact: ogabbay@kernel.org
89+
Description: Allows the root user to read from the device's internal
90+
memory (DRAM/SRAM) through a DMA engine.
91+
This property is a binary blob that contains the result of the
92+
DMA transfer.
93+
This custom interface is needed (instead of using the generic
94+
Linux user-space PCI mapping) because the amount of internal
95+
memory is huge (>32GB) and reading it via the PCI bar will take
96+
a very long time.
97+
This interface doesn't support concurrency in the same device.
98+
In GAUDI and GOYA, this action can cause undefined behavior
99+
in case the it is done while the device is executing user
100+
workloads.
101+
Only supported on GAUDI at this stage.
102+
85103
What: /sys/kernel/debug/habanalabs/hl<n>/device
86104
Date: Jan 2019
87105
KernelVersion: 5.1
@@ -90,6 +108,24 @@ Description: Enables the root user to set the device to specific state.
90108
Valid values are "disable", "enable", "suspend", "resume".
91109
User can read this property to see the valid values
92110

111+
What: /sys/kernel/debug/habanalabs/hl<n>/dma_size
112+
Date: Apr 2021
113+
KernelVersion: 5.13
114+
Contact: ogabbay@kernel.org
115+
Description: Specify the size of the DMA transaction when using DMA to read
116+
from the device's internal memory. The value can not be larger
117+
than 128MB. Writing to this value initiates the DMA transfer.
118+
When the write is finished, the user can read the "data_dma"
119+
blob
120+
121+
What: /sys/kernel/debug/habanalabs/hl<n>/dump_security_violations
122+
Date: Jan 2021
123+
KernelVersion: 5.12
124+
Contact: ogabbay@kernel.org
125+
Description: Dumps all security violations to dmesg. This will also ack
126+
all security violations meanings those violations will not be
127+
dumped next time user calls this API
128+
93129
What: /sys/kernel/debug/habanalabs/hl<n>/engines
94130
Date: Jul 2019
95131
KernelVersion: 5.3
@@ -154,13 +190,30 @@ Description: Displays the hop values and physical address for a given ASID
154190
e.g. to display info about VA 0x1000 for ASID 1 you need to do:
155191
echo "1 0x1000" > /sys/kernel/debug/habanalabs/hl0/mmu
156192

193+
What: /sys/kernel/debug/habanalabs/hl<n>/mmu_error
194+
Date: Mar 2021
195+
KernelVersion: 5.12
196+
Contact: fkassabri@habana.ai
197+
Description: Check and display page fault or access violation mmu errors for
198+
all MMUs specified in mmu_cap_mask.
199+
e.g. to display error info for MMU hw cap bit 9, you need to do:
200+
echo "0x200" > /sys/kernel/debug/habanalabs/hl0/mmu_error
201+
cat /sys/kernel/debug/habanalabs/hl0/mmu_error
202+
157203
What: /sys/kernel/debug/habanalabs/hl<n>/set_power_state
158204
Date: Jan 2019
159205
KernelVersion: 5.1
160206
Contact: ogabbay@kernel.org
161207
Description: Sets the PCI power state. Valid values are "1" for D0 and "2"
162208
for D3Hot
163209

210+
What: /sys/kernel/debug/habanalabs/hl<n>/stop_on_err
211+
Date: Mar 2020
212+
KernelVersion: 5.6
213+
Contact: ogabbay@kernel.org
214+
Description: Sets the stop-on_error option for the device engines. Value of
215+
"0" is for disable, otherwise enable.
216+
164217
What: /sys/kernel/debug/habanalabs/hl<n>/userptr
165218
Date: Jan 2019
166219
KernelVersion: 5.1
@@ -174,19 +227,4 @@ Date: Jan 2019
174227
KernelVersion: 5.1
175228
Contact: ogabbay@kernel.org
176229
Description: Displays a list with information about all the active virtual
177-
address mappings per ASID
178-
179-
What: /sys/kernel/debug/habanalabs/hl<n>/stop_on_err
180-
Date: Mar 2020
181-
KernelVersion: 5.6
182-
Contact: ogabbay@kernel.org
183-
Description: Sets the stop-on_error option for the device engines. Value of
184-
"0" is for disable, otherwise enable.
185-
186-
What: /sys/kernel/debug/habanalabs/hl<n>/dump_security_violations
187-
Date: Jan 2021
188-
KernelVersion: 5.12
189-
Contact: ogabbay@kernel.org
190-
Description: Dumps all security violations to dmesg. This will also ack
191-
all security violations meanings those violations will not be
192-
dumped next time user calls this API
230+
address mappings per ASID and all user mappings of HW blocks

Documentation/ABI/testing/sysfs-bus-pci-devices-pvpanic

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
What: /sys/devices/pci0000:00/*/QEMU0001:00/capability
1+
What: /sys/devices/pci0000:00/*/QEMU0001:00/capability for MMIO
2+
/sys/bus/pci/drivers/pvpanic-pci/0000:00:0*.0/capability for PCI
23
Date: Jan 2021
34
Contact: zhenwei pi <pizhenwei@bytedance.com>
45
Description:
@@ -12,6 +13,7 @@ Description:
1213
https://git.qemu.org/?p=qemu.git;a=blob_plain;f=docs/specs/pvpanic.txt
1314

1415
What: /sys/devices/pci0000:00/*/QEMU0001:00/events
16+
/sys/bus/pci/drivers/pvpanic-pci/0000:00:0*.0/events for PCI
1517
Date: Jan 2021
1618
Contact: zhenwei pi <pizhenwei@bytedance.com>
1719
Description:
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
What: /sys/class/misc/drivers/dw-xdata-pcie.<device>/write
2+
Date: April 2021
3+
KernelVersion: 5.13
4+
Contact: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
5+
Description: Allows the user to enable the PCIe traffic generator which
6+
will create write TLPs frames - from the Root Complex to the
7+
Endpoint direction or to disable the PCIe traffic generator
8+
in all directions.
9+
10+
Write y/1/on to enable, n/0/off to disable
11+
12+
Usage e.g.
13+
echo 1 > /sys/class/misc/dw-xdata-pcie.<device>/write
14+
or
15+
echo 0 > /sys/class/misc/dw-xdata-pcie.<device>/write
16+
17+
The user can read the current PCIe link throughput generated
18+
through this generator in MB/s.
19+
20+
Usage e.g.
21+
cat /sys/class/misc/dw-xdata-pcie.<device>/write
22+
204
23+
24+
The file is read and write.
25+
26+
What: /sys/class/misc/dw-xdata-pcie.<device>/read
27+
Date: April 2021
28+
KernelVersion: 5.13
29+
Contact: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
30+
Description: Allows the user to enable the PCIe traffic generator which
31+
will create read TLPs frames - from the Endpoint to the Root
32+
Complex direction or to disable the PCIe traffic generator
33+
in all directions.
34+
35+
Write y/1/on to enable, n/0/off to disable
36+
37+
Usage e.g.
38+
echo 1 > /sys/class/misc/dw-xdata-pcie.<device>/read
39+
or
40+
echo 0 > /sys/class/misc/dw-xdata-pcie.<device>/read
41+
42+
The user can read the current PCIe link throughput generated
43+
through this generator in MB/s.
44+
45+
Usage e.g.
46+
cat /sys/class/misc/dw-xdata-pcie.<device>/read
47+
199
48+
49+
The file is read and write.

Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/extcon/qcom,pm8941-misc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm Technologies, Inc. PM8941 USB ID Extcon device
8+
9+
maintainers:
10+
- Guru Das Srinagesh <gurus@codeaurora.org>
11+
12+
description: |
13+
Some Qualcomm PMICs have a "misc" module that can be used to detect when
14+
the USB ID pin has been pulled low or high.
15+
16+
properties:
17+
compatible:
18+
items:
19+
- const: qcom,pm8941-misc
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
minItems: 1
26+
maxItems: 2
27+
28+
interrupt-names:
29+
minItems: 1
30+
items:
31+
- const: usb_id
32+
- const: usb_vbus
33+
34+
required:
35+
- compatible
36+
- reg
37+
- interrupts
38+
- interrupt-names
39+
40+
additionalProperties: false
41+
42+
examples:
43+
- |
44+
#include <dt-bindings/interrupt-controller/irq.h>
45+
46+
pmic {
47+
#address-cells = <1>;
48+
#size-cells = <0>;
49+
interrupt-controller;
50+
#interrupt-cells = <4>;
51+
52+
usb_id: misc@900 {
53+
compatible = "qcom,pm8941-misc";
54+
reg = <0x900>;
55+
interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>;
56+
interrupt-names = "usb_id";
57+
};
58+
};
59+
60+
usb-controller {
61+
extcon = <&usb_id>;
62+
};

0 commit comments

Comments
 (0)