forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'char-misc-4.4-rc1' of git://git.kernel.org/pub/scm/linux/k…
…ernel/git/gregkh/char-misc Pull char/misc driver updates from Greg KH: "Here is the big char/misc driver update for 4.4-rc1. Lots of different driver and subsystem updates, hwtracing being the largest with the addition of some new platforms that are now supported. Full details in the shortlog. All of these have been in linux-next for a long time with no reported issues" * tag 'char-misc-4.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (181 commits) fpga: socfpga: Fix check of return value of devm_request_irq lkdtm: fix ACCESS_USERSPACE test mcb: Destroy IDA on module unload mcb: Do not return zero on error path in mcb_pci_probe() mei: bus: set the device name before running fixup mei: bus: use correct lock ordering mei: Fix debugfs filename in error output char: ipmi: ipmi_ssif: Replace timeval with timespec64 fpga: zynq-fpga: Fix issue with drvdata being overwritten. fpga manager: remove unnecessary null pointer checks fpga manager: ensure lifetime with of_fpga_mgr_get fpga: zynq-fpga: Change fw format to handle bin instead of bit. fpga: zynq-fpga: Fix unbalanced clock handling misc: sram: partition base address belongs to __iomem space coresight: etm3x: adding documentation for sysFS's cpu interface vme: 8-bit status/id takes 256 values, not 255 fpga manager: Adding FPGA Manager support for Xilinx Zynq 7000 ARM: zynq: dt: Updated devicetree for Zynq 7000 platform. ARM: dt: fpga: Added binding docs for Xilinx Zynq FPGA manager. ver_linux: proc/modules, limit text processing to 'sed' ...
- Loading branch information
Showing
204 changed files
with
21,697 additions
and
2,645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
What: /config/stp-policy | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Description: | ||
This group contains policies mandating Master/Channel allocation | ||
for software sources wishing to send trace data over an STM | ||
device. | ||
|
||
What: /config/stp-policy/<device>.<policy> | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Description: | ||
This group is the root of a policy; its name is a concatenation | ||
of an stm device name to which this policy applies and an | ||
arbitrary string. If <device> part doesn't match an existing | ||
stm device, mkdir will fail with ENODEV; if that device already | ||
has a policy assigned to it, mkdir will fail with EBUSY. | ||
|
||
What: /config/stp-policy/<device>.<policy>/device | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Description: | ||
STM device to which this policy applies, read only. Same as the | ||
<device> component of its parent directory. | ||
|
||
What: /config/stp-policy/<device>.<policy>/<node> | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Description: | ||
Policy node is a string identifier that software clients will | ||
use to request a master/channel to be allocated and assigned to | ||
them. | ||
|
||
What: /config/stp-policy/<device>.<policy>/<node>/masters | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Description: | ||
Range of masters from which to allocate for users of this node. | ||
Write two numbers: the first master and the last master number. | ||
|
||
What: /config/stp-policy/<device>.<policy>/<node>/channels | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Description: | ||
Range of channels from which to allocate for users of this node. | ||
Write two numbers: the first channel and the last channel | ||
number. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,6 @@ Description: (RW) Enable/disable tracing on this specific trace entiry. | |
of coresight components linking the source to the sink is | ||
configured and managed automatically by the coresight framework. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/status | ||
Date: November 2014 | ||
KernelVersion: 3.19 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (R) List various control and status registers. The specific | ||
layout and content is driver specific. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_idx | ||
Date: November 2014 | ||
KernelVersion: 3.19 | ||
|
@@ -251,3 +244,79 @@ Date: November 2014 | |
KernelVersion: 3.19 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (RW) Define the event that controls the trigger. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cpu | ||
Date: October 2015 | ||
KernelVersion: 4.4 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (RO) Holds the cpu number this tracer is affined to. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mgmt/etmccr | ||
Date: September 2015 | ||
KernelVersion: 4.4 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (RO) Print the content of the ETM Configuration Code register | ||
(0x004). The value is read directly from the HW. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mgmt/etmccer | ||
Date: September 2015 | ||
KernelVersion: 4.4 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (RO) Print the content of the ETM Configuration Code Extension | ||
register (0x1e8). The value is read directly from the HW. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mgmt/etmscr | ||
Date: September 2015 | ||
KernelVersion: 4.4 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (RO) Print the content of the ETM System Configuration | ||
register (0x014). The value is read directly from the HW. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mgmt/etmidr | ||
Date: September 2015 | ||
KernelVersion: 4.4 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (RO) Print the content of the ETM ID register (0x1e4). The | ||
value is read directly from the HW. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mgmt/etmcr | ||
Date: September 2015 | ||
KernelVersion: 4.4 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (RO) Print the content of the ETM Main Control register (0x000). | ||
The value is read directly from the HW. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mgmt/etmtraceidr | ||
Date: September 2015 | ||
KernelVersion: 4.4 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (RO) Print the content of the ETM Trace ID register (0x200). | ||
The value is read directly from the HW. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mgmt/etmteevr | ||
Date: September 2015 | ||
KernelVersion: 4.4 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (RO) Print the content of the ETM Trace Enable Event register | ||
(0x020). The value is read directly from the HW. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mgmt/etmtsscr | ||
Date: September 2015 | ||
KernelVersion: 4.4 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (RO) Print the content of the ETM Trace Start/Stop Conrol | ||
register (0x018). The value is read directly from the HW. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mgmt/etmtecr1 | ||
Date: September 2015 | ||
KernelVersion: 4.4 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (RO) Print the content of the ETM Enable Conrol #1 | ||
register (0x024). The value is read directly from the HW. | ||
|
||
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mgmt/etmtecr2 | ||
Date: September 2015 | ||
KernelVersion: 4.4 | ||
Contact: Mathieu Poirier <[email protected]> | ||
Description: (RO) Print the content of the ETM Enable Conrol #2 | ||
register (0x01c). The value is read directly from the HW. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
What: /sys/bus/intel_th/devices/<intel_th_id>-gth/masters/* | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RW) Configure output ports for STP masters. Writing -1 | ||
disables a master; any | ||
|
||
What: /sys/bus/intel_th/devices/<intel_th_id>-gth/outputs/[0-7]_port | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RO) Output port type: | ||
0: not present, | ||
1: MSU (Memory Storage Unit) | ||
2: CTP (Common Trace Port) | ||
4: PTI (MIPI PTI). | ||
|
||
What: /sys/bus/intel_th/devices/<intel_th_id>-gth/outputs/[0-7]_drop | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RW) Data retention policy setting: keep (0) or drop (1) | ||
incoming data while output port is in reset. | ||
|
||
What: /sys/bus/intel_th/devices/<intel_th_id>-gth/outputs/[0-7]_null | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RW) STP NULL packet generation: enabled (1) or disabled (0). | ||
|
||
What: /sys/bus/intel_th/devices/<intel_th_id>-gth/outputs/[0-7]_flush | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RW) Force flush data from byte packing buffer for the output | ||
port. | ||
|
||
What: /sys/bus/intel_th/devices/<intel_th_id>-gth/outputs/[0-7]_reset | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RO) Output port is in reset (1). | ||
|
||
What: /sys/bus/intel_th/devices/<intel_th_id>-gth/outputs/[0-7]_smcfreq | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RW) STP sync packet frequency for the port. Specifies the | ||
number of clocks between mainenance packets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
What: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/wrap | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RW) Configure MSC buffer wrapping. 1 == wrapping enabled. | ||
|
||
What: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/mode | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RW) Configure MSC operating mode: | ||
- "single", for contiguous buffer mode (high-order alloc); | ||
- "multi", for multiblock mode; | ||
- "ExI", for DCI handler mode; | ||
- "debug", for debug mode. | ||
If operating mode changes, existing buffer is deallocated, | ||
provided there are no active users and tracing is not enabled, | ||
otherwise the write will fail. | ||
|
||
What: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/nr_pages | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RW) Configure MSC buffer size for "single" or "multi" modes. | ||
In single mode, this is a single number of pages, has to be | ||
power of 2. In multiblock mode, this is a comma-separated list | ||
of numbers of pages for each window to be allocated. Number of | ||
windows is not limited. | ||
Writing to this file deallocates existing buffer (provided | ||
there are no active users and tracing is not enabled) and then | ||
allocates a new one. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
What: /sys/bus/intel_th/devices/<intel_th_id>-pti/mode | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RW) Configure PTI output width. Currently supported values | ||
are 4, 8, 12, 16. | ||
|
||
What: /sys/bus/intel_th/devices/<intel_th_id>-pti/freerunning_clock | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RW) 0: PTI trace clock acts as a strobe which only toggles | ||
when there is trace data to send. 1: PTI trace clock is a | ||
free-running clock. | ||
|
||
What: /sys/bus/intel_th/devices/<intel_th_id>-pti/clock_divider | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RW) Configure PTI port clock divider: | ||
- 0: Intel TH clock rate, | ||
- 1: 1/2 Intel TH clock rate, | ||
- 2: 1/4 Intel TH clock rate, | ||
- 3: 1/8 Intel TH clock rate. |
13 changes: 13 additions & 0 deletions
13
Documentation/ABI/testing/sysfs-bus-intel_th-output-devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
What: /sys/bus/intel_th/devices/<intel_th_id>-<device><id>/active | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RW) Writes of 1 or 0 enable or disable trace output to this | ||
output device. Reads return current status. | ||
|
||
What: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/port | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: (RO) Port number, corresponding to this output device on the | ||
switch (GTH). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,10 @@ KernelVersion: 4.2 | |
Contact: Tomas Winkler <[email protected]> | ||
Description: Stores mei client device uuid | ||
Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | ||
|
||
What: /sys/bus/mei/devices/.../version | ||
Date: Aug 2015 | ||
KernelVersion: 4.3 | ||
Contact: Tomas Winkler <[email protected]> | ||
Description: Stores mei client protocol version | ||
Format: %d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
What: /sys/class/fpga_manager/<fpga>/name | ||
Date: August 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alan Tull <[email protected]> | ||
Description: Name of low level fpga manager driver. | ||
|
||
What: /sys/class/fpga_manager/<fpga>/state | ||
Date: August 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alan Tull <[email protected]> | ||
Description: Read fpga manager state as a string. | ||
The intent is to provide enough detail that if something goes | ||
wrong during FPGA programming (something that the driver can't | ||
fix) then userspace can know, i.e. if the firmware request | ||
fails, that could be due to not being able to find the firmware | ||
file. | ||
|
||
This is a superset of FPGA states and fpga manager driver | ||
states. The fpga manager driver is walking through these steps | ||
to get the FPGA into a known operating state. It's a sequence, | ||
though some steps may get skipped. Valid FPGA states will vary | ||
by manufacturer; this is a superset. | ||
|
||
* unknown = can't determine state | ||
* power off = FPGA power is off | ||
* power up = FPGA reports power is up | ||
* reset = FPGA held in reset state | ||
* firmware request = firmware class request in progress | ||
* firmware request error = firmware request failed | ||
* write init = preparing FPGA for programming | ||
* write init error = Error while preparing FPGA for | ||
programming | ||
* write = FPGA ready to receive image data | ||
* write error = Error while programming | ||
* write complete = Doing post programming steps | ||
* write complete error = Error while doing post programming | ||
* operating = FPGA is programmed and operating |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,18 +41,15 @@ Description: | |
When read, this entry provides the current state of an Intel | ||
MIC device in the context of the card OS. Possible values that | ||
will be read are: | ||
"offline" - The MIC device is ready to boot the card OS. On | ||
"ready" - The MIC device is ready to boot the card OS. On | ||
reading this entry after an OSPM resume, a "boot" has to be | ||
written to this entry if the card was previously shutdown | ||
during OSPM suspend. | ||
"online" - The MIC device has initiated booting a card OS. | ||
"booting" - The MIC device has initiated booting a card OS. | ||
"online" - The MIC device has completed boot and is online | ||
"shutting_down" - The card OS is shutting down. | ||
"resetting" - A reset has been initiated for the MIC device | ||
"reset_failed" - The MIC device has failed to reset. | ||
"suspending" - The MIC device is currently being prepared for | ||
suspend. On reading this entry, a "suspend" has to be written | ||
to the state sysfs entry to ensure the card is shutdown during | ||
OSPM suspend. | ||
"suspended" - The MIC device has been suspended. | ||
|
||
When written, this sysfs entry triggers different state change | ||
operations depending upon the current state of the card OS. | ||
|
@@ -62,8 +59,6 @@ Description: | |
sysfs entries. | ||
"reset" - Initiates device reset. | ||
"shutdown" - Initiates card OS shutdown. | ||
"suspend" - Initiates card OS shutdown and also marks the card | ||
as suspended. | ||
|
||
What: /sys/class/mic/mic(x)/shutdown_status | ||
Date: October 2013 | ||
|
@@ -126,7 +121,7 @@ Description: | |
the card. This sysfs entry can be written with the following | ||
valid strings: | ||
a) linux - Boot a Linux image. | ||
b) elf - Boot an elf image for flash updates. | ||
b) flash - Boot an image for flash updates. | ||
|
||
What: /sys/class/mic/mic(x)/log_buf_addr | ||
Date: October 2013 | ||
|
@@ -155,3 +150,17 @@ Description: | |
daemon to set the log buffer length address. The correct log | ||
buffer length address to be written can be found in the | ||
System.map file of the card OS. | ||
|
||
What: /sys/class/mic/mic(x)/heartbeat_enable | ||
Date: March 2015 | ||
KernelVersion: 3.20 | ||
Contact: Ashutosh Dixit <[email protected]> | ||
Description: | ||
The MIC drivers detect and inform user space about card crashes | ||
via a heartbeat mechanism (see the description of | ||
shutdown_status above). User space can turn off this | ||
notification by setting heartbeat_enable to 0 and enable it by | ||
setting this entry to 1. If this notification is disabled it is | ||
the responsibility of user space to detect card crashes via | ||
alternative means such as a network ping. This setting is | ||
enabled by default. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
What: /sys/class/stm/<stm>/masters | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: | ||
Shows first and last available to software master numbers on | ||
this STM device. | ||
|
||
What: /sys/class/stm/<stm>/channels | ||
Date: June 2015 | ||
KernelVersion: 4.3 | ||
Contact: Alexander Shishkin <[email protected]> | ||
Description: | ||
Shows the number of channels per master on this STM device. |
Oops, something went wrong.