Commit 9c75b68b authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'driver-core-5.10-rc2' of...

Merge tag 'driver-core-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core

Pull driver core and documentation fixes from Greg KH:
 "Here is one tiny debugfs change to fix up an API where the last user
  was successfully fixed up in 5.10-rc1 (so it couldn't be merged
  earlier), and a much larger Documentation/ABI/ update to the files so
  they can be automatically parsed by our tools.

  The Documentation/ABI/ updates are just formatting issues, small ones
  to bring the files into parsable format, and have been acked by
  numerous subsystem maintainers and the documentation maintainer. I
  figured it was good to get this into 5.10-rc2 to help wih the merge
  issues that would arise if these were to stick in linux-next until
  5.11-rc1.

  The debugfs change has been in linux-next for a long time, and the
  Documentation updates only for the last linux-next release"

* tag 'driver-core-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (40 commits)
  scripts: get_abi.pl: assume ReST format by default
  docs: ABI: sysfs-class-led-trigger-pattern: remove hw_pattern duplication
  docs: ABI: sysfs-class-backlight: unify ABI documentation
  docs: ABI: sysfs-c2port: remove a duplicated entry
  docs: ABI: sysfs-class-power: unify duplicated properties
  docs: ABI: unify /sys/class/leds/<led>/brightness documentation
  docs: ABI: stable: remove a duplicated documentation
  docs: ABI: change read/write attributes
  docs: ABI: cleanup several ABI documents
  docs: ABI: sysfs-bus-nvdimm: use the right format for ABI
  docs: ABI: vdso: use the right format for ABI
  docs: ABI: fix syntax to be parsed using ReST notation
  docs: ABI: convert testing/configfs-acpi to ReST
  docs: Kconfig/Makefile: add a check for broken ABI files
  docs: abi-testing.rst: enable --rst-sources when building docs
  docs: ABI: don't escape ReST-incompatible chars from obsolete and removed
  docs: ABI: create a 2-depth index for ABI
  docs: ABI: make it parse ABI/stable as ReST-compatible files
  docs: ABI: sysfs-uevent: make it compatible with ReST output
  docs: ABI: testing: make the files compatible with ReST output
  ...
parents 2376cca0 2fcce37a
...@@ -32,7 +32,7 @@ The different levels of stability are: ...@@ -32,7 +32,7 @@ The different levels of stability are:
layout of the files below for details on how to do this.) layout of the files below for details on how to do this.)
obsolete/ obsolete/
This directory documents interfaces that are still remaining in This directory documents interfaces that are still remaining in
the kernel, but are marked to be removed at some later point in the kernel, but are marked to be removed at some later point in
time. The description of the interface will document the reason time. The description of the interface will document the reason
why it is obsolete and when it can be expected to be removed. why it is obsolete and when it can be expected to be removed.
...@@ -58,6 +58,14 @@ Users: All users of this interface who wish to be notified when ...@@ -58,6 +58,14 @@ Users: All users of this interface who wish to be notified when
be changed further. be changed further.
Note:
The fields should be use a simple notation, compatible with ReST markup.
Also, the file **should not** have a top-level index, like::
===
foo
===
How things move between levels: How things move between levels:
Interfaces in stable may move to obsolete, as long as the proper Interfaces in stable may move to obsolete, as long as the proper
......
...@@ -8,11 +8,11 @@ Description: Device DAX is the device-centric analogue of Filesystem ...@@ -8,11 +8,11 @@ Description: Device DAX is the device-centric analogue of Filesystem
system. Device DAX is strict, precise and predictable. system. Device DAX is strict, precise and predictable.
Specifically this interface: Specifically this interface:
1/ Guarantees fault granularity with respect to a given 1. Guarantees fault granularity with respect to a given
page size (pte, pmd, or pud) set at configuration time. page size (pte, pmd, or pud) set at configuration time.
2/ Enforces deterministic behavior by being strict about 2. Enforces deterministic behavior by being strict about
what fault scenarios are supported. what fault scenarios are supported.
The /sys/class/dax/ interface enumerates all the The /sys/class/dax/ interface enumerates all the
device-dax instances in the system. The ABI is device-dax instances in the system. The ABI is
......
...@@ -7,10 +7,13 @@ Description: It is possible to switch the cpi setting of the mouse with the ...@@ -7,10 +7,13 @@ Description: It is possible to switch the cpi setting of the mouse with the
setting reported by the mouse. This number has to be further setting reported by the mouse. This number has to be further
processed to receive the real dpi value: processed to receive the real dpi value:
===== ====
VALUE DPI VALUE DPI
===== ====
1 400 1 400
2 800 2 800
4 1600 4 1600
===== ====
This file is readonly. This file is readonly.
Has never been used. If bookkeeping is done, it's done in userland tools. Has never been used. If bookkeeping is done, it's done in userland tools.
......
...@@ -13,6 +13,8 @@ Description: ...@@ -13,6 +13,8 @@ Description:
GPIOs are identified as they are inside the kernel, using integers in GPIOs are identified as they are inside the kernel, using integers in
the range 0..INT_MAX. See Documentation/admin-guide/gpio for more information. the range 0..INT_MAX. See Documentation/admin-guide/gpio for more information.
::
/sys/class/gpio /sys/class/gpio
/export ... asks the kernel to export a GPIO to userspace /export ... asks the kernel to export a GPIO to userspace
/unexport ... to return a GPIO to the kernel /unexport ... to return a GPIO to the kernel
......
...@@ -5,6 +5,7 @@ Description: ...@@ -5,6 +5,7 @@ Description:
devfs has been unmaintained for a number of years, has unfixable devfs has been unmaintained for a number of years, has unfixable
races, contains a naming policy within the kernel that is races, contains a naming policy within the kernel that is
against the LSB, and can be replaced by using udev. against the LSB, and can be replaced by using udev.
The files fs/devfs/*, include/linux/devfs_fs*.h were removed, The files fs/devfs/*, include/linux/devfs_fs*.h were removed,
along with the assorted devfs function calls throughout the along with the assorted devfs function calls throughout the
kernel tree. kernel tree.
......
...@@ -7,6 +7,7 @@ Description: ...@@ -7,6 +7,7 @@ Description:
to implement sensible device security policies, and its low level to implement sensible device security policies, and its low level
of abstraction that required userspace clients to duplicate much of abstraction that required userspace clients to duplicate much
of the kernel's ieee1394 core functionality. of the kernel's ieee1394 core functionality.
Replaced by /dev/fw*, i.e. the <linux/firewire-cdev.h> ABI of Replaced by /dev/fw*, i.e. the <linux/firewire-cdev.h> ABI of
firewire-core. firewire-core.
......
...@@ -10,4 +10,4 @@ Description: This file was deprecated because there no longer was a way to ...@@ -10,4 +10,4 @@ Description: This file was deprecated because there no longer was a way to
claim just control over a single rfkill instance. claim just control over a single rfkill instance.
This file was scheduled to be removed in 2012, and was removed This file was scheduled to be removed in 2012, and was removed
in 2016. in 2016.
Values: 0: Kernel handles events Values: 0: Kernel handles events
...@@ -8,6 +8,7 @@ Description: ...@@ -8,6 +8,7 @@ Description:
performance issues in its first generation. Any video1394 user had performance issues in its first generation. Any video1394 user had
to use raw1394 + libraw1394 too because video1394 did not provide to use raw1394 + libraw1394 too because video1394 did not provide
asynchronous I/O for device discovery and configuration. asynchronous I/O for device discovery and configuration.
Replaced by /dev/fw*, i.e. the <linux/firewire-cdev.h> ABI of Replaced by /dev/fw*, i.e. the <linux/firewire-cdev.h> ABI of
firewire-core. firewire-core.
......
...@@ -14,13 +14,17 @@ Description: ...@@ -14,13 +14,17 @@ Description:
Each /dev/fw* is associated with one IEEE 1394 node, which can Each /dev/fw* is associated with one IEEE 1394 node, which can
be remote or local nodes. Operations on a /dev/fw* file have be remote or local nodes. Operations on a /dev/fw* file have
different scope: different scope:
- The 1394 node which is associated with the file: - The 1394 node which is associated with the file:
- Asynchronous request transmission - Asynchronous request transmission
- Get the Configuration ROM - Get the Configuration ROM
- Query node ID - Query node ID
- Query maximum speed of the path between this node - Query maximum speed of the path between this node
and local node and local node
- The 1394 bus (i.e. "card") to which the node is attached to: - The 1394 bus (i.e. "card") to which the node is attached to:
- Isochronous stream transmission and reception - Isochronous stream transmission and reception
- Asynchronous stream transmission and reception - Asynchronous stream transmission and reception
- Asynchronous broadcast request transmission - Asynchronous broadcast request transmission
...@@ -31,7 +35,9 @@ Description: ...@@ -31,7 +35,9 @@ Description:
manager manager
- Query cycle time - Query cycle time
- Bus reset initiation, bus reset event reception - Bus reset initiation, bus reset event reception
- All 1394 buses: - All 1394 buses:
- Allocation of IEEE 1212 address ranges on the local - Allocation of IEEE 1212 address ranges on the local
link layers, reception of inbound requests to such link layers, reception of inbound requests to such
an address range, asynchronous response transmission an address range, asynchronous response transmission
...@@ -43,6 +49,7 @@ Description: ...@@ -43,6 +49,7 @@ Description:
userland implement different access permission models, some userland implement different access permission models, some
operations are restricted to /dev/fw* files that are associated operations are restricted to /dev/fw* files that are associated
with a local node: with a local node:
- Addition of descriptors or directories to the local - Addition of descriptors or directories to the local
nodes' Configuration ROM nodes' Configuration ROM
- PHY packet transmission and reception - PHY packet transmission and reception
...@@ -55,50 +62,50 @@ Description: ...@@ -55,50 +62,50 @@ Description:
The following file operations are supported: The following file operations are supported:
open(2) open(2)
Currently the only useful flags are O_RDWR. Currently the only useful flags are O_RDWR.
ioctl(2) ioctl(2)
Initiate various actions. Some take immediate effect, others Initiate various actions. Some take immediate effect, others
are performed asynchronously while or after the ioctl returns. are performed asynchronously while or after the ioctl returns.
See the inline documentation in <linux/firewire-cdev.h> for See the inline documentation in <linux/firewire-cdev.h> for
descriptions of all ioctls. descriptions of all ioctls.
poll(2), select(2), epoll_wait(2) etc. poll(2), select(2), epoll_wait(2) etc.
Watch for events to become available to be read. Watch for events to become available to be read.
read(2) read(2)
Receive various events. There are solicited events like Receive various events. There are solicited events like
outbound asynchronous transaction completion or isochronous outbound asynchronous transaction completion or isochronous
buffer completion, and unsolicited events such as bus resets, buffer completion, and unsolicited events such as bus resets,
request reception, or PHY packet reception. Always use a read request reception, or PHY packet reception. Always use a read
buffer which is large enough to receive the largest event that buffer which is large enough to receive the largest event that
could ever arrive. See <linux/firewire-cdev.h> for descriptions could ever arrive. See <linux/firewire-cdev.h> for descriptions
of all event types and for which ioctls affect reception of of all event types and for which ioctls affect reception of
events. events.
mmap(2) mmap(2)
Allocate a DMA buffer for isochronous reception or transmission Allocate a DMA buffer for isochronous reception or transmission
and map it into the process address space. The arguments should and map it into the process address space. The arguments should
be used as follows: addr = NULL, length = the desired buffer be used as follows: addr = NULL, length = the desired buffer
size, i.e. number of packets times size of largest packet, size, i.e. number of packets times size of largest packet,
prot = at least PROT_READ for reception and at least PROT_WRITE prot = at least PROT_READ for reception and at least PROT_WRITE
for transmission, flags = MAP_SHARED, fd = the handle to the for transmission, flags = MAP_SHARED, fd = the handle to the
/dev/fw*, offset = 0. /dev/fw*, offset = 0.
Isochronous reception works in packet-per-buffer fashion except Isochronous reception works in packet-per-buffer fashion except
for multichannel reception which works in buffer-fill mode. for multichannel reception which works in buffer-fill mode.
munmap(2) munmap(2)
Unmap the isochronous I/O buffer from the process address space. Unmap the isochronous I/O buffer from the process address space.
close(2) close(2)
Besides stopping and freeing I/O contexts that were associated Besides stopping and freeing I/O contexts that were associated
with the file descriptor, back out any changes to the local with the file descriptor, back out any changes to the local
nodes' Configuration ROM. Deallocate isochronous channels and nodes' Configuration ROM. Deallocate isochronous channels and
bandwidth at the IRM that were marked for kernel-assisted bandwidth at the IRM that were marked for kernel-assisted
re- and deallocation. re- and deallocation.
Users: libraw1394 Users: libraw1394;
libdc1394 libdc1394;
libhinawa libhinawa;
tools like linux-firewire-utils, fwhack, ... tools like linux-firewire-utils, fwhack, ...
What: /sys/firmware/acpi/pm_profile What: /sys/firmware/acpi/pm_profile
Date: 03-Nov-2011 Date: 03-Nov-2011
KernelVersion: v3.2 KernelVersion: v3.2
Contact: linux-acpi@vger.kernel.org Contact: linux-acpi@vger.kernel.org
Description: The ACPI pm_profile sysfs interface exports the platform Description: The ACPI pm_profile sysfs interface exports the platform
power management (and performance) requirement expectations power management (and performance) requirement expectations
as provided by BIOS. The integer value is directly passed as as provided by BIOS. The integer value is directly passed as
retrieved from the FADT ACPI table. retrieved from the FADT ACPI table.
Values: For possible values see ACPI specification:
Values: For possible values see ACPI specification:
5.2.9 Fixed ACPI Description Table (FADT) 5.2.9 Fixed ACPI Description Table (FADT)
Field: Preferred_PM_Profile Field: Preferred_PM_Profile
Currently these values are defined by spec: Currently these values are defined by spec:
0 Unspecified
1 Desktop == =================
2 Mobile 0 Unspecified
3 Workstation 1 Desktop
4 Enterprise Server 2 Mobile
5 SOHO Server 3 Workstation
6 Appliance PC 4 Enterprise Server
7 Performance Server 5 SOHO Server
6 Appliance PC
7 Performance Server
>7 Reserved >7 Reserved
== =================
...@@ -47,6 +47,7 @@ Description: ...@@ -47,6 +47,7 @@ Description:
IEEE 1394 node device attribute. IEEE 1394 node device attribute.
Read-only and immutable. Read-only and immutable.
Values: 1: The sysfs entry represents a local node (a controller card). Values: 1: The sysfs entry represents a local node (a controller card).
0: The sysfs entry represents a remote node. 0: The sysfs entry represents a remote node.
...@@ -125,7 +126,9 @@ Description: ...@@ -125,7 +126,9 @@ Description:
Read-only attribute, immutable during the target's lifetime. Read-only attribute, immutable during the target's lifetime.
Format, as exposed by firewire-sbp2 since 2.6.22, May 2007: Format, as exposed by firewire-sbp2 since 2.6.22, May 2007:
Colon-separated hexadecimal string representations of Colon-separated hexadecimal string representations of
u64 EUI-64 : u24 directory_ID : u16 LUN u64 EUI-64 : u24 directory_ID : u16 LUN
without 0x prefixes, without whitespace. The former sbp2 driver without 0x prefixes, without whitespace. The former sbp2 driver
(removed in 2.6.37 after being superseded by firewire-sbp2) used (removed in 2.6.37 after being superseded by firewire-sbp2) used
a somewhat shorter format which was not as close to SAM. a somewhat shorter format which was not as close to SAM.
......
...@@ -9,13 +9,14 @@ Description: ...@@ -9,13 +9,14 @@ Description:
Note: This file is only present if CONFIG_NVMEM_SYSFS Note: This file is only present if CONFIG_NVMEM_SYSFS
is enabled is enabled
ex: ex::
hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
0000000 0000 0000 0000 0000 0000 0000 0000 0000 hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
*
00000a0 db10 2240 0000 e000 0c00 0c00 0000 0c00 0000000 0000 0000 0000 0000 0000 0000 0000 0000
0000000 0000 0000 0000 0000 0000 0000 0000 0000 *
... 00000a0 db10 2240 0000 e000 0c00 0c00 0000 0c00
* 0000000 0000 0000 0000 0000 0000 0000 0000 0000
0001000 ...
*
0001000
...@@ -50,8 +50,10 @@ Description: ...@@ -50,8 +50,10 @@ Description:
Tools can use this file and the connected_duration file to Tools can use this file and the connected_duration file to
compute the percentage of time that a device has been active. compute the percentage of time that a device has been active.
For example, For example::
echo $((100 * `cat active_duration` / `cat connected_duration`))
echo $((100 * `cat active_duration` / `cat connected_duration`))
will give an integer percentage. Note that this does not will give an integer percentage. Note that this does not
account for counter wrap. account for counter wrap.
Users: Users:
......
...@@ -63,13 +63,6 @@ Contact: Stephen Hemminger <sthemmin@microsoft.com> ...@@ -63,13 +63,6 @@ Contact: Stephen Hemminger <sthemmin@microsoft.com>
Description: VCPU (sub)channel is affinitized to Description: VCPU (sub)channel is affinitized to
Users: tools/hv/lsvmbus and other debugging tools Users: tools/hv/lsvmbus and other debugging tools
What: /sys/bus/vmbus/devices/<UUID>/channels/<N>/cpu
Date: September. 2017
KernelVersion: 4.14
Contact: Stephen Hemminger <sthemmin@microsoft.com>
Description: VCPU (sub)channel is affinitized to
Users: tools/hv/lsvmbus and other debugging tools
What: /sys/bus/vmbus/devices/<UUID>/channels/<N>/in_mask What: /sys/bus/vmbus/devices/<UUID>/channels/<N>/in_mask
Date: September. 2017 Date: September. 2017
KernelVersion: 4.14 KernelVersion: 4.14
......
...@@ -6,6 +6,7 @@ Description: Bus scanning interval, microseconds component. ...@@ -6,6 +6,7 @@ Description: Bus scanning interval, microseconds component.
control systems are attached/generate presence for as short as control systems are attached/generate presence for as short as
100 ms - hence the tens-to-hundreds milliseconds scan intervals 100 ms - hence the tens-to-hundreds milliseconds scan intervals
are required. are required.
see Documentation/w1/w1-generic.rst for detailed information. see Documentation/w1/w1-generic.rst for detailed information.
Users: any user space application which wants to know bus scanning Users: any user space application which wants to know bus scanning
interval interval
...@@ -4,6 +4,7 @@ KernelVersion: 2.6.12 ...@@ -4,6 +4,7 @@ KernelVersion: 2.6.12
Contact: Richard Purdie <rpurdie@rpsys.net> Contact: Richard Purdie <rpurdie@rpsys.net>
Description: Description:
Control BACKLIGHT power, values are FB_BLANK_* from fb.h Control BACKLIGHT power, values are FB_BLANK_* from fb.h
- FB_BLANK_UNBLANK (0) : power on. - FB_BLANK_UNBLANK (0) : power on.
- FB_BLANK_POWERDOWN (4) : power off - FB_BLANK_POWERDOWN (4) : power off
Users: HAL Users: HAL
......
...@@ -2,7 +2,7 @@ rfkill - radio frequency (RF) connector kill switch support ...@@ -2,7 +2,7 @@ rfkill - radio frequency (RF) connector kill switch support
For details to this subsystem look at Documentation/driver-api/rfkill.rst. For details to this subsystem look at Documentation/driver-api/rfkill.rst.
For the deprecated /sys/class/rfkill/*/claim knobs of this interface look in For the deprecated ``/sys/class/rfkill/*/claim`` knobs of this interface look in
Documentation/ABI/removed/sysfs-class-rfkill. Documentation/ABI/removed/sysfs-class-rfkill.
What: /sys/class/rfkill What: /sys/class/rfkill
...@@ -36,9 +36,10 @@ KernelVersion v2.6.22 ...@@ -36,9 +36,10 @@ KernelVersion v2.6.22
Contact: linux-wireless@vger.kernel.org Contact: linux-wireless@vger.kernel.org
Description: Whether the soft blocked state is initialised from non-volatile Description: Whether the soft blocked state is initialised from non-volatile
storage at startup. storage at startup.
Values: A numeric value. Values: A numeric value:
0: false
1: true - 0: false
- 1: true
What: /sys/class/rfkill/rfkill[0-9]+/state What: /sys/class/rfkill/rfkill[0-9]+/state
...@@ -54,6 +55,7 @@ Description: Current state of the transmitter. ...@@ -54,6 +55,7 @@ Description: Current state of the transmitter.
through this interface. There will likely be another attempt to through this interface. There will likely be another attempt to
remove it in the future. remove it in the future.
Values: A numeric value. Values: A numeric value.
0: RFKILL_STATE_SOFT_BLOCKED 0: RFKILL_STATE_SOFT_BLOCKED
transmitter is turned off by software transmitter is turned off by software
1: RFKILL_STATE_UNBLOCKED 1: RFKILL_STATE_UNBLOCKED
...@@ -69,6 +71,7 @@ KernelVersion v2.6.34 ...@@ -69,6 +71,7 @@ KernelVersion v2.6.34
Contact: linux-wireless@vger.kernel.org Contact: linux-wireless@vger.kernel.org
Description: Current hardblock state. This file is read only. Description: Current hardblock state. This file is read only.
Values: A numeric value. Values: A numeric value.
0: inactive 0: inactive
The transmitter is (potentially) active. The transmitter is (potentially) active.
1: active 1: active
...@@ -82,7 +85,9 @@ KernelVersion v2.6.34 ...@@ -82,7 +85,9 @@ KernelVersion v2.6.34
Contact: linux-wireless@vger.kernel.org Contact: linux-wireless@vger.kernel.org
Description: Current softblock state. This file is read and write. Description: Current softblock state. This file is read and write.
Values: A numeric value. Values: A numeric value.
0: inactive 0: inactive
The transmitter is (potentially) active. The transmitter is (potentially) active.
1: active 1: active
The transmitter is turned off by software. The transmitter is turned off by software.
...@@ -32,11 +32,11 @@ KernelVersion: 2.6.12 ...@@ -32,11 +32,11 @@ KernelVersion: 2.6.12
Contact: linux-integrity@vger.kernel.org Contact: linux-integrity@vger.kernel.org
Description: The "caps" property contains TPM manufacturer and version info. Description: The "caps" property contains TPM manufacturer and version info.
Example output: Example output::
Manufacturer: 0x53544d20 Manufacturer: 0x53544d20
TCG version: 1.2 TCG version: 1.2
Firmware version: 8.16 Firmware version: 8.16
Manufacturer is a hex dump of the 4 byte manufacturer info Manufacturer is a hex dump of the 4 byte manufacturer info
space in a TPM. TCG version shows the TCG TPM spec level that space in a TPM. TCG version shows the TCG TPM spec level that
...@@ -54,9 +54,9 @@ Description: The "durations" property shows the 3 vendor-specific values ...@@ -54,9 +54,9 @@ Description: The "durations" property shows the 3 vendor-specific values
any longer than necessary before starting to poll for a any longer than necessary before starting to poll for a
result. result.
Example output: Example output::
3015000 4508000 180995000 [original] 3015000 4508000 180995000 [original]
Here the short, medium and long durations are displayed in Here the short, medium and long durations are displayed in
usecs. "[original]" indicates that the values are displayed usecs. "[original]" indicates that the values are displayed
...@@ -92,14 +92,14 @@ Description: The "pcrs" property will dump the current value of all Platform ...@@ -92,14 +92,14 @@ Description: The "pcrs" property will dump the current value of all Platform
values may be constantly changing, the output is only valid values may be constantly changing, the output is only valid
for a snapshot in time. for a snapshot in time.
Example output: Example output::
PCR-00: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75 PCR-00: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75
PCR-01: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75 PCR-01: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75
PCR-02: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75 PCR-02: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75
PCR-03: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75 PCR-03: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75
PCR-04: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75 PCR-04: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75
... ...
The number of PCRs and hex bytes needed to represent a PCR The number of PCRs and hex bytes needed to represent a PCR
value will vary depending on TPM chip version. For TPM 1.1 and value will vary depending on TPM chip version. For TPM 1.1 and
...@@ -119,44 +119,44 @@ Description: The "pubek" property will return the TPM's public endorsement ...@@ -119,44 +119,44 @@ Description: The "pubek" property will return the TPM's public endorsement
ated at TPM manufacture time and exists for the life of the ated at TPM manufacture time and exists for the life of the
chip. chip.
Example output: Example output::
Algorithm: 00 00 00 01 Algorithm: 00 00 00 01
Encscheme: 00 03 Encscheme: 00 03
Sigscheme: 00 01 Sigscheme: 00 01
Parameters: 00 00 08 00 00 00 00 02 00 00 00 00 Parameters: 00 00 08 00 00 00 00 02 00 00 00 00
Modulus length: 256 Modulus length: 256
Modulus: Modulus:
B4 76 41 82 C9 20 2C 10 18 40 BC 8B E5 44 4C 6C B4 76 41 82 C9 20 2C 10 18 40 BC 8B E5 44 4C 6C
3A B2 92 0C A4 9B 2A 83 EB 5C 12 85 04 48 A0 B6 3A B2 92 0C A4 9B 2A 83 EB 5C 12 85 04 48 A0 B6
1E E4 81 84 CE B2 F2 45 1C F0 85 99 61 02 4D EB 1E E4 81 84 CE B2 F2 45 1C F0 85 99 61 02 4D EB
86 C4 F7 F3 29 60 52 93 6B B2 E5 AB 8B A9 09 E3 86 C4 F7 F3 29 60 52 93 6B B2 E5 AB 8B A9 09 E3
D7 0E 7D CA 41 BF 43 07 65 86 3C 8C 13 7A D0 8B D7 0E 7D CA 41 BF 43 07 65 86 3C 8C 13 7A D0 8B
82 5E 96 0B F8 1F 5F 34 06 DA A2 52 C1 A9 D5 26 82 5E 96 0B F8 1F 5F 34 06 DA A2 52 C1 A9 D5 26
0F F4 04 4B D9 3F 2D F2 AC 2F 74 64 1F 8B CD 3E 0F F4 04 4B D9 3F 2D F2 AC 2F 74 64 1F 8B CD 3E
1E 30 38 6C 70 63 69 AB E2 50 DF 49 05 2E E1 8D 1E 30 38 6C 70 63 69 AB E2 50 DF 49 05 2E E1 8D
6F 78 44 DA 57 43 69 EE 76 6C 38 8A E9 8E A3 F0 6F 78 44 DA 57 43 69 EE 76 6C 38 8A E9 8E A3 F0
A7 1F 3C A8 D0 12 15 3E CA 0E BD FA 24 CD 33 C6 A7 1F 3C A8 D0 12 15 3E CA 0E BD FA 24 CD 33 C6
47 AE A4 18 83 8E 22 39 75 93 86 E6 FD 66 48 B6 47 AE A4 18 83 8E 22 39 75 93 86 E6 FD 66 48 B6
10 AD 94 14 65 F9 6A 17 78 BD 16 53 84 30 BF 70 10 AD 94 14 65 F9 6A 17 78 BD 16 53 84 30 BF 70
E0 DC 65 FD 3C C6 B0 1E BF B9 C1 B5 6C EF B1 3A E0 DC 65 FD 3C C6 B0 1E BF B9 C1 B5 6C EF B1 3A
F8 28 05 83 62 26 11 DC B4 6B 5A 97 FF 32 26 B6 F8 28 05 83 62 26 11 DC B4 6B 5A 97 FF 32 26 B6
F7 02 71 CF 15 AE 16 DD D1 C1 8E A8 CF 9B 50 7B F7 02 71 CF 15 AE 16 DD D1 C1 8E A8 CF 9B 50 7B
C3 91 FF 44 1E CF 7C 39 FE 17 77 21 20 BD CE 9B C3 91 FF 44 1E CF 7C 39 FE 17 77 21 20 BD CE 9B
Possible values: Possible values::
Algorithm: TPM_ALG_RSA (1) Algorithm: TPM_ALG_RSA (1)
Encscheme: TPM_ES_RSAESPKCSv15 (2) Encscheme: TPM_ES_RSAESPKCSv15 (2)
TPM_ES_RSAESOAEP_SHA1_MGF1 (3) TPM_ES_RSAESOAEP_SHA1_MGF1 (3)
Sigscheme: TPM_SS_NONE (1) Sigscheme: TPM_SS_NONE (1)
Parameters, a byte string of 3 u32 values: Parameters, a byte string of 3 u32 values:
Key Length (bits): 00 00 08 00 (2048) Key Length (bits): 00 00 08 00 (2048)
Num primes: 00 00 00 02 (2) Num primes: 00 00 00 02 (2)
Exponent Size: 00 00 00 00 (0 means the Exponent Size: 00 00 00 00 (0 means the
default exp) default exp)
Modulus Length: 256 (bytes) Modulus Length: 256 (bytes)
Modulus: The 256 byte Endorsement Key modulus Modulus: The 256 byte Endorsement Key modulus
What: /sys/class/tpm/tpmX/device/temp_deactivated What: /sys/class/tpm/tpmX/device/temp_deactivated
Date: April 2006 Date: April 2006
...@@ -176,9 +176,9 @@ Description: The "timeouts" property shows the 4 vendor-specific values ...@@ -176,9 +176,9 @@ Description: The "timeouts" property shows the 4 vendor-specific values
timeouts is defined by the TPM interface spec that the chip timeouts is defined by the TPM interface spec that the chip
conforms to. conforms to.
Example output: Example output::
750000 750000 750000 750000 [original] 750000 750000 750000 750000 [original]
The four timeout values are shown in usecs, with a trailing The four timeout values are shown in usecs, with a trailing
"[original]" or "[adjusted]" depending on whether the values "[original]" or "[adjusted]" depending on whether the values
...@@ -191,6 +191,6 @@ Contact: linux-integrity@vger.kernel.org ...@@ -191,6 +191,6 @@ Contact: linux-integrity@vger.kernel.org
Description: The "tpm_version_major" property shows the TCG spec major version Description: The "tpm_version_major" property shows the TCG spec major version
implemented by the TPM device. implemented by the TPM device.
Example output: Example output::
2 2
# Note: This documents additional properties of any device beyond what Note:
# is documented in Documentation/admin-guide/sysfs-rules.rst This documents additional properties of any device beyond what
is documented in Documentation/admin-guide/sysfs-rules.rst
What: /sys/devices/*/of_node What: /sys/devices/*/of_node
Date: February 2015 Date: February 2015
......
...@@ -12,13 +12,15 @@ Description: ...@@ -12,13 +12,15 @@ Description:
resets. Three registers are used by the FSBL and resets. Three registers are used by the FSBL and
other Xilinx software products: GLOBAL_GEN_STORAGE{4:6}. other Xilinx software products: GLOBAL_GEN_STORAGE{4:6}.
Usage: Usage::
# cat /sys/devices/platform/firmware\:zynqmp-firmware/ggs0
# echo <value> > /sys/devices/platform/firmware\:zynqmp-firmware/ggs0 # cat /sys/devices/platform/firmware\:zynqmp-firmware/ggs0
# echo <value> > /sys/devices/platform/firmware\:zynqmp-firmware/ggs0
Example::
Example: # cat /sys/devices/platform/firmware\:zynqmp-firmware/ggs0
# cat /sys/devices/platform/firmware\:zynqmp-firmware/ggs0 # echo 0x1234ABCD > /sys/devices/platform/firmware\:zynqmp-firmware/ggs0
# echo 0x1234ABCD > /sys/devices/platform/firmware\:zynqmp-firmware/ggs0
Users: Xilinx Users: Xilinx
...@@ -39,13 +41,15 @@ Description: ...@@ -39,13 +41,15 @@ Description:
software products: PERS_GLOB_GEN_STORAGE{4:7}. software products: PERS_GLOB_GEN_STORAGE{4:7}.
Register is reset only by a POR reset. Register is reset only by a POR reset.
Usage: Usage::
# cat /sys/devices/platform/firmware\:zynqmp-firmware/pggs0
# echo <value> > /sys/devices/platform/firmware\:zynqmp-firmware/pggs0 # cat /sys/devices/platform/firmware\:zynqmp-firmware/pggs0
# echo <value> > /sys/devices/platform/firmware\:zynqmp-firmware/pggs0
Example::
Example: # cat /sys/devices/platform/firmware\:zynqmp-firmware/pggs0
# cat /sys/devices/platform/firmware\:zynqmp-firmware/pggs0 # echo 0x1234ABCD > /sys/devices/platform/firmware\:zynqmp-firmware/pggs0
# echo 0x1234ABCD > /sys/devices/platform/firmware\:zynqmp-firmware/pggs0
Users: Xilinx Users: Xilinx
...@@ -61,23 +65,28 @@ Description: ...@@ -61,23 +65,28 @@ Description:
Following are available shutdown scopes(subtypes): Following are available shutdown scopes(subtypes):
subsystem: Only the APU along with all of its peripherals subsystem:
Only the APU along with all of its peripherals
not used by other processing units will be not used by other processing units will be
shut down. This may result in the FPD power shut down. This may result in the FPD power
domain being shut down provided that no other domain being shut down provided that no other
processing unit uses FPD peripherals or DRAM. processing unit uses FPD peripherals or DRAM.
ps_only: The complete PS will be shut down, including the ps_only:
The complete PS will be shut down, including the
RPU, PMU, etc. Only the PL domain (FPGA) RPU, PMU, etc. Only the PL domain (FPGA)
remains untouched. remains untouched.
system: The complete system/device is shut down. system:
The complete system/device is shut down.
Usage: Usage::
# cat /sys/devices/platform/firmware\:zynqmp-firmware/shutdown_scope
# echo <scope> > /sys/devices/platform/firmware\:zynqmp-firmware/shutdown_scope # cat /sys/devices/platform/firmware\:zynqmp-firmware/shutdown_scope
# echo <scope> > /sys/devices/platform/firmware\:zynqmp-firmware/shutdown_scope
Example::
Example: # cat /sys/devices/platform/firmware\:zynqmp-firmware/shutdown_scope
# cat /sys/devices/platform/firmware\:zynqmp-firmware/shutdown_scope # echo "subsystem" > /sys/devices/platform/firmware\:zynqmp-firmware/shutdown_scope
# echo "subsystem" > /sys/devices/platform/firmware\:zynqmp-firmware/shutdown_scope
Users: Xilinx Users: Xilinx
...@@ -94,10 +103,13 @@ Description: ...@@ -94,10 +103,13 @@ Description:
system restart. system restart.
Usage: Usage:
Set healthy bit
# echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/health_status
Unset healthy bit Set healthy bit::
# echo 0 > /sys/devices/platform/firmware\:zynqmp-firmware/health_status
# echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/health_status
Unset healthy bit::
# echo 0 > /sys/devices/platform/firmware\:zynqmp-firmware/health_status
Users: Xilinx Users: Xilinx
...@@ -6,6 +6,7 @@ Description: Interface for making ib_srp connect to a new target. ...@@ -6,6 +6,7 @@ Description: Interface for making ib_srp connect to a new target.
One can request ib_srp to connect to a new target by writing One can request ib_srp to connect to a new target by writing
a comma-separated list of login parameters to this sysfs a comma-separated list of login parameters to this sysfs
attribute. The supported parameters are: attribute. The supported parameters are:
* id_ext, a 16-digit hexadecimal number specifying the eight * id_ext, a 16-digit hexadecimal number specifying the eight
byte identifier extension in the 16-byte SRP target port byte identifier extension in the 16-byte SRP target port
identifier. The target port identifier is sent by ib_srp identifier. The target port identifier is sent by ib_srp
......
...@@ -69,6 +69,7 @@ Description: Controls if typing interrupts output from speakup. With ...@@ -69,6 +69,7 @@ Description: Controls if typing interrupts output from speakup. With
speakup if for example speakup if for example
the say screen command is used before the the say screen command is used before the
entire screen is read. entire screen is read.
With no_interrupt set to one, if the say With no_interrupt set to one, if the say
screen command is used, and one then types on the keyboard, screen command is used, and one then types on the keyboard,
speakup will continue to say the whole screen regardless until speakup will continue to say the whole screen regardless until
...@@ -215,8 +216,10 @@ Description: This file contains names for key states. ...@@ -215,8 +216,10 @@ Description: This file contains names for key states.
Again, these are part of the help system. For instance, if you Again, these are part of the help system. For instance, if you
had pressed speakup + keypad 3, you would hear: had pressed speakup + keypad 3, you would hear:
"speakup keypad 3 is go to bottom edge." "speakup keypad 3 is go to bottom edge."
The speakup key is depressed, so the name of the key state is The speakup key is depressed, so the name of the key state is
speakup. speakup.
This part of the message comes from the states collection. This part of the message comes from the states collection.
What: /sys/accessibility/speakup/i18n/characters What: /sys/accessibility/speakup/i18n/characters
...@@ -297,6 +300,7 @@ KernelVersion: 2.6 ...@@ -297,6 +300,7 @@ KernelVersion: 2.6
Contact: speakup@linux-speakup.org Contact: speakup@linux-speakup.org
Description: Controls if punctuation is spoken by speakup, or by the Description: Controls if punctuation is spoken by speakup, or by the
synthesizer. synthesizer.
For example, speakup speaks ">" as "greater", while For example, speakup speaks ">" as "greater", while
the espeak synthesizer used by the soft driver speaks "greater the espeak synthesizer used by the soft driver speaks "greater
than". Zero lets speakup speak the punctuation. One lets the than". Zero lets speakup speak the punctuation. One lets the
......
...@@ -17,6 +17,7 @@ Description: ...@@ -17,6 +17,7 @@ Description:
directory has a name of the form "<key>-<vendor guid>" directory has a name of the form "<key>-<vendor guid>"
and contains the following files: and contains the following files:
=============== ========================================
attributes: A read-only text file enumerating the attributes: A read-only text file enumerating the
EFI variable flags. Potential values EFI variable flags. Potential values
include: include:
...@@ -59,12 +60,14 @@ Description: ...@@ -59,12 +60,14 @@ Description:
size: As ASCII representation of the size of size: As ASCII representation of the size of
the variable's value. the variable's value.
=============== ========================================
In addition, two other magic binary files are provided In addition, two other magic binary files are provided
in the top-level directory and are used for adding and in the top-level directory and are used for adding and
removing variables: removing variables:
=============== ========================================
new_var: Takes a "struct efi_variable" and new_var: Takes a "struct efi_variable" and
instructs the EFI firmware to create a instructs the EFI firmware to create a
new variable. new variable.
...@@ -73,3 +76,4 @@ Description: ...@@ -73,3 +76,4 @@ Description:
instructs the EFI firmware to remove any instructs the EFI firmware to remove any
variable that has a matching vendor GUID variable that has a matching vendor GUID
and variable key name. and variable key name.
=============== ========================================
...@@ -7,6 +7,7 @@ Description: ...@@ -7,6 +7,7 @@ Description:
This is only for the powerpc/powernv platform. This is only for the powerpc/powernv platform.
=============== ===============================================
initiate_dump: When '1' is written to it, initiate_dump: When '1' is written to it,
we will initiate a dump. we will initiate a dump.
Read this file for supported commands. Read this file for supported commands.
...@@ -19,8 +20,11 @@ Description: ...@@ -19,8 +20,11 @@ Description:
and ID of the dump, use the id and type files. and ID of the dump, use the id and type files.
Do not rely on any particular size of dump Do not rely on any particular size of dump
type or dump id. type or dump id.
=============== ===============================================
Each dump has the following files: Each dump has the following files:
=============== ===============================================
id: An ASCII representation of the dump ID id: An ASCII representation of the dump ID
in hex (e.g. '0x01') in hex (e.g. '0x01')
type: An ASCII representation of the type of type: An ASCII representation of the type of
...@@ -39,3 +43,4 @@ Description: ...@@ -39,3 +43,4 @@ Description:
inaccessible. inaccessible.
Reading this file will get a list of Reading this file will get a list of
supported actions. supported actions.
=============== ===============================================
...@@ -38,6 +38,7 @@ Description: ...@@ -38,6 +38,7 @@ Description:
For each log entry (directory), there are the following For each log entry (directory), there are the following
files: files:
============== ================================================
id: An ASCII representation of the ID of the id: An ASCII representation of the ID of the
error log, in hex - e.g. "0x01". error log, in hex - e.g. "0x01".
...@@ -58,3 +59,4 @@ Description: ...@@ -58,3 +59,4 @@ Description:
entry will be removed from sysfs. entry will be removed from sysfs.
Reading this file will list the supported Reading this file will list the supported
operations (currently just acknowledge). operations (currently just acknowledge).
============== ================================================
...@@ -33,6 +33,8 @@ Description: If running under Xen: ...@@ -33,6 +33,8 @@ Description: If running under Xen:
Space separated list of supported guest system types. Each type Space separated list of supported guest system types. Each type
is in the format: <class>-<major>.<minor>-<arch> is in the format: <class>-<major>.<minor>-<arch>
With: With:
======== ============================================
<class>: "xen" -- x86: paravirtualized, arm: standard <class>: "xen" -- x86: paravirtualized, arm: standard
"hvm" -- x86 only: fully virtualized "hvm" -- x86 only: fully virtualized
<major>: major guest interface version <major>: major guest interface version
...@@ -43,6 +45,7 @@ Description: If running under Xen: ...@@ -43,6 +45,7 @@ Description: If running under Xen:
"x86_64": 64 bit x86 guest "x86_64": 64 bit x86 guest
"armv7l": 32 bit arm guest "armv7l": 32 bit arm guest
"aarch64": 64 bit arm guest "aarch64": 64 bit arm guest
======== ============================================
What: /sys/hypervisor/properties/changeset What: /sys/hypervisor/properties/changeset
Date: March 2009 Date: March 2009
......
What: vDSO
Date: July 2011
KernelVersion: 3.0
Contact: Andy Lutomirski <luto@kernel.org>
Description:
On some architectures, when the kernel loads any userspace program it On some architectures, when the kernel loads any userspace program it
maps an ELF DSO into that program's address space. This DSO is called maps an ELF DSO into that program's address space. This DSO is called
the vDSO and it often contains useful and highly-optimized alternatives the vDSO and it often contains useful and highly-optimized alternatives
...@@ -23,6 +29,7 @@ Unless otherwise noted, the set of symbols with any given version and the ...@@ -23,6 +29,7 @@ Unless otherwise noted, the set of symbols with any given version and the
ABI of those symbols is considered stable. It may vary across architectures, ABI of those symbols is considered stable. It may vary across architectures,
though. though.
(As of this writing, this ABI documentation as been confirmed for x86_64. Note:
As of this writing, this ABI documentation as been confirmed for x86_64.
The maintainers of the other vDSO-using architectures should confirm The maintainers of the other vDSO-using architectures should confirm
that it is correct for their architecture.) that it is correct for their architecture.
...@@ -14,7 +14,8 @@ Description: ...@@ -14,7 +14,8 @@ Description:
This group contains the configuration for user defined ACPI This group contains the configuration for user defined ACPI
tables. The attributes of a user define table are: tables. The attributes of a user define table are:
aml - a binary attribute that the user can use to aml
- a binary attribute that the user can use to
fill in the ACPI aml definitions. Once the aml fill in the ACPI aml definitions. Once the aml
data is written to this file and the file is data is written to this file and the file is
closed the table will be loaded and ACPI devices closed the table will be loaded and ACPI devices
...@@ -26,11 +27,26 @@ Description: ...@@ -26,11 +27,26 @@ Description:
The rest of the attributes are read-only and are valid only The rest of the attributes are read-only and are valid only
after the table has been loaded by filling the aml entry: after the table has been loaded by filling the aml entry:
signature - ASCII table signature signature
length - length of table in bytes, including the header - ASCII table signature
revision - ACPI Specification minor version number
oem_id - ASCII OEM identification length
oem_table_id - ASCII OEM table identification - length of table in bytes, including the header
oem_revision - OEM revision number
asl_compiler_id - ASCII ASL compiler vendor ID revision
asl_compiler_revision - ASL compiler version - ACPI Specification minor version number
oem_id
- ASCII OEM identification
oem_table_id
- ASCII OEM table identification
oem_revision
- OEM revision number
asl_compiler_id
- ASCII ASL compiler vendor ID
asl_compiler_revision
- ASL compiler version
...@@ -15,22 +15,28 @@ KernelVersion: 5.2 ...@@ -15,22 +15,28 @@ KernelVersion: 5.2
Description: Description:
The attributes: The attributes:
buffer_size configure the buffer size for this channel buffer_size
configure the buffer size for this channel
subbuffer_size configure the sub-buffer size for this channel subbuffer_size
configure the sub-buffer size for this channel
(needed for synchronous and isochrnous data) (needed for synchronous and isochrnous data)
num_buffers configure number of buffers used for this num_buffers
configure number of buffers used for this
channel channel
datatype configure type of data that will travel over datatype
configure type of data that will travel over
this channel this channel
direction configure whether this link will be an input direction
configure whether this link will be an input
or output or output
dbr_size configure DBR data buffer size (this is used dbr_size
configure DBR data buffer size (this is used
for MediaLB communication only) for MediaLB communication only)
packets_per_xact packets_per_xact
...@@ -39,18 +45,23 @@ Description: ...@@ -39,18 +45,23 @@ Description:
transmitted via USB (this is used for USB transmitted via USB (this is used for USB
communication only) communication only)
device name of the device the link is to be attached to device
name of the device the link is to be attached to
channel name of the channel the link is to be attached to channel
name of the channel the link is to be attached to
comp_params pass parameters needed by some components comp_params
pass parameters needed by some components
create_link write '1' to this attribute to trigger the create_link
write '1' to this attribute to trigger the
creation of the link. In case of speculative creation of the link. In case of speculative
configuration, the creation is post-poned until configuration, the creation is post-poned until
a physical device is being attached to the bus. a physical device is being attached to the bus.
destroy_link write '1' to this attribute to destroy an destroy_link
write '1' to this attribute to destroy an
active link active link
What: /sys/kernel/config/most_video/<link> What: /sys/kernel/config/most_video/<link>
...@@ -59,22 +70,28 @@ KernelVersion: 5.2 ...@@ -59,22 +70,28 @@ KernelVersion: 5.2
Description: Description:
The attributes: The attributes:
buffer_size configure the buffer size for this channel buffer_size
configure the buffer size for this channel
subbuffer_size configure the sub-buffer size for this channel subbuffer_size
configure the sub-buffer size for this channel
(needed for synchronous and isochrnous data) (needed for synchronous and isochrnous data)
num_buffers configure number of buffers used for this num_buffers
configure number of buffers used for this
channel channel
datatype configure type of data that will travel over datatype
configure type of data that will travel over
this channel this channel
direction configure whether this link will be an input direction
configure whether this link will be an input
or output or output
dbr_size configure DBR data buffer size (this is used dbr_size
configure DBR data buffer size (this is used
for MediaLB communication only) for MediaLB communication only)
packets_per_xact packets_per_xact
...@@ -83,18 +100,23 @@ Description: ...@@ -83,18 +100,23 @@ Description:
transmitted via USB (this is used for USB transmitted via USB (this is used for USB
communication only) communication only)
device name of the device the link is to be attached to device
name of the device the link is to be attached to
channel name of the channel the link is to be attached to channel
name of the channel the link is to be attached to
comp_params pass parameters needed by some components comp_params
pass parameters needed by some components
create_link write '1' to this attribute to trigger the create_link
write '1' to this attribute to trigger the
creation of the link. In case of speculative creation of the link. In case of speculative
configuration, the creation is post-poned until configuration, the creation is post-poned until
a physical device is being attached to the bus. a physical device is being attached to the bus.
destroy_link write '1' to this attribute to destroy an destroy_link
write '1' to this attribute to destroy an
active link active link
What: /sys/kernel/config/most_net/<link> What: /sys/kernel/config/most_net/<link>
...@@ -103,22 +125,28 @@ KernelVersion: 5.2 ...@@ -103,22 +125,28 @@ KernelVersion: 5.2
Description: Description:
The attributes: The attributes:
buffer_size configure the buffer size for this channel buffer_size
configure the buffer size for this channel
subbuffer_size configure the sub-buffer size for this channel subbuffer_size
configure the sub-buffer size for this channel
(needed for synchronous and isochrnous data) (needed for synchronous and isochrnous data)
num_buffers configure number of buffers used for this num_buffers
configure number of buffers used for this
channel channel
datatype configure type of data that will travel over datatype
configure type of data that will travel over
this channel this channel
direction configure whether this link will be an input direction
configure whether this link will be an input
or output or output
dbr_size configure DBR data buffer size (this is used dbr_size
configure DBR data buffer size (this is used
for MediaLB communication only) for MediaLB communication only)
packets_per_xact packets_per_xact
...@@ -127,18 +155,23 @@ Description: ...@@ -127,18 +155,23 @@ Description:
transmitted via USB (this is used for USB transmitted via USB (this is used for USB
communication only) communication only)
device name of the device the link is to be attached to device
name of the device the link is to be attached to
channel name of the channel the link is to be attached to channel
name of the channel the link is to be attached to
comp_params pass parameters needed by some components comp_params
pass parameters needed by some components
create_link write '1' to this attribute to trigger the create_link
write '1' to this attribute to trigger the
creation of the link. In case of speculative creation of the link. In case of speculative
configuration, the creation is post-poned until configuration, the creation is post-poned until
a physical device is being attached to the bus. a physical device is being attached to the bus.
destroy_link write '1' to this attribute to destroy an destroy_link
write '1' to this attribute to destroy an
active link active link
What: /sys/kernel/config/most_sound/<card> What: /sys/kernel/config/most_sound/<card>
...@@ -147,7 +180,8 @@ KernelVersion: 5.2 ...@@ -147,7 +180,8 @@ KernelVersion: 5.2
Description: Description:
The attributes: The attributes:
create_card write '1' to this attribute to trigger the create_card
write '1' to this attribute to trigger the
registration of the sound card with the ALSA registration of the sound card with the ALSA
subsystem. subsystem.
...@@ -157,22 +191,28 @@ KernelVersion: 5.2 ...@@ -157,22 +191,28 @@ KernelVersion: 5.2
Description: Description:
The attributes: The attributes:
buffer_size configure the buffer size for this channel buffer_size
configure the buffer size for this channel
subbuffer_size configure the sub-buffer size for this channel subbuffer_size
configure the sub-buffer size for this channel
(needed for synchronous and isochrnous data) (needed for synchronous and isochrnous data)
num_buffers configure number of buffers used for this num_buffers
configure number of buffers used for this
channel channel
datatype configure type of data that will travel over datatype
configure type of data that will travel over
this channel this channel
direction configure whether this link will be an input direction
configure whether this link will be an input
or output or output
dbr_size configure DBR data buffer size (this is used dbr_size
configure DBR data buffer size (this is used
for MediaLB communication only) for MediaLB communication only)
packets_per_xact packets_per_xact
...@@ -181,16 +221,21 @@ Description: ...@@ -181,16 +221,21 @@ Description:
transmitted via USB (this is used for USB transmitted via USB (this is used for USB
communication only) communication only)
device name of the device the link is to be attached to device
name of the device the link is to be attached to
channel name of the channel the link is to be attached to channel
name of the channel the link is to be attached to
comp_params pass parameters needed by some components comp_params
pass parameters needed by some components
create_link write '1' to this attribute to trigger the create_link
write '1' to this attribute to trigger the
creation of the link. In case of speculative creation of the link. In case of speculative
configuration, the creation is post-poned until configuration, the creation is post-poned until
a physical device is being attached to the bus. a physical device is being attached to the bus.
destroy_link write '1' to this attribute to destroy an destroy_link
write '1' to this attribute to destroy an
active link active link
...@@ -10,22 +10,24 @@ Description: ...@@ -10,22 +10,24 @@ Description:
This interfaces can be used to show spear's PCIe device capability. This interfaces can be used to show spear's PCIe device capability.
Nodes are only visible when configfs is mounted. To mount configfs Nodes are only visible when configfs is mounted. To mount configfs
in /config directory use: in /config directory use::
# mount -t configfs none /config/
For nth PCIe Device Controller # mount -t configfs none /config/
/config/pcie-gadget.n/
link ... used to enable ltssm and read its status. For nth PCIe Device Controller /config/pcie-gadget.n/:
int_type ...used to configure and read type of supported
interrupt =============== ======================================================
no_of_msi ... used to configure number of MSI vector needed and link used to enable ltssm and read its status.
int_type used to configure and read type of supported interrupt
no_of_msi used to configure number of MSI vector needed and
to read no of MSI granted. to read no of MSI granted.
inta ... write 1 to assert INTA and 0 to de-assert. inta write 1 to assert INTA and 0 to de-assert.
send_msi ... write MSI vector to be sent. send_msi write MSI vector to be sent.
vendor_id ... used to write and read vendor id (hex) vendor_id used to write and read vendor id (hex)
device_id ... used to write and read device id (hex) device_id used to write and read device id (hex)
bar0_size ... used to write and read bar0_size bar0_size used to write and read bar0_size
bar0_address ... used to write and read bar0 mapped area in hex. bar0_address used to write and read bar0 mapped area in hex.
bar0_rw_offset ... used to write and read offset of bar0 where bar0_rw_offset used to write and read offset of bar0 where bar0_data
bar0_data will be written or read. will be written or read.
bar0_data ... used to write and read data at bar0_rw_offset. bar0_data used to write and read data at bar0_rw_offset.
=============== ======================================================
...@@ -12,22 +12,24 @@ Description: ...@@ -12,22 +12,24 @@ Description:
The attributes of a gadget: The attributes of a gadget:
UDC - bind a gadget to UDC/unbind a gadget; ================ ============================================
write UDC's name found in /sys/class/udc/* UDC bind a gadget to UDC/unbind a gadget;
to bind a gadget, empty string "" to unbind. write UDC's name found in /sys/class/udc/*
to bind a gadget, empty string "" to unbind.
max_speed - maximum speed the driver supports. Valid
names are super-speed-plus, super-speed, max_speed maximum speed the driver supports. Valid
high-speed, full-speed, and low-speed. names are super-speed-plus, super-speed,
high-speed, full-speed, and low-speed.
bDeviceClass - USB device class code
bDeviceSubClass - USB device subclass code bDeviceClass USB device class code
bDeviceProtocol - USB device protocol code bDeviceSubClass USB device subclass code
bMaxPacketSize0 - maximum endpoint 0 packet size bDeviceProtocol USB device protocol code
bcdDevice - bcd device release number bMaxPacketSize0 maximum endpoint 0 packet size
bcdUSB - bcd USB specification version number bcdDevice bcd device release number
idProduct - product ID bcdUSB bcd USB specification version number
idVendor - vendor ID idProduct product ID
idVendor vendor ID
================ ============================================
What: /config/usb-gadget/gadget/configs What: /config/usb-gadget/gadget/configs
Date: Jun 2013 Date: Jun 2013
...@@ -41,8 +43,10 @@ KernelVersion: 3.11 ...@@ -41,8 +43,10 @@ KernelVersion: 3.11
Description: Description:
The attributes of a configuration: The attributes of a configuration:
bmAttributes - configuration characteristics ================ ======================================
MaxPower - maximum power consumption from the bus bmAttributes configuration characteristics
MaxPower maximum power consumption from the bus
================ ======================================
What: /config/usb-gadget/gadget/configs/config/strings What: /config/usb-gadget/gadget/configs/config/strings
Date: Jun 2013 Date: Jun 2013
...@@ -57,7 +61,9 @@ KernelVersion: 3.11 ...@@ -57,7 +61,9 @@ KernelVersion: 3.11
Description: Description:
The attributes: The attributes:
configuration - configuration description ================ =========================
configuration configuration description
================ =========================
What: /config/usb-gadget/gadget/functions What: /config/usb-gadget/gadget/functions
...@@ -76,8 +82,10 @@ Description: ...@@ -76,8 +82,10 @@ Description:
The attributes: The attributes:
compatible_id - 8-byte string for "Compatible ID" ================= =====================================
sub_compatible_id - 8-byte string for "Sub Compatible ID" compatible_id 8-byte string for "Compatible ID"
sub_compatible_id 8-byte string for "Sub Compatible ID"
================= =====================================
What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>/<property> What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>/<property>
Date: May 2014 Date: May 2014
...@@ -89,16 +97,19 @@ Description: ...@@ -89,16 +97,19 @@ Description:
The attributes: The attributes:
type - value 1..7 for interpreting the data ===== ===============================================
1: unicode string type value 1..7 for interpreting the data
2: unicode string with environment variable
3: binary - 1: unicode string
4: little-endian 32-bit - 2: unicode string with environment variable
5: big-endian 32-bit - 3: binary
6: unicode string with a symbolic link - 4: little-endian 32-bit
7: multiple unicode strings - 5: big-endian 32-bit
data - blob of data to be interpreted depending on - 6: unicode string with a symbolic link
- 7: multiple unicode strings
data blob of data to be interpreted depending on
type type
===== ===============================================
What: /config/usb-gadget/gadget/strings What: /config/usb-gadget/gadget/strings
Date: Jun 2013 Date: Jun 2013
...@@ -113,9 +124,11 @@ KernelVersion: 3.11 ...@@ -113,9 +124,11 @@ KernelVersion: 3.11
Description: Description:
The attributes: The attributes:
serialnumber - gadget's serial number (string) ============ =================================
product - gadget's product description serialnumber gadget's serial number (string)
manufacturer - gadget's manufacturer description product gadget's product description
manufacturer gadget's manufacturer description
============ =================================
What: /config/usb-gadget/gadget/os_desc What: /config/usb-gadget/gadget/os_desc
Date: May 2014 Date: May 2014
...@@ -123,8 +136,10 @@ KernelVersion: 3.16 ...@@ -123,8 +136,10 @@ KernelVersion: 3.16
Description: Description:
This group contains "OS String" extension handling attributes. This group contains "OS String" extension handling attributes.
use - flag turning "OS Desctiptors" support on/off ============= ===============================================
b_vendor_code - one-byte value used for custom per-device and use flag turning "OS Desctiptors" support on/off
b_vendor_code one-byte value used for custom per-device and
per-interface requests per-interface requests
qw_sign - an identifier to be reported as "OS String" qw_sign an identifier to be reported as "OS String"
proper proper
============= ===============================================
...@@ -4,13 +4,17 @@ KernelVersion: 3.11 ...@@ -4,13 +4,17 @@ KernelVersion: 3.11
Description: Description:
The attributes: The attributes:
ifname - network device interface name associated with ifname
- network device interface name associated with
this function instance this function instance
qmult - queue length multiplier for high and qmult
- queue length multiplier for high and
super speed super speed
host_addr - MAC address of host's end of this host_addr
- MAC address of host's end of this
Ethernet over USB link Ethernet over USB link
dev_addr - MAC address of device's end of this dev_addr
- MAC address of device's end of this
Ethernet over USB link Ethernet over USB link
...@@ -4,11 +4,13 @@ KernelVersion: 3.11 ...@@ -4,11 +4,13 @@ KernelVersion: 3.11
Description: Description:
The attributes: The attributes:
ifname - network device interface name associated with ========== =============================================
ifname network device interface name associated with
this function instance this function instance
qmult - queue length multiplier for high and qmult queue length multiplier for high and
super speed super speed
host_addr - MAC address of host's end of this host_addr MAC address of host's end of this
Ethernet over USB link Ethernet over USB link
dev_addr - MAC address of device's end of this dev_addr MAC address of device's end of this
Ethernet over USB link Ethernet over USB link
========== =============================================
...@@ -4,8 +4,10 @@ KernelVersion: 3.19 ...@@ -4,8 +4,10 @@ KernelVersion: 3.19
Description: Description:
The attributes: The attributes:
protocol - HID protocol to use ============= ============================================
report_desc - blob corresponding to HID report descriptors protocol HID protocol to use
report_desc blob corresponding to HID report descriptors
except the data passed through /dev/hidg<N> except the data passed through /dev/hidg<N>
report_length - HID report length report_length HID report length
subclass - HID device subclass to use subclass HID device subclass to use
============= ============================================
...@@ -4,5 +4,7 @@ KernelVersion: 3.13 ...@@ -4,5 +4,7 @@ KernelVersion: 3.13
Description: Description:
The attributes: The attributes:
qlen - depth of loopback queue ======= =======================
buflen - buffer length qlen depth of loopback queue
buflen buffer length
======= =======================
...@@ -4,12 +4,14 @@ KernelVersion: 3.13 ...@@ -4,12 +4,14 @@ KernelVersion: 3.13
Description: Description:
The attributes: The attributes:
stall - Set to permit function to halt bulk endpoints. =========== ==============================================
stall Set to permit function to halt bulk endpoints.
Disabled on some USB devices known not to work Disabled on some USB devices known not to work
correctly. You should set it to true. correctly. You should set it to true.
num_buffers - Number of pipeline buffers. Valid numbers num_buffers Number of pipeline buffers. Valid numbers
are 2..4. Available only if are 2..4. Available only if
CONFIG_USB_GADGET_DEBUG_FILES is set. CONFIG_USB_GADGET_DEBUG_FILES is set.
=========== ==============================================
What: /config/usb-gadget/gadget/functions/mass_storage.name/lun.name What: /config/usb-gadget/gadget/functions/mass_storage.name/lun.name
Date: Oct 2013 Date: Oct 2013
...@@ -17,15 +19,17 @@ KernelVersion: 3.13 ...@@ -17,15 +19,17 @@ KernelVersion: 3.13
Description: Description:
The attributes: The attributes:
file - The path to the backing file for the LUN. =========== ==============================================
file The path to the backing file for the LUN.
Required if LUN is not marked as removable. Required if LUN is not marked as removable.
ro - Flag specifying access to the LUN shall be ro Flag specifying access to the LUN shall be
read-only. This is implied if CD-ROM emulation read-only. This is implied if CD-ROM emulation
is enabled as well as when it was impossible is enabled as well as when it was impossible
to open "filename" in R/W mode. to open "filename" in R/W mode.
removable - Flag specifying that LUN shall be indicated as removable Flag specifying that LUN shall be indicated as
being removable. being removable.
cdrom - Flag specifying that LUN shall be reported as cdrom Flag specifying that LUN shall be reported as
being a CD-ROM. being a CD-ROM.
nofua - Flag specifying that FUA flag nofua Flag specifying that FUA flag
in SCSI WRITE(10,12) in SCSI WRITE(10,12)
=========== ==============================================
...@@ -4,9 +4,11 @@ KernelVersion: 3.19 ...@@ -4,9 +4,11 @@ KernelVersion: 3.19
Description: Description:
The attributes: The attributes:
index - index value for the USB MIDI adapter ========== ====================================
id - ID string for the USB MIDI adapter index index value for the USB MIDI adapter
buflen - MIDI buffer length id ID string for the USB MIDI adapter
qlen - USB read request queue length buflen MIDI buffer length
in_ports - number of MIDI input ports qlen USB read request queue length
out_ports - number of MIDI output ports in_ports number of MIDI input ports
out_ports number of MIDI output ports
========== ====================================
...@@ -4,6 +4,8 @@ KernelVersion: 4.1 ...@@ -4,6 +4,8 @@ KernelVersion: 4.1
Description: Description:
The attributes: The attributes:
pnp_string - Data to be passed to the host in pnp string ========== ===========================================
q_len - Number of requests per endpoint pnp_string Data to be passed to the host in pnp string
q_len Number of requests per endpoint
========== ===========================================
...@@ -4,14 +4,16 @@ KernelVersion: 3.11 ...@@ -4,14 +4,16 @@ KernelVersion: 3.11
Description: Description:
The attributes: The attributes:
ifname - network device interface name associated with ========= =============================================
ifname network device interface name associated with
this function instance this function instance
qmult - queue length multiplier for high and qmult queue length multiplier for high and
super speed super speed
host_addr - MAC address of host's end of this host_addr MAC address of host's end of this
Ethernet over USB link Ethernet over USB link
dev_addr - MAC address of device's end of this dev_addr MAC address of device's end of this
Ethernet over USB link Ethernet over USB link
class - USB interface class, default is 02 (hex) class USB interface class, default is 02 (hex)
subclass - USB interface subclass, default is 06 (hex) subclass USB interface subclass, default is 06 (hex)
protocol - USB interface protocol, default is 00 (hex) protocol USB interface protocol, default is 00 (hex)
========= =============================================
...@@ -4,11 +4,13 @@ KernelVersion: 3.13 ...@@ -4,11 +4,13 @@ KernelVersion: 3.13
Description: Description:
The attributes: The attributes:
pattern - 0 (all zeros), 1 (mod63), 2 (none) ============== ==================================
isoc_interval - 1..16 pattern 0 (all zeros), 1 (mod63), 2 (none)
isoc_maxpacket - 0 - 1023 (fs), 0 - 1024 (hs/ss) isoc_interval 1..16
isoc_mult - 0..2 (hs/ss only) isoc_maxpacket 0 - 1023 (fs), 0 - 1024 (hs/ss)
isoc_maxburst - 0..15 (ss only) isoc_mult 0..2 (hs/ss only)
buflen - buffer length isoc_maxburst 0..15 (ss only)
bulk_qlen - depth of queue for bulk buflen buffer length
iso_qlen - depth of queue for iso bulk_qlen depth of queue for bulk
iso_qlen depth of queue for iso
============== ==================================
...@@ -4,11 +4,13 @@ KernelVersion: 3.11 ...@@ -4,11 +4,13 @@ KernelVersion: 3.11
Description: Description:
The attributes: The attributes:
ifname - network device interface name associated with ========== =============================================
ifname network device interface name associated with
this function instance this function instance
qmult - queue length multiplier for high and qmult queue length multiplier for high and
super speed super speed
host_addr - MAC address of host's end of this host_addr MAC address of host's end of this
Ethernet over USB link Ethernet over USB link
dev_addr - MAC address of device's end of this dev_addr MAC address of device's end of this
Ethernet over USB link Ethernet over USB link
========== =============================================
...@@ -4,11 +4,13 @@ KernelVersion: 4.14 ...@@ -4,11 +4,13 @@ KernelVersion: 4.14
Description: Description:
The attributes: The attributes:
c_chmask - capture channel mask ========== ===================================
c_srate - capture sampling rate c_chmask capture channel mask
c_ssize - capture sample size (bytes) c_srate capture sampling rate
p_chmask - playback channel mask c_ssize capture sample size (bytes)
p_srate - playback sampling rate p_chmask playback channel mask
p_ssize - playback sample size (bytes) p_srate playback sampling rate
req_number - the number of pre-allocated request p_ssize playback sample size (bytes)
for both capture and playback req_number the number of pre-allocated request
for both capture and playback
========== ===================================
...@@ -4,9 +4,11 @@ KernelVersion: 3.18 ...@@ -4,9 +4,11 @@ KernelVersion: 3.18
Description: Description:
The attributes: The attributes:
c_chmask - capture channel mask ========= ============================
c_srate - capture sampling rate c_chmask capture channel mask
c_ssize - capture sample size (bytes) c_srate capture sampling rate
p_chmask - playback channel mask c_ssize capture sample size (bytes)
p_srate - playback sampling rate p_chmask playback channel mask
p_ssize - playback sample size (bytes) p_srate playback sampling rate
p_ssize playback sample size (bytes)
========= ============================
...@@ -23,7 +23,7 @@ error injections without having to know the details of the driver-specific ...@@ -23,7 +23,7 @@ error injections without having to know the details of the driver-specific
commands. commands.
Note that the output of 'error-inj' shall be valid as input to 'error-inj'. Note that the output of 'error-inj' shall be valid as input to 'error-inj'.
So this must work: So this must work::
$ cat error-inj >einj.txt $ cat error-inj >einj.txt
$ cat einj.txt >error-inj $ cat einj.txt >error-inj
......
...@@ -20,9 +20,13 @@ Description: Allow the root user to disable/enable in runtime the clock ...@@ -20,9 +20,13 @@ Description: Allow the root user to disable/enable in runtime the clock
The user can supply a bitmask value, each bit represents The user can supply a bitmask value, each bit represents
a different engine to disable/enable its clock gating feature. a different engine to disable/enable its clock gating feature.
The bitmask is composed of 20 bits: The bitmask is composed of 20 bits:
0 - 7 : DMA channels
8 - 11 : MME engines ======= ============
12 - 19 : TPC engines 0 - 7 DMA channels
8 - 11 MME engines
12 - 19 TPC engines
======= ============
The bit's location of a specific engine can be determined The bit's location of a specific engine can be determined
using (1 << GAUDI_ENGINE_ID_*). GAUDI_ENGINE_ID_* values using (1 << GAUDI_ENGINE_ID_*). GAUDI_ENGINE_ID_* values
are defined in uapi habanalabs.h file in enum gaudi_engine_id are defined in uapi habanalabs.h file in enum gaudi_engine_id
...@@ -59,6 +63,7 @@ Description: Allows the root user to read or write directly through the ...@@ -59,6 +63,7 @@ Description: Allows the root user to read or write directly through the
the generic Linux user-space PCI mapping) because the DDR bar the generic Linux user-space PCI mapping) because the DDR bar
is very small compared to the DDR memory and only the driver can is very small compared to the DDR memory and only the driver can
move the bar before and after the transaction. move the bar before and after the transaction.
If the IOMMU is disabled, it also allows the root user to read If the IOMMU is disabled, it also allows the root user to read
or write from the host a device VA of a host mapped memory or write from the host a device VA of a host mapped memory
...@@ -73,6 +78,7 @@ Description: Allows the root user to read or write 64 bit data directly ...@@ -73,6 +78,7 @@ Description: Allows the root user to read or write 64 bit data directly
the generic Linux user-space PCI mapping) because the DDR bar the generic Linux user-space PCI mapping) because the DDR bar
is very small compared to the DDR memory and only the driver can is very small compared to the DDR memory and only the driver can
move the bar before and after the transaction. move the bar before and after the transaction.
If the IOMMU is disabled, it also allows the root user to read If the IOMMU is disabled, it also allows the root user to read
or write from the host a device VA of a host mapped memory or write from the host a device VA of a host mapped memory
......
...@@ -6,7 +6,7 @@ Description: ...@@ -6,7 +6,7 @@ Description:
General information like which GPE is assigned to the EC and whether General information like which GPE is assigned to the EC and whether
the global lock should get used. the global lock should get used.
Knowing the EC GPE one can watch the amount of HW events related to Knowing the EC GPE one can watch the amount of HW events related to
the EC here (XY -> GPE number from /sys/kernel/debug/ec/*/gpe): the EC here (XY -> GPE number from `/sys/kernel/debug/ec/*/gpe`):
/sys/firmware/acpi/interrupts/gpeXY /sys/firmware/acpi/interrupts/gpeXY
The io file is binary and a userspace tool located here: The io file is binary and a userspace tool located here:
...@@ -14,7 +14,8 @@ ftp://ftp.suse.com/pub/people/trenn/sources/ec/ ...@@ -14,7 +14,8 @@ ftp://ftp.suse.com/pub/people/trenn/sources/ec/
should get used to read out the 256 Embedded Controller registers should get used to read out the 256 Embedded Controller registers
or writing to them. or writing to them.
CAUTION: Do not write to the Embedded Controller if you don't know CAUTION:
what you are doing! Rebooting afterwards also is a good idea. Do not write to the Embedded Controller if you don't know
This can influence the way your machine is cooled and fans may what you are doing! Rebooting afterwards also is a good idea.
not get switched on again after you did a wrong write. This can influence the way your machine is cooled and fans may
not get switched on again after you did a wrong write.
...@@ -2,13 +2,19 @@ What: /sys/kernel/debug/moxtet/input ...@@ -2,13 +2,19 @@ What: /sys/kernel/debug/moxtet/input
Date: March 2019 Date: March 2019
KernelVersion: 5.3 KernelVersion: 5.3
Contact: Marek Behún <marek.behun@nic.cz> Contact: Marek Behún <marek.behun@nic.cz>
Description: (R) Read input from the shift registers, in hexadecimal. Description: (Read) Read input from the shift registers, in hexadecimal.
Returns N+1 bytes, where N is the number of Moxtet connected Returns N+1 bytes, where N is the number of Moxtet connected
modules. The first byte is from the CPU board itself. modules. The first byte is from the CPU board itself.
Example: 101214
10: CPU board with SD card Example::
12: 2 = PCIe module, 1 = IRQ not active
14: 4 = Peridot module, 1 = IRQ not active 101214
== =======================================
10 CPU board with SD card
12 2 = PCIe module, 1 = IRQ not active
14 4 = Peridot module, 1 = IRQ not active
== =======================================
What: /sys/kernel/debug/moxtet/output What: /sys/kernel/debug/moxtet/output
Date: March 2019 Date: March 2019
...@@ -17,7 +23,13 @@ Contact: Marek Behún <marek.behun@nic.cz> ...@@ -17,7 +23,13 @@ Contact: Marek Behún <marek.behun@nic.cz>
Description: (RW) Read last written value to the shift registers, in Description: (RW) Read last written value to the shift registers, in
hexadecimal, or write values to the shift registers, also hexadecimal, or write values to the shift registers, also
in hexadecimal. in hexadecimal.
Example: 0102
01: 01 was last written, or is to be written, to the Example::
first module's shift register
02: the same for second module 0102
== ================================================
01 01 was last written, or is to be written, to the
first module's shift register
02 the same for second module
== ================================================
...@@ -4,42 +4,42 @@ KernelVersion: 3.4 ...@@ -4,42 +4,42 @@ KernelVersion: 3.4
Contact: Kent Yoder <key@linux.vnet.ibm.com> Contact: Kent Yoder <key@linux.vnet.ibm.com>
Description: Description:
These debugfs interfaces are built by the nx-crypto driver, built in These debugfs interfaces are built by the nx-crypto driver, built in
arch/powerpc/crypto/nx. arch/powerpc/crypto/nx.
Error Detection Error Detection
=============== ===============
errors: errors:
- A u32 providing a total count of errors since the driver was loaded. The A u32 providing a total count of errors since the driver was loaded. The
only errors counted here are those returned from the hcall, H_COP_OP. only errors counted here are those returned from the hcall, H_COP_OP.
last_error: last_error:
- The most recent non-zero return code from the H_COP_OP hcall. -EBUSY is not The most recent non-zero return code from the H_COP_OP hcall. -EBUSY is not
recorded here (the hcall will retry until -EBUSY goes away). recorded here (the hcall will retry until -EBUSY goes away).
last_error_pid: last_error_pid:
- The process ID of the process who received the most recent error from the The process ID of the process who received the most recent error from the
hcall. hcall.
Device Use Device Use
========== ==========
aes_bytes: aes_bytes:
- The total number of bytes encrypted using AES in any of the driver's The total number of bytes encrypted using AES in any of the driver's
supported modes. supported modes.
aes_ops: aes_ops:
- The total number of AES operations submitted to the hardware. The total number of AES operations submitted to the hardware.
sha256_bytes: sha256_bytes:
- The total number of bytes hashed by the hardware using SHA-256. The total number of bytes hashed by the hardware using SHA-256.
sha256_ops: sha256_ops:
- The total number of SHA-256 operations submitted to the hardware. The total number of SHA-256 operations submitted to the hardware.
sha512_bytes: sha512_bytes:
- The total number of bytes hashed by the hardware using SHA-512. The total number of bytes hashed by the hardware using SHA-512.
sha512_ops: sha512_ops:
- The total number of SHA-512 operations submitted to the hardware. The total number of SHA-512 operations submitted to the hardware.
...@@ -4,16 +4,15 @@ KernelVersion: 2.6.20 ...@@ -4,16 +4,15 @@ KernelVersion: 2.6.20
Contact: Thomas Maier <balagi@justmail.de> Contact: Thomas Maier <balagi@justmail.de>
Description: Description:
debugfs interface
-----------------
The pktcdvd module (packet writing driver) creates The pktcdvd module (packet writing driver) creates
these files in debugfs: these files in debugfs:
/sys/kernel/debug/pktcdvd/pktcdvd[0-7]/ /sys/kernel/debug/pktcdvd/pktcdvd[0-7]/
info (0444) Lots of driver statistics and infos.
Example: ==== ====== ====================================
------- info 0444 Lots of driver statistics and infos.
==== ====== ====================================
Example::
cat /sys/kernel/debug/pktcdvd/pktcdvd0/info cat /sys/kernel/debug/pktcdvd/pktcdvd0/info
...@@ -2,8 +2,13 @@ What: /sys/kernel/debug/turris-mox-rwtm/do_sign ...@@ -2,8 +2,13 @@ What: /sys/kernel/debug/turris-mox-rwtm/do_sign
Date: Jun 2020 Date: Jun 2020
KernelVersion: 5.8 KernelVersion: 5.8
Contact: Marek Behún <marek.behun@nic.cz> Contact: Marek Behún <marek.behun@nic.cz>
Description: (W) Message to sign with the ECDSA private key stored in Description:
device's OTP. The message must be exactly 64 bytes (since
this is intended for SHA-512 hashes). ======= ===========================================================
(R) The resulting signature, 136 bytes. This contains the R and (Write) Message to sign with the ECDSA private key stored in
S values of the ECDSA signature, both in big-endian format. device's OTP. The message must be exactly 64 bytes
(since this is intended for SHA-512 hashes).
(Read) The resulting signature, 136 bytes. This contains the
R and S values of the ECDSA signature, both in
big-endian format.
======= ===========================================================
...@@ -27,16 +27,17 @@ Description: ...@@ -27,16 +27,17 @@ Description:
for writing, two for the type and at least a single byte of for writing, two for the type and at least a single byte of
data. data.
Example: Example::
// Request EC info type 3 (EC firmware build date)
// Corresponds with sending type 0x00f0 with // Request EC info type 3 (EC firmware build date)
// MBOX = [38, 00, 03, 00] // Corresponds with sending type 0x00f0 with
$ echo 00 f0 38 00 03 00 > /sys/kernel/debug/wilco_ec/raw // MBOX = [38, 00, 03, 00]
// View the result. The decoded ASCII result "12/21/18" is $ echo 00 f0 38 00 03 00 > /sys/kernel/debug/wilco_ec/raw
// included after the raw hex. // View the result. The decoded ASCII result "12/21/18" is
// Corresponds with MBOX = [00, 00, 31, 32, 2f, 32, 31, 38, ...] // included after the raw hex.
$ cat /sys/kernel/debug/wilco_ec/raw // Corresponds with MBOX = [00, 00, 31, 32, 2f, 32, 31, 38, ...]
00 00 31 32 2f 32 31 2f 31 38 00 38 00 01 00 2f 00 ..12/21/18.8... $ cat /sys/kernel/debug/wilco_ec/raw
00 00 31 32 2f 32 31 2f 31 38 00 38 00 01 00 2f 00 ..12/21/18.8...
Note that the first 16 bytes of the received MBOX[] will be Note that the first 16 bytes of the received MBOX[] will be
printed, even if some of the data is junk, and skipping bytes printed, even if some of the data is junk, and skipping bytes
......
...@@ -10,29 +10,29 @@ Description: ...@@ -10,29 +10,29 @@ Description:
<uapi/linux/wmi.h> <uapi/linux/wmi.h>
1) To perform an SMBIOS call from userspace, you'll need to 1) To perform an SMBIOS call from userspace, you'll need to
first determine the minimum size of the calling interface first determine the minimum size of the calling interface
buffer for your machine. buffer for your machine.
Platforms that contain larger buffers can return larger Platforms that contain larger buffers can return larger
objects from the system firmware. objects from the system firmware.
Commonly this size is either 4k or 32k. Commonly this size is either 4k or 32k.
To determine the size of the buffer read() a u64 dword from To determine the size of the buffer read() a u64 dword from
the WMI character device /dev/wmi/dell-smbios. the WMI character device /dev/wmi/dell-smbios.
2) After you've determined the minimum size of the calling 2) After you've determined the minimum size of the calling
interface buffer, you can allocate a structure that represents interface buffer, you can allocate a structure that represents
the structure documented above. the structure documented above.
3) In the 'length' object store the size of the buffer you 3) In the 'length' object store the size of the buffer you
determined above and allocated. determined above and allocated.
4) In this buffer object, prepare as necessary for the SMBIOS 4) In this buffer object, prepare as necessary for the SMBIOS
call you're interested in. Typically SMBIOS buffers have call you're interested in. Typically SMBIOS buffers have
"class", "select", and "input" defined to values that coincide "class", "select", and "input" defined to values that coincide
with the data you are interested in. with the data you are interested in.
Documenting class/select/input values is outside of the scope Documenting class/select/input values is outside of the scope
of this documentation. Check with the libsmbios project for of this documentation. Check with the libsmbios project for
further documentation on these values. further documentation on these values.
6) Run the call by using ioctl() as described in the header. 6) Run the call by using ioctl() as described in the header.
......
...@@ -6,6 +6,7 @@ Description: The /dev/kmsg character device node provides userspace access ...@@ -6,6 +6,7 @@ Description: The /dev/kmsg character device node provides userspace access
to the kernel's printk buffer. to the kernel's printk buffer.
Injecting messages: Injecting messages:
Every write() to the opened device node places a log entry in Every write() to the opened device node places a log entry in
the kernel's printk buffer. the kernel's printk buffer.
...@@ -21,6 +22,7 @@ Description: The /dev/kmsg character device node provides userspace access ...@@ -21,6 +22,7 @@ Description: The /dev/kmsg character device node provides userspace access
the messages can always be reliably determined. the messages can always be reliably determined.
Accessing the buffer: Accessing the buffer:
Every read() from the opened device node receives one record Every read() from the opened device node receives one record
of the kernel's printk buffer. of the kernel's printk buffer.
...@@ -48,6 +50,7 @@ Description: The /dev/kmsg character device node provides userspace access ...@@ -48,6 +50,7 @@ Description: The /dev/kmsg character device node provides userspace access
if needed, without limiting the interface to a single reader. if needed, without limiting the interface to a single reader.
The device supports seek with the following parameters: The device supports seek with the following parameters:
SEEK_SET, 0 SEEK_SET, 0
seek to the first entry in the buffer seek to the first entry in the buffer
SEEK_END, 0 SEEK_END, 0
...@@ -87,18 +90,22 @@ Description: The /dev/kmsg character device node provides userspace access ...@@ -87,18 +90,22 @@ Description: The /dev/kmsg character device node provides userspace access
readable context of the message, for reliable processing in readable context of the message, for reliable processing in
userspace. userspace.
Example: Example::
7,160,424069,-;pci_root PNP0A03:00: host bridge window [io 0x0000-0x0cf7] (ignored)
SUBSYSTEM=acpi 7,160,424069,-;pci_root PNP0A03:00: host bridge window [io 0x0000-0x0cf7] (ignored)
DEVICE=+acpi:PNP0A03:00 SUBSYSTEM=acpi
6,339,5140900,-;NET: Registered protocol family 10 DEVICE=+acpi:PNP0A03:00
30,340,5690716,-;udevd[80]: starting version 181 6,339,5140900,-;NET: Registered protocol family 10
30,340,5690716,-;udevd[80]: starting version 181
The DEVICE= key uniquely identifies devices the following way: The DEVICE= key uniquely identifies devices the following way:
b12:8 - block dev_t
c127:3 - char dev_t ============ =================
n8 - netdev ifindex b12:8 block dev_t
+sound:card0 - subsystem:devname c127:3 char dev_t
n8 netdev ifindex
+sound:card0 subsystem:devname
============ =================
The flags field carries '-' by default. A 'c' indicates a The flags field carries '-' by default. A 'c' indicates a
fragment of a line. Note, that these hints about continuation fragment of a line. Note, that these hints about continuation
......
...@@ -17,26 +17,33 @@ Description: ...@@ -17,26 +17,33 @@ Description:
echoing a value to <securityfs>/evm made up of the echoing a value to <securityfs>/evm made up of the
following bits: following bits:
=== ==================================================
Bit Effect Bit Effect
=== ==================================================
0 Enable HMAC validation and creation 0 Enable HMAC validation and creation
1 Enable digital signature validation 1 Enable digital signature validation
2 Permit modification of EVM-protected metadata at 2 Permit modification of EVM-protected metadata at
runtime. Not supported if HMAC validation and runtime. Not supported if HMAC validation and
creation is enabled. creation is enabled.
31 Disable further runtime modification of EVM policy 31 Disable further runtime modification of EVM policy
=== ==================================================
For example: For example::
echo 1 ><securityfs>/evm echo 1 ><securityfs>/evm
will enable HMAC validation and creation will enable HMAC validation and creation
echo 0x80000003 ><securityfs>/evm ::
echo 0x80000003 ><securityfs>/evm
will enable HMAC and digital signature validation and will enable HMAC and digital signature validation and
HMAC creation and disable all further modification of policy. HMAC creation and disable all further modification of policy.
echo 0x80000006 ><securityfs>/evm ::
echo 0x80000006 ><securityfs>/evm
will enable digital signature validation, permit will enable digital signature validation, permit
modification of EVM-protected metadata and modification of EVM-protected metadata and
...@@ -65,7 +72,7 @@ Description: ...@@ -65,7 +72,7 @@ Description:
Shows the set of extended attributes used to calculate or Shows the set of extended attributes used to calculate or
validate the EVM signature, and allows additional attributes validate the EVM signature, and allows additional attributes
to be added at runtime. Any signatures generated after to be added at runtime. Any signatures generated after
additional attributes are added (and on files posessing those additional attributes are added (and on files possessing those
additional attributes) will only be valid if the same additional attributes) will only be valid if the same
additional attributes are configured on system boot. Writing additional attributes are configured on system boot. Writing
a single period (.) will lock the xattr list from any further a single period (.) will lock the xattr list from any further
......
...@@ -12,15 +12,16 @@ Description: ...@@ -12,15 +12,16 @@ Description:
The following file operations are supported: The following file operations are supported:
open(2) open(2)
Currently the only useful flags are O_RDWR. Currently the only useful flags are O_RDWR.
ioctl(2) ioctl(2)
Initiate various actions. Initiate various actions.
See the inline documentation in [include/uapi]<linux/gpio.h>
for descriptions of all ioctls. See the inline documentation in [include/uapi]<linux/gpio.h>
for descriptions of all ioctls.
close(2) close(2)
Stops and free up the I/O contexts that was associated Stops and free up the I/O contexts that was associated
with the file descriptor. with the file descriptor.
Users: TBD Users: TBD
...@@ -15,19 +15,22 @@ Description: ...@@ -15,19 +15,22 @@ Description:
IMA appraisal, if configured, uses these file measurements IMA appraisal, if configured, uses these file measurements
for local measurement appraisal. for local measurement appraisal.
rule format: action [condition ...] ::
action: measure | dont_measure | appraise | dont_appraise | rule format: action [condition ...]
audit | hash | dont_hash
condition:= base | lsm [option] action: measure | dont_measure | appraise | dont_appraise |
audit | hash | dont_hash
condition:= base | lsm [option]
base: [[func=] [mask=] [fsmagic=] [fsuuid=] [uid=] base: [[func=] [mask=] [fsmagic=] [fsuuid=] [uid=]
[euid=] [fowner=] [fsname=]] [euid=] [fowner=] [fsname=]]
lsm: [[subj_user=] [subj_role=] [subj_type=] lsm: [[subj_user=] [subj_role=] [subj_type=]
[obj_user=] [obj_role=] [obj_type=]] [obj_user=] [obj_role=] [obj_type=]]
option: [[appraise_type=]] [template=] [permit_directio] option: [[appraise_type=]] [template=] [permit_directio]
[appraise_flag=] [keyrings=] [appraise_flag=] [keyrings=]
base: func:= [BPRM_CHECK][MMAP_CHECK][CREDS_CHECK][FILE_CHECK][MODULE_CHECK] base:
[FIRMWARE_CHECK] func:= [BPRM_CHECK][MMAP_CHECK][CREDS_CHECK][FILE_CHECK]MODULE_CHECK]
[FIRMWARE_CHECK]
[KEXEC_KERNEL_CHECK] [KEXEC_INITRAMFS_CHECK] [KEXEC_KERNEL_CHECK] [KEXEC_INITRAMFS_CHECK]
[KEXEC_CMDLINE] [KEY_CHECK] [KEXEC_CMDLINE] [KEY_CHECK]
mask:= [[^]MAY_READ] [[^]MAY_WRITE] [[^]MAY_APPEND] mask:= [[^]MAY_READ] [[^]MAY_WRITE] [[^]MAY_APPEND]
...@@ -37,8 +40,9 @@ Description: ...@@ -37,8 +40,9 @@ Description:
uid:= decimal value uid:= decimal value
euid:= decimal value euid:= decimal value
fowner:= decimal value fowner:= decimal value
lsm: are LSM specific lsm: are LSM specific
option: appraise_type:= [imasig] [imasig|modsig] option:
appraise_type:= [imasig] [imasig|modsig]
appraise_flag:= [check_blacklist] appraise_flag:= [check_blacklist]
Currently, blacklist check is only for files signed with appended Currently, blacklist check is only for files signed with appended
signature. signature.
...@@ -49,7 +53,7 @@ Description: ...@@ -49,7 +53,7 @@ Description:
(eg, ima-ng). Only valid when action is "measure". (eg, ima-ng). Only valid when action is "measure".
pcr:= decimal value pcr:= decimal value
default policy: default policy:
# PROC_SUPER_MAGIC # PROC_SUPER_MAGIC
dont_measure fsmagic=0x9fa0 dont_measure fsmagic=0x9fa0
dont_appraise fsmagic=0x9fa0 dont_appraise fsmagic=0x9fa0
...@@ -97,7 +101,8 @@ Description: ...@@ -97,7 +101,8 @@ Description:
Examples of LSM specific definitions: Examples of LSM specific definitions:
SELinux: SELinux::
dont_measure obj_type=var_log_t dont_measure obj_type=var_log_t
dont_appraise obj_type=var_log_t dont_appraise obj_type=var_log_t
dont_measure obj_type=auditd_log_t dont_measure obj_type=auditd_log_t
...@@ -105,10 +110,11 @@ Description: ...@@ -105,10 +110,11 @@ Description:
measure subj_user=system_u func=FILE_CHECK mask=MAY_READ measure subj_user=system_u func=FILE_CHECK mask=MAY_READ
measure subj_role=system_r func=FILE_CHECK mask=MAY_READ measure subj_role=system_r func=FILE_CHECK mask=MAY_READ
Smack: Smack::
measure subj_user=_ func=FILE_CHECK mask=MAY_READ measure subj_user=_ func=FILE_CHECK mask=MAY_READ
Example of measure rules using alternate PCRs: Example of measure rules using alternate PCRs::
measure func=KEXEC_KERNEL_CHECK pcr=4 measure func=KEXEC_KERNEL_CHECK pcr=4
measure func=KEXEC_INITRAMFS_CHECK pcr=5 measure func=KEXEC_INITRAMFS_CHECK pcr=5
......
...@@ -6,32 +6,38 @@ Description: ...@@ -6,32 +6,38 @@ Description:
of block devices. Each line contains the following 14 of block devices. Each line contains the following 14
fields: fields:
1 - major number == ===================================
2 - minor mumber 1 major number
3 - device name 2 minor mumber
4 - reads completed successfully 3 device name
5 - reads merged 4 reads completed successfully
6 - sectors read 5 reads merged
7 - time spent reading (ms) 6 sectors read
8 - writes completed 7 time spent reading (ms)
9 - writes merged 8 writes completed
10 - sectors written 9 writes merged
11 - time spent writing (ms) 10 sectors written
12 - I/Os currently in progress 11 time spent writing (ms)
13 - time spent doing I/Os (ms) 12 I/Os currently in progress
14 - weighted time spent doing I/Os (ms) 13 time spent doing I/Os (ms)
14 weighted time spent doing I/Os (ms)
== ===================================
Kernel 4.18+ appends four more fields for discard Kernel 4.18+ appends four more fields for discard
tracking putting the total at 18: tracking putting the total at 18:
15 - discards completed successfully == ===================================
16 - discards merged 15 discards completed successfully
17 - sectors discarded 16 discards merged
18 - time spent discarding 17 sectors discarded
18 time spent discarding
== ===================================
Kernel 5.5+ appends two more fields for flush requests: Kernel 5.5+ appends two more fields for flush requests:
19 - flush requests completed successfully == =====================================
20 - time spent flushing 19 flush requests completed successfully
20 time spent flushing
== =====================================
For more details refer to Documentation/admin-guide/iostats.rst For more details refer to Documentation/admin-guide/iostats.rst
...@@ -14,28 +14,28 @@ Description: ...@@ -14,28 +14,28 @@ Description:
For more details, see Documentation/filesystems/proc.rst For more details, see Documentation/filesystems/proc.rst
and the procfs man page. and the procfs man page.
Typical output looks like this: Typical output looks like this::
00100000-ff709000 ---p 00000000 00:00 0 [rollup] 00100000-ff709000 ---p 00000000 00:00 0 [rollup]
Size: 1192 kB Size: 1192 kB
KernelPageSize: 4 kB KernelPageSize: 4 kB
MMUPageSize: 4 kB MMUPageSize: 4 kB
Rss: 884 kB Rss: 884 kB
Pss: 385 kB Pss: 385 kB
Pss_Anon: 301 kB Pss_Anon: 301 kB
Pss_File: 80 kB Pss_File: 80 kB
Pss_Shmem: 4 kB Pss_Shmem: 4 kB
Shared_Clean: 696 kB Shared_Clean: 696 kB
Shared_Dirty: 0 kB Shared_Dirty: 0 kB
Private_Clean: 120 kB Private_Clean: 120 kB
Private_Dirty: 68 kB Private_Dirty: 68 kB
Referenced: 884 kB Referenced: 884 kB
Anonymous: 68 kB Anonymous: 68 kB
LazyFree: 0 kB LazyFree: 0 kB
AnonHugePages: 0 kB AnonHugePages: 0 kB
ShmemPmdMapped: 0 kB ShmemPmdMapped: 0 kB
Shared_Hugetlb: 0 kB Shared_Hugetlb: 0 kB
Private_Hugetlb: 0 kB Private_Hugetlb: 0 kB
Swap: 0 kB Swap: 0 kB
SwapPss: 0 kB SwapPss: 0 kB
Locked: 385 kB Locked: 385 kB
...@@ -9,25 +9,25 @@ Description: Generic interface to platform dependent persistent storage. ...@@ -9,25 +9,25 @@ Description: Generic interface to platform dependent persistent storage.
provide a generic interface to show records captured in provide a generic interface to show records captured in
the dying moments. In the case of a panic the last part the dying moments. In the case of a panic the last part
of the console log is captured, but other interesting of the console log is captured, but other interesting
data can also be saved. data can also be saved::
# mount -t pstore -o kmsg_bytes=8000 - /sys/fs/pstore # mount -t pstore -o kmsg_bytes=8000 - /sys/fs/pstore
$ ls -l /sys/fs/pstore/ $ ls -l /sys/fs/pstore/
total 0 total 0
-r--r--r-- 1 root root 7896 Nov 30 15:38 dmesg-erst-1 -r--r--r-- 1 root root 7896 Nov 30 15:38 dmesg-erst-1
Different users of this interface will result in different Different users of this interface will result in different
filename prefixes. Currently two are defined: filename prefixes. Currently two are defined:
"dmesg" - saved console log - "dmesg" - saved console log
"mce" - architecture dependent data from fatal h/w error - "mce" - architecture dependent data from fatal h/w error
Once the information in a file has been read, removing Once the information in a file has been read, removing
the file will signal to the underlying persistent storage the file will signal to the underlying persistent storage
device that it can reclaim the space for later re-use. device that it can reclaim the space for later re-use::
$ rm /sys/fs/pstore/dmesg-erst-1 $ rm /sys/fs/pstore/dmesg-erst-1
The expectation is that all files in /sys/fs/pstore/ The expectation is that all files in /sys/fs/pstore/
will be saved elsewhere and erased from persistent store will be saved elsewhere and erased from persistent store
...@@ -44,4 +44,3 @@ Description: Generic interface to platform dependent persistent storage. ...@@ -44,4 +44,3 @@ Description: Generic interface to platform dependent persistent storage.
backends are available, the preferred backend may be backends are available, the preferred backend may be
set by passing the pstore.backend= argument to the kernel at set by passing the pstore.backend= argument to the kernel at
boot time. boot time.
...@@ -4,23 +4,27 @@ Contact: Jerome Marchand <jmarchan@redhat.com> ...@@ -4,23 +4,27 @@ Contact: Jerome Marchand <jmarchan@redhat.com>
Description: Description:
The /sys/block/<disk>/stat files displays the I/O The /sys/block/<disk>/stat files displays the I/O
statistics of disk <disk>. They contain 11 fields: statistics of disk <disk>. They contain 11 fields:
1 - reads completed successfully
2 - reads merged == ==============================================
3 - sectors read 1 reads completed successfully
4 - time spent reading (ms) 2 reads merged
5 - writes completed 3 sectors read
6 - writes merged 4 time spent reading (ms)
7 - sectors written 5 writes completed
8 - time spent writing (ms) 6 writes merged
9 - I/Os currently in progress 7 sectors written
10 - time spent doing I/Os (ms) 8 time spent writing (ms)
11 - weighted time spent doing I/Os (ms) 9 I/Os currently in progress
12 - discards completed 10 time spent doing I/Os (ms)
13 - discards merged 11 weighted time spent doing I/Os (ms)
14 - sectors discarded 12 discards completed
15 - time spent discarding (ms) 13 discards merged
16 - flush requests completed 14 sectors discarded
17 - time spent flushing (ms) 15 time spent discarding (ms)
16 flush requests completed
17 time spent flushing (ms)
== ==============================================
For more details refer Documentation/admin-guide/iostats.rst For more details refer Documentation/admin-guide/iostats.rst
......
...@@ -8,11 +8,13 @@ Description: ...@@ -8,11 +8,13 @@ Description:
It has the following valid values: It has the following valid values:
== ========================================================
0 OFF - the LED is not activated on activity 0 OFF - the LED is not activated on activity
1 BLINK_ON - the LED blinks on every 10ms when activity is 1 BLINK_ON - the LED blinks on every 10ms when activity is
detected. detected.
2 BLINK_OFF - the LED is on when idle, and blinks off 2 BLINK_OFF - the LED is on when idle, and blinks off
every 10ms when activity is detected. every 10ms when activity is detected.
== ========================================================
Note that the user must turn sw_activity OFF it they wish to Note that the user must turn sw_activity OFF it they wish to
control the activity LED via the em_message file. control the activity LED via the em_message file.
......
...@@ -9,9 +9,9 @@ Description: To unmap a volume, "normal" or "force" has to be written to: ...@@ -9,9 +9,9 @@ Description: To unmap a volume, "normal" or "force" has to be written to:
is using the device. When "force" is used, the device is also unmapped is using the device. When "force" is used, the device is also unmapped
when device is in use. All I/Os that are in progress will fail. when device is in use. All I/Os that are in progress will fail.
Example: Example::
# echo "normal" > /sys/block/rnbd0/rnbd/unmap_device # echo "normal" > /sys/block/rnbd0/rnbd/unmap_device
What: /sys/block/rnbd<N>/rnbd/state What: /sys/block/rnbd<N>/rnbd/state
Date: Feb 2020 Date: Feb 2020
......
...@@ -5,6 +5,7 @@ Description: ...@@ -5,6 +5,7 @@ Description:
This attribute indicates the full path of ACPI namespace This attribute indicates the full path of ACPI namespace
object associated with the device object. For example, object associated with the device object. For example,
\_SB_.PCI0. \_SB_.PCI0.
This file is not present for device objects representing This file is not present for device objects representing
fixed ACPI hardware features (like power and sleep fixed ACPI hardware features (like power and sleep
buttons). buttons).
...@@ -67,14 +68,16 @@ Description: ...@@ -67,14 +68,16 @@ Description:
The return value is a decimal integer representing the device's The return value is a decimal integer representing the device's
status bitmap: status bitmap:
Bit [0] – Set if the device is present. =========== ==================================================
Bit [1] – Set if the device is enabled and decoding its Bit [0] Set if the device is present.
resources. Bit [1] Set if the device is enabled and decoding its
Bit [2] – Set if the device should be shown in the UI. resources.
Bit [3] – Set if the device is functioning properly (cleared if Bit [2] Set if the device should be shown in the UI.
device failed its diagnostics). Bit [3] Set if the device is functioning properly (cleared
Bit [4] – Set if the battery is present. if device failed its diagnostics).
Bits [31:5] – Reserved (must be cleared) Bit [4] Set if the battery is present.
Bits [31:5] Reserved (must be cleared)
=========== ==================================================
If bit [0] is clear, then bit 1 must also be clear (a device If bit [0] is clear, then bit 1 must also be clear (a device
that is not present cannot be enabled). that is not present cannot be enabled).
......
...@@ -8,50 +8,50 @@ What: /sys/bus/coresight/devices/<cti-name>/powered ...@@ -8,50 +8,50 @@ What: /sys/bus/coresight/devices/<cti-name>/powered
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) Indicate if the CTI hardware is powered. Description: (Read) Indicate if the CTI hardware is powered.
What: /sys/bus/coresight/devices/<cti-name>/ctmid What: /sys/bus/coresight/devices/<cti-name>/ctmid
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) Display the associated CTM ID Description: (Read) Display the associated CTM ID
What: /sys/bus/coresight/devices/<cti-name>/nr_trigger_cons What: /sys/bus/coresight/devices/<cti-name>/nr_trigger_cons
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) Number of devices connected to triggers on this CTI Description: (Read) Number of devices connected to triggers on this CTI
What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/name What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/name
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) Name of connected device <N> Description: (Read) Name of connected device <N>
What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/in_signals What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/in_signals
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) Input trigger signals from connected device <N> Description: (Read) Input trigger signals from connected device <N>
What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/in_types What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/in_types
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) Functional types for the input trigger signals Description: (Read) Functional types for the input trigger signals
from connected device <N> from connected device <N>
What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/out_signals What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/out_signals
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) Output trigger signals to connected device <N> Description: (Read) Output trigger signals to connected device <N>
What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/out_types What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/out_types
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) Functional types for the output trigger signals Description: (Read) Functional types for the output trigger signals
to connected device <N> to connected device <N>
What: /sys/bus/coresight/devices/<cti-name>/regs/inout_sel What: /sys/bus/coresight/devices/<cti-name>/regs/inout_sel
...@@ -88,7 +88,7 @@ What: /sys/bus/coresight/devices/<cti-name>/regs/intack ...@@ -88,7 +88,7 @@ What: /sys/bus/coresight/devices/<cti-name>/regs/intack
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (W) Write the INTACK register. Description: (Write) Write the INTACK register.
What: /sys/bus/coresight/devices/<cti-name>/regs/appset What: /sys/bus/coresight/devices/<cti-name>/regs/appset
Date: March 2020 Date: March 2020
...@@ -101,99 +101,99 @@ What: /sys/bus/coresight/devices/<cti-name>/regs/appclear ...@@ -101,99 +101,99 @@ What: /sys/bus/coresight/devices/<cti-name>/regs/appclear
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (W) Write APPCLEAR register to deactivate channel. Description: (Write) Write APPCLEAR register to deactivate channel.
What: /sys/bus/coresight/devices/<cti-name>/regs/apppulse What: /sys/bus/coresight/devices/<cti-name>/regs/apppulse
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (W) Write APPPULSE to pulse a channel active for one clock Description: (Write) Write APPPULSE to pulse a channel active for one clock
cycle. cycle.
What: /sys/bus/coresight/devices/<cti-name>/regs/chinstatus What: /sys/bus/coresight/devices/<cti-name>/regs/chinstatus
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) Read current status of channel inputs. Description: (Read) Read current status of channel inputs.
What: /sys/bus/coresight/devices/<cti-name>/regs/choutstatus What: /sys/bus/coresight/devices/<cti-name>/regs/choutstatus
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) read current status of channel outputs. Description: (Read) read current status of channel outputs.
What: /sys/bus/coresight/devices/<cti-name>/regs/triginstatus What: /sys/bus/coresight/devices/<cti-name>/regs/triginstatus
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) read current status of input trigger signals Description: (Read) read current status of input trigger signals
What: /sys/bus/coresight/devices/<cti-name>/regs/trigoutstatus What: /sys/bus/coresight/devices/<cti-name>/regs/trigoutstatus
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) read current status of output trigger signals. Description: (Read) read current status of output trigger signals.
What: /sys/bus/coresight/devices/<cti-name>/channels/trigin_attach What: /sys/bus/coresight/devices/<cti-name>/channels/trigin_attach
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (W) Attach a CTI input trigger to a CTM channel. Description: (Write) Attach a CTI input trigger to a CTM channel.
What: /sys/bus/coresight/devices/<cti-name>/channels/trigin_detach What: /sys/bus/coresight/devices/<cti-name>/channels/trigin_detach
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (W) Detach a CTI input trigger from a CTM channel. Description: (Write) Detach a CTI input trigger from a CTM channel.
What: /sys/bus/coresight/devices/<cti-name>/channels/trigout_attach What: /sys/bus/coresight/devices/<cti-name>/channels/trigout_attach
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (W) Attach a CTI output trigger to a CTM channel. Description: (Write) Attach a CTI output trigger to a CTM channel.
What: /sys/bus/coresight/devices/<cti-name>/channels/trigout_detach What: /sys/bus/coresight/devices/<cti-name>/channels/trigout_detach
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (W) Detach a CTI output trigger from a CTM channel. Description: (Write) Detach a CTI output trigger from a CTM channel.
What: /sys/bus/coresight/devices/<cti-name>/channels/chan_gate_enable What: /sys/bus/coresight/devices/<cti-name>/channels/chan_gate_enable
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (RW) Enable CTIGATE for single channel (W) or list enabled Description: (RW) Enable CTIGATE for single channel (Write) or list enabled
channels through the gate (R). channels through the gate (R).
What: /sys/bus/coresight/devices/<cti-name>/channels/chan_gate_disable What: /sys/bus/coresight/devices/<cti-name>/channels/chan_gate_disable
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (W) Disable CTIGATE for single channel. Description: (Write) Disable CTIGATE for single channel.
What: /sys/bus/coresight/devices/<cti-name>/channels/chan_set What: /sys/bus/coresight/devices/<cti-name>/channels/chan_set
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (W) Activate a single channel. Description: (Write) Activate a single channel.
What: /sys/bus/coresight/devices/<cti-name>/channels/chan_clear What: /sys/bus/coresight/devices/<cti-name>/channels/chan_clear
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (W) Deactivate a single channel. Description: (Write) Deactivate a single channel.
What: /sys/bus/coresight/devices/<cti-name>/channels/chan_pulse What: /sys/bus/coresight/devices/<cti-name>/channels/chan_pulse
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (W) Pulse a single channel - activate for a single clock cycle. Description: (Write) Pulse a single channel - activate for a single clock cycle.
What: /sys/bus/coresight/devices/<cti-name>/channels/trigout_filtered What: /sys/bus/coresight/devices/<cti-name>/channels/trigout_filtered
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) List of output triggers filtered across all connections. Description: (Read) List of output triggers filtered across all connections.
What: /sys/bus/coresight/devices/<cti-name>/channels/trig_filter_enable What: /sys/bus/coresight/devices/<cti-name>/channels/trig_filter_enable
Date: March 2020 Date: March 2020
...@@ -205,13 +205,13 @@ What: /sys/bus/coresight/devices/<cti-name>/channels/chan_inuse ...@@ -205,13 +205,13 @@ What: /sys/bus/coresight/devices/<cti-name>/channels/chan_inuse
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) show channels with at least one attached trigger signal. Description: (Read) show channels with at least one attached trigger signal.
What: /sys/bus/coresight/devices/<cti-name>/channels/chan_free What: /sys/bus/coresight/devices/<cti-name>/channels/chan_free
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) show channels with no attached trigger signals. Description: (Read) show channels with no attached trigger signals.
What: /sys/bus/coresight/devices/<cti-name>/channels/chan_xtrigs_sel What: /sys/bus/coresight/devices/<cti-name>/channels/chan_xtrigs_sel
Date: March 2020 Date: March 2020
...@@ -224,18 +224,18 @@ What: /sys/bus/coresight/devices/<cti-name>/channels/chan_xtrigs_in ...@@ -224,18 +224,18 @@ What: /sys/bus/coresight/devices/<cti-name>/channels/chan_xtrigs_in
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) Read to see input triggers connected to selected view Description: (Read) Read to see input triggers connected to selected view
channel. channel.
What: /sys/bus/coresight/devices/<cti-name>/channels/chan_xtrigs_out What: /sys/bus/coresight/devices/<cti-name>/channels/chan_xtrigs_out
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (R) Read to see output triggers connected to selected view Description: (Read) Read to see output triggers connected to selected view
channel. channel.
What: /sys/bus/coresight/devices/<cti-name>/channels/chan_xtrigs_reset What: /sys/bus/coresight/devices/<cti-name>/channels/chan_xtrigs_reset
Date: March 2020 Date: March 2020
KernelVersion 5.7 KernelVersion 5.7
Contact: Mike Leach or Mathieu Poirier Contact: Mike Leach or Mathieu Poirier
Description: (W) Clear all channel / trigger programming. Description: (Write) Clear all channel / trigger programming.
...@@ -4,7 +4,10 @@ KernelVersion: 3.19 ...@@ -4,7 +4,10 @@ KernelVersion: 3.19
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (RW) Add/remove a sink from a trace path. There can be multiple Description: (RW) Add/remove a sink from a trace path. There can be multiple
source for a single sink. source for a single sink.
ex: echo 1 > /sys/bus/coresight/devices/20010000.etb/enable_sink
ex::
echo 1 > /sys/bus/coresight/devices/20010000.etb/enable_sink
What: /sys/bus/coresight/devices/<memory_map>.etb/trigger_cntr What: /sys/bus/coresight/devices/<memory_map>.etb/trigger_cntr
Date: November 2014 Date: November 2014
...@@ -20,21 +23,21 @@ What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/rdp ...@@ -20,21 +23,21 @@ What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/rdp
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Defines the depth, in words, of the trace RAM in powers of Description: (Read) Defines the depth, in words, of the trace RAM in powers of
2. The value is read directly from HW register RDP, 0x004. 2. The value is read directly from HW register RDP, 0x004.
What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/sts What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/sts
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the ETB status register. The value Description: (Read) Shows the value held by the ETB status register. The value
is read directly from HW register STS, 0x00C. is read directly from HW register STS, 0x00C.
What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/rrp What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/rrp
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the ETB RAM Read Pointer register Description: (Read) Shows the value held by the ETB RAM Read Pointer register
that is used to read entries from the Trace RAM over the APB that is used to read entries from the Trace RAM over the APB
interface. The value is read directly from HW register RRP, interface. The value is read directly from HW register RRP,
0x014. 0x014.
...@@ -43,7 +46,7 @@ What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/rwp ...@@ -43,7 +46,7 @@ What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/rwp
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the ETB RAM Write Pointer register Description: (Read) Shows the value held by the ETB RAM Write Pointer register
that is used to sets the write pointer to write entries from that is used to sets the write pointer to write entries from
the CoreSight bus into the Trace RAM. The value is read directly the CoreSight bus into the Trace RAM. The value is read directly
from HW register RWP, 0x018. from HW register RWP, 0x018.
...@@ -52,21 +55,21 @@ What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/trg ...@@ -52,21 +55,21 @@ What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/trg
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Similar to "trigger_cntr" above except that this value is Description: (Read) Similar to "trigger_cntr" above except that this value is
read directly from HW register TRG, 0x01C. read directly from HW register TRG, 0x01C.
What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/ctl What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/ctl
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the ETB Control register. The value Description: (Read) Shows the value held by the ETB Control register. The value
is read directly from HW register CTL, 0x020. is read directly from HW register CTL, 0x020.
What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/ffsr What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/ffsr
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the ETB Formatter and Flush Status Description: (Read) Shows the value held by the ETB Formatter and Flush Status
register. The value is read directly from HW register FFSR, register. The value is read directly from HW register FFSR,
0x300. 0x300.
...@@ -74,6 +77,6 @@ What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/ffcr ...@@ -74,6 +77,6 @@ What: /sys/bus/coresight/devices/<memory_map>.etb/mgmt/ffcr
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the ETB Formatter and Flush Control Description: (Read) Shows the value held by the ETB Formatter and Flush Control
register. The value is read directly from HW register FFCR, register. The value is read directly from HW register FFCR,
0x304. 0x304.
...@@ -146,28 +146,28 @@ What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/nr_addr_cmp ...@@ -146,28 +146,28 @@ What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/nr_addr_cmp
Date: November 2014 Date: November 2014
KernelVersion: 3.19 KernelVersion: 3.19
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Provides the number of address comparators pairs accessible Description: (Read) Provides the number of address comparators pairs accessible
on a trace unit, as specified by bit 3:0 of register ETMCCR. on a trace unit, as specified by bit 3:0 of register ETMCCR.
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/nr_cntr What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/nr_cntr
Date: November 2014 Date: November 2014
KernelVersion: 3.19 KernelVersion: 3.19
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Provides the number of counters accessible on a trace unit, Description: (Read) Provides the number of counters accessible on a trace unit,
as specified by bit 15:13 of register ETMCCR. as specified by bit 15:13 of register ETMCCR.
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/nr_ctxid_cmp What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/nr_ctxid_cmp
Date: November 2014 Date: November 2014
KernelVersion: 3.19 KernelVersion: 3.19
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Provides the number of context ID comparator available on a Description: (Read) Provides the number of context ID comparator available on a
trace unit, as specified by bit 25:24 of register ETMCCR. trace unit, as specified by bit 25:24 of register ETMCCR.
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/reset What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/reset
Date: November 2014 Date: November 2014
KernelVersion: 3.19 KernelVersion: 3.19
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (W) Cancels all configuration on a trace unit and set it back Description: (Write) Cancels all configuration on a trace unit and set it back
to its boot configuration. to its boot configuration.
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_12_event What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_12_event
...@@ -216,7 +216,7 @@ What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/curr_seq_state ...@@ -216,7 +216,7 @@ What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/curr_seq_state
Date: November 2014 Date: November 2014
KernelVersion: 3.19 KernelVersion: 3.19
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Holds the current state of the sequencer. Description: (Read) Holds the current state of the sequencer.
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/sync_freq What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/sync_freq
Date: November 2014 Date: November 2014
......
...@@ -42,7 +42,7 @@ What: /sys/bus/coresight/devices/<memory_map>.stm/status ...@@ -42,7 +42,7 @@ What: /sys/bus/coresight/devices/<memory_map>.stm/status
Date: April 2016 Date: April 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) List various control and status registers. The specific Description: (Read) List various control and status registers. The specific
layout and content is driver specific. layout and content is driver specific.
What: /sys/bus/coresight/devices/<memory_map>.stm/traceid What: /sys/bus/coresight/devices/<memory_map>.stm/traceid
......
...@@ -11,21 +11,21 @@ What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rsz ...@@ -11,21 +11,21 @@ What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rsz
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Defines the size, in 32-bit words, of the local RAM buffer. Description: (Read) Defines the size, in 32-bit words, of the local RAM buffer.
The value is read directly from HW register RSZ, 0x004. The value is read directly from HW register RSZ, 0x004.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/sts What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/sts
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the TMC status register. The value Description: (Read) Shows the value held by the TMC status register. The value
is read directly from HW register STS, 0x00C. is read directly from HW register STS, 0x00C.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rrp What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rrp
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the TMC RAM Read Pointer register Description: (Read) Shows the value held by the TMC RAM Read Pointer register
that is used to read entries from the Trace RAM over the APB that is used to read entries from the Trace RAM over the APB
interface. The value is read directly from HW register RRP, interface. The value is read directly from HW register RRP,
0x014. 0x014.
...@@ -34,7 +34,7 @@ What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rwp ...@@ -34,7 +34,7 @@ What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rwp
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the TMC RAM Write Pointer register Description: (Read) Shows the value held by the TMC RAM Write Pointer register
that is used to sets the write pointer to write entries from that is used to sets the write pointer to write entries from
the CoreSight bus into the Trace RAM. The value is read directly the CoreSight bus into the Trace RAM. The value is read directly
from HW register RWP, 0x018. from HW register RWP, 0x018.
...@@ -43,21 +43,21 @@ What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/trg ...@@ -43,21 +43,21 @@ What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/trg
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Similar to "trigger_cntr" above except that this value is Description: (Read) Similar to "trigger_cntr" above except that this value is
read directly from HW register TRG, 0x01C. read directly from HW register TRG, 0x01C.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ctl What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ctl
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the TMC Control register. The value Description: (Read) Shows the value held by the TMC Control register. The value
is read directly from HW register CTL, 0x020. is read directly from HW register CTL, 0x020.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ffsr What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ffsr
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the TMC Formatter and Flush Status Description: (Read) Shows the value held by the TMC Formatter and Flush Status
register. The value is read directly from HW register FFSR, register. The value is read directly from HW register FFSR,
0x300. 0x300.
...@@ -65,7 +65,7 @@ What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ffcr ...@@ -65,7 +65,7 @@ What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ffcr
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the TMC Formatter and Flush Control Description: (Read) Shows the value held by the TMC Formatter and Flush Control
register. The value is read directly from HW register FFCR, register. The value is read directly from HW register FFCR,
0x304. 0x304.
...@@ -73,7 +73,7 @@ What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/mode ...@@ -73,7 +73,7 @@ What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/mode
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Shows the value held by the TMC Mode register, which Description: (Read) Shows the value held by the TMC Mode register, which
indicate the mode the device has been configured to enact. The indicate the mode the device has been configured to enact. The
The value is read directly from the MODE register, 0x028. The value is read directly from the MODE register, 0x028.
...@@ -81,7 +81,7 @@ What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/devid ...@@ -81,7 +81,7 @@ What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/devid
Date: March 2016 Date: March 2016
KernelVersion: 4.7 KernelVersion: 4.7
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (R) Indicates the capabilities of the Coresight TMC. Description: (Read) Indicates the capabilities of the Coresight TMC.
The value is read directly from the DEVID register, 0xFC8, The value is read directly from the DEVID register, 0xFC8,
What: /sys/bus/coresight/devices/<memory_map>.tmc/buffer_size What: /sys/bus/coresight/devices/<memory_map>.tmc/buffer_size
......
...@@ -20,6 +20,7 @@ Contact: Cornelia Huck <cornelia.huck@de.ibm.com> ...@@ -20,6 +20,7 @@ Contact: Cornelia Huck <cornelia.huck@de.ibm.com>
Description: Contains the ids of the channel paths used by this Description: Contains the ids of the channel paths used by this
subchannel, as reported by the channel subsystem subchannel, as reported by the channel subsystem
during subchannel recognition. during subchannel recognition.
Note: This is an I/O-subchannel specific attribute. Note: This is an I/O-subchannel specific attribute.
Users: s390-tools, HAL Users: s390-tools, HAL
...@@ -31,6 +32,7 @@ Description: Contains the PIM/PAM/POM values, as reported by the ...@@ -31,6 +32,7 @@ Description: Contains the PIM/PAM/POM values, as reported by the
channel subsystem when last queried by the common I/O channel subsystem when last queried by the common I/O
layer (this implies that this attribute is not necessarily layer (this implies that this attribute is not necessarily
in sync with the values current in the channel subsystem). in sync with the values current in the channel subsystem).
Note: This is an I/O-subchannel specific attribute. Note: This is an I/O-subchannel specific attribute.
Users: s390-tools, HAL Users: s390-tools, HAL
...@@ -53,6 +55,7 @@ Description: This file allows the driver for a device to be specified. When ...@@ -53,6 +55,7 @@ Description: This file allows the driver for a device to be specified. When
opt-out of driver binding using a driver_override name such as opt-out of driver binding using a driver_override name such as
"none". Only a single driver may be specified in the override, "none". Only a single driver may be specified in the override,
there is no support for parsing delimiters. there is no support for parsing delimiters.
Note that unlike the mechanism of the same name for pci, this Note that unlike the mechanism of the same name for pci, this
file does not allow to override basic matching rules. I.e., file does not allow to override basic matching rules. I.e.,
the driver must still match the subchannel type of the device. the driver must still match the subchannel type of the device.
...@@ -4,6 +4,7 @@ KernelVersion: 5.10 ...@@ -4,6 +4,7 @@ KernelVersion: 5.10
Contact: Xu Yilun <yilun.xu@intel.com> Contact: Xu Yilun <yilun.xu@intel.com>
Description: Read-only. It returns type of DFL FIU of the device. Now DFL Description: Read-only. It returns type of DFL FIU of the device. Now DFL
supports 2 FIU types, 0 for FME, 1 for PORT. supports 2 FIU types, 0 for FME, 1 for PORT.
Format: 0x%x Format: 0x%x
What: /sys/bus/dfl/devices/dfl_dev.X/feature_id What: /sys/bus/dfl/devices/dfl_dev.X/feature_id
...@@ -12,4 +13,5 @@ KernelVersion: 5.10 ...@@ -12,4 +13,5 @@ KernelVersion: 5.10
Contact: Xu Yilun <yilun.xu@intel.com> Contact: Xu Yilun <yilun.xu@intel.com>
Description: Read-only. It returns feature identifier local to its DFL FIU Description: Read-only. It returns feature identifier local to its DFL FIU
type. type.
Format: 0x%x Format: 0x%x
...@@ -8,13 +8,13 @@ Description: Read-only. Attribute group to describe the magic bits ...@@ -8,13 +8,13 @@ Description: Read-only. Attribute group to describe the magic bits
Each attribute under this group defines a bit range of the Each attribute under this group defines a bit range of the
perf_event_attr.config. All supported attributes are listed perf_event_attr.config. All supported attributes are listed
below. below::
event = "config:0-11" - event ID event = "config:0-11" - event ID
evtype = "config:12-15" - event type evtype = "config:12-15" - event type
portid = "config:16-23" - event source portid = "config:16-23" - event source
For example, For example::
fab_mmio_read = "event=0x06,evtype=0x02,portid=0xff" fab_mmio_read = "event=0x06,evtype=0x02,portid=0xff"
...@@ -40,11 +40,11 @@ Description: Read-only. Attribute group to describe performance monitoring ...@@ -40,11 +40,11 @@ Description: Read-only. Attribute group to describe performance monitoring
All supported performance monitoring events are listed below. All supported performance monitoring events are listed below.
Basic events (evtype=0x00) Basic events (evtype=0x00)::
clock = "event=0x00,evtype=0x00,portid=0xff" clock = "event=0x00,evtype=0x00,portid=0xff"
Cache events (evtype=0x01) Cache events (evtype=0x01)::
cache_read_hit = "event=0x00,evtype=0x01,portid=0xff" cache_read_hit = "event=0x00,evtype=0x01,portid=0xff"
cache_read_miss = "event=0x01,evtype=0x01,portid=0xff" cache_read_miss = "event=0x01,evtype=0x01,portid=0xff"
...@@ -59,7 +59,7 @@ Description: Read-only. Attribute group to describe performance monitoring ...@@ -59,7 +59,7 @@ Description: Read-only. Attribute group to describe performance monitoring
cache_rx_req_stall = "event=0x09,evtype=0x01,portid=0xff" cache_rx_req_stall = "event=0x09,evtype=0x01,portid=0xff"
cache_eviction = "event=0x0a,evtype=0x01,portid=0xff" cache_eviction = "event=0x0a,evtype=0x01,portid=0xff"
Fabric events (evtype=0x02) Fabric events (evtype=0x02)::
fab_pcie0_read = "event=0x00,evtype=0x02,portid=0xff" fab_pcie0_read = "event=0x00,evtype=0x02,portid=0xff"
fab_pcie0_write = "event=0x01,evtype=0x02,portid=0xff" fab_pcie0_write = "event=0x01,evtype=0x02,portid=0xff"
...@@ -78,7 +78,7 @@ Description: Read-only. Attribute group to describe performance monitoring ...@@ -78,7 +78,7 @@ Description: Read-only. Attribute group to describe performance monitoring
fab_port_mmio_read = "event=0x06,evtype=0x02,portid=?" fab_port_mmio_read = "event=0x06,evtype=0x02,portid=?"
fab_port_mmio_write = "event=0x07,evtype=0x02,portid=?" fab_port_mmio_write = "event=0x07,evtype=0x02,portid=?"
VTD events (evtype=0x03) VTD events (evtype=0x03)::
vtd_port_read_transaction = "event=0x00,evtype=0x03,portid=?" vtd_port_read_transaction = "event=0x00,evtype=0x03,portid=?"
vtd_port_write_transaction = "event=0x01,evtype=0x03,portid=?" vtd_port_write_transaction = "event=0x01,evtype=0x03,portid=?"
...@@ -88,7 +88,7 @@ Description: Read-only. Attribute group to describe performance monitoring ...@@ -88,7 +88,7 @@ Description: Read-only. Attribute group to describe performance monitoring
vtd_port_devtlb_2m_fill = "event=0x05,evtype=0x03,portid=?" vtd_port_devtlb_2m_fill = "event=0x05,evtype=0x03,portid=?"
vtd_port_devtlb_1g_fill = "event=0x06,evtype=0x03,portid=?" vtd_port_devtlb_1g_fill = "event=0x06,evtype=0x03,portid=?"
VTD SIP events (evtype=0x04) VTD SIP events (evtype=0x04)::
vtd_sip_iotlb_4k_hit = "event=0x00,evtype=0x04,portid=0xff" vtd_sip_iotlb_4k_hit = "event=0x00,evtype=0x04,portid=0xff"
vtd_sip_iotlb_2m_hit = "event=0x01,evtype=0x04,portid=0xff" vtd_sip_iotlb_2m_hit = "event=0x01,evtype=0x04,portid=0xff"
......
...@@ -10,7 +10,8 @@ Description: ...@@ -10,7 +10,8 @@ Description:
name/value pairs. name/value pairs.
Userspace must be prepared for the possibility that attributes Userspace must be prepared for the possibility that attributes
define overlapping bit ranges. For example: define overlapping bit ranges. For example::
attr1 = 'config:0-23' attr1 = 'config:0-23'
attr2 = 'config:0-7' attr2 = 'config:0-7'
attr3 = 'config:12-35' attr3 = 'config:12-35'
......
...@@ -7,7 +7,7 @@ Description: Read-only. Attribute group to describe the magic bits ...@@ -7,7 +7,7 @@ Description: Read-only. Attribute group to describe the magic bits
Each attribute under this group defines a bit range of the Each attribute under this group defines a bit range of the
perf_event_attr.config. All supported attributes are listed perf_event_attr.config. All supported attributes are listed
below. below::
chip = "config:16-31" chip = "config:16-31"
core = "config:16-31" core = "config:16-31"
...@@ -16,9 +16,9 @@ Description: Read-only. Attribute group to describe the magic bits ...@@ -16,9 +16,9 @@ Description: Read-only. Attribute group to describe the magic bits
offset = "config:32-63" offset = "config:32-63"
vcpu = "config:16-31" vcpu = "config:16-31"
For example, For example::
PM_PB_CYC = "domain=1,offset=0x80,chip=?,lpar=0x0" PM_PB_CYC = "domain=1,offset=0x80,chip=?,lpar=0x0"
In this event, '?' after chip specifies that In this event, '?' after chip specifies that
this value will be provided by user while running this event. this value will be provided by user while running this event.
......
...@@ -7,7 +7,7 @@ Description: Read-only. Attribute group to describe the magic bits ...@@ -7,7 +7,7 @@ Description: Read-only. Attribute group to describe the magic bits
Each attribute under this group defines a bit range of the Each attribute under this group defines a bit range of the
perf_event_attr.config. All supported attributes are listed perf_event_attr.config. All supported attributes are listed
below. below::
counter_info_version = "config:16-23" counter_info_version = "config:16-23"
length = "config:24-31" length = "config:24-31"
...@@ -20,9 +20,9 @@ Description: Read-only. Attribute group to describe the magic bits ...@@ -20,9 +20,9 @@ Description: Read-only. Attribute group to describe the magic bits
secondary_index = "config:0-15" secondary_index = "config:0-15"
starting_index = "config:32-63" starting_index = "config:32-63"
For example, For example::
processor_core_utilization_instructions_completed = "request=0x94, processor_core_utilization_instructions_completed = "request=0x94,
phys_processor_idx=?,counter_info_version=0x8, phys_processor_idx=?,counter_info_version=0x8,
length=8,offset=0x18" length=8,offset=0x18"
...@@ -36,6 +36,7 @@ Description: ...@@ -36,6 +36,7 @@ Description:
'0' if the hypervisor is configured to forbid access to event '0' if the hypervisor is configured to forbid access to event
counters being accumulated by other guests and to physical counters being accumulated by other guests and to physical
domain event counters. domain event counters.
'1' if that access is allowed. '1' if that access is allowed.
What: /sys/bus/event_source/devices/hv_gpci/interface/ga What: /sys/bus/event_source/devices/hv_gpci/interface/ga
......
...@@ -3,16 +3,19 @@ Date: August 2012 ...@@ -3,16 +3,19 @@ Date: August 2012
KernelVersion: TBD KernelVersion: TBD
Contact: Robert Love <robert.w.love@intel.com>, devel@open-fcoe.org Contact: Robert Love <robert.w.love@intel.com>, devel@open-fcoe.org
Description: The FCoE bus. Attributes in this directory are control interfaces. Description: The FCoE bus. Attributes in this directory are control interfaces.
Attributes: Attributes:
ctlr_create: 'FCoE Controller' instance creation interface. Writing an ctlr_create:
'FCoE Controller' instance creation interface. Writing an
<ifname> to this file will allocate and populate sysfs with a <ifname> to this file will allocate and populate sysfs with a
fcoe_ctlr_device (ctlr_X). The user can then configure any fcoe_ctlr_device (ctlr_X). The user can then configure any
per-port settings and finally write to the fcoe_ctlr_device's per-port settings and finally write to the fcoe_ctlr_device's
'start' attribute to begin the kernel's discovery and login 'start' attribute to begin the kernel's discovery and login
process. process.
ctlr_destroy: 'FCoE Controller' instance removal interface. Writing a ctlr_destroy:
'FCoE Controller' instance removal interface. Writing a
fcoe_ctlr_device's sysfs name to this file will log the fcoe_ctlr_device's sysfs name to this file will log the
fcoe_ctlr_device out of the fabric or otherwise connected fcoe_ctlr_device out of the fabric or otherwise connected
FCoE devices. It will also free all kernel memory allocated FCoE devices. It will also free all kernel memory allocated
...@@ -32,11 +35,13 @@ Description: 'FCoE Controller' instances on the fcoe bus. ...@@ -32,11 +35,13 @@ Description: 'FCoE Controller' instances on the fcoe bus.
Attributes: Attributes:
fcf_dev_loss_tmo: Device loss timeout period (see below). Changing fcf_dev_loss_tmo:
Device loss timeout period (see below). Changing
this value will change the dev_loss_tmo for all this value will change the dev_loss_tmo for all
FCFs discovered by this controller. FCFs discovered by this controller.
mode: Display or change the FCoE Controller's mode. Possible mode:
Display or change the FCoE Controller's mode. Possible
modes are 'Fabric' and 'VN2VN'. If a FCoE Controller modes are 'Fabric' and 'VN2VN'. If a FCoE Controller
is started in 'Fabric' mode then FIP FCF discovery is is started in 'Fabric' mode then FIP FCF discovery is
initiated and ultimately a fabric login is attempted. initiated and ultimately a fabric login is attempted.
...@@ -44,23 +49,30 @@ Attributes: ...@@ -44,23 +49,30 @@ Attributes:
FIP VN2VN discovery and login is performed. A FCoE FIP VN2VN discovery and login is performed. A FCoE
Controller only supports one mode at a time. Controller only supports one mode at a time.
enabled: Whether an FCoE controller is enabled or disabled. enabled:
Whether an FCoE controller is enabled or disabled.
0 if disabled, 1 if enabled. Writing either 0 or 1 0 if disabled, 1 if enabled. Writing either 0 or 1
to this file will enable or disable the FCoE controller. to this file will enable or disable the FCoE controller.
lesb/link_fail: Link Error Status Block (LESB) link failure count. lesb/link_fail:
Link Error Status Block (LESB) link failure count.
lesb/vlink_fail: Link Error Status Block (LESB) virtual link lesb/vlink_fail:
Link Error Status Block (LESB) virtual link
failure count. failure count.
lesb/miss_fka: Link Error Status Block (LESB) missed FCoE lesb/miss_fka:
Link Error Status Block (LESB) missed FCoE
Initialization Protocol (FIP) Keep-Alives (FKA). Initialization Protocol (FIP) Keep-Alives (FKA).
lesb/symb_err: Link Error Status Block (LESB) symbolic error count. lesb/symb_err:
Link Error Status Block (LESB) symbolic error count.
lesb/err_block: Link Error Status Block (LESB) block error count. lesb/err_block:
Link Error Status Block (LESB) block error count.
lesb/fcs_error: Link Error Status Block (LESB) Fibre Channel lesb/fcs_error:
Link Error Status Block (LESB) Fibre Channel
Services error count. Services error count.
Notes: ctlr_X (global increment starting at 0) Notes: ctlr_X (global increment starting at 0)
...@@ -75,31 +87,41 @@ Description: 'FCoE FCF' instances on the fcoe bus. A FCF is a Fibre Channel ...@@ -75,31 +87,41 @@ Description: 'FCoE FCF' instances on the fcoe bus. A FCF is a Fibre Channel
Fibre Channel frames into a FC fabric. It can also take Fibre Channel frames into a FC fabric. It can also take
outbound FC frames and pack them in Ethernet packets to outbound FC frames and pack them in Ethernet packets to
be sent to their destination on the Ethernet segment. be sent to their destination on the Ethernet segment.
Attributes: Attributes:
fabric_name: Identifies the fabric that the FCF services. fabric_name:
Identifies the fabric that the FCF services.
switch_name: Identifies the FCF. switch_name:
Identifies the FCF.
priority: The switch's priority amongst other FCFs on the same priority:
The switch's priority amongst other FCFs on the same
fabric. fabric.
selected: 1 indicates that the switch has been selected for use; selected:
1 indicates that the switch has been selected for use;
0 indicates that the switch will not be used. 0 indicates that the switch will not be used.
fc_map: The Fibre Channel MAP fc_map:
The Fibre Channel MAP
vfid: The Virtual Fabric ID vfid:
The Virtual Fabric ID
mac: The FCF's MAC address mac:
The FCF's MAC address
fka_period: The FIP Keep-Alive period fka_period:
The FIP Keep-Alive period
fabric_state: The internal kernel state fabric_state: The internal kernel state
"Unknown" - Initialization value
"Disconnected" - No link to the FCF/fabric - "Unknown" - Initialization value
"Connected" - Host is connected to the FCF - "Disconnected" - No link to the FCF/fabric
"Deleted" - FCF is being removed from the system - "Connected" - Host is connected to the FCF
- "Deleted" - FCF is being removed from the system
dev_loss_tmo: The device loss timeout period for this FCF. dev_loss_tmo: The device loss timeout period for this FCF.
......
...@@ -6,8 +6,10 @@ Description: ...@@ -6,8 +6,10 @@ Description:
the driver to attempt to bind to the device found at the driver to attempt to bind to the device found at
this location. The format for the location is Object.Id this location. The format for the location is Object.Id
and is the same as found in /sys/bus/fsl-mc/devices/. and is the same as found in /sys/bus/fsl-mc/devices/.
For example:
# echo dpni.2 > /sys/bus/fsl-mc/drivers/fsl_dpaa2_eth/bind For example::
# echo dpni.2 > /sys/bus/fsl-mc/drivers/fsl_dpaa2_eth/bind
What: /sys/bus/fsl-mc/drivers/.../unbind What: /sys/bus/fsl-mc/drivers/.../unbind
Date: December 2016 Date: December 2016
...@@ -17,5 +19,7 @@ Description: ...@@ -17,5 +19,7 @@ Description:
driver to attempt to unbind from the device found at driver to attempt to unbind from the device found at
this location. The format for the location is Object.Id this location. The format for the location is Object.Id
and is the same as found in /sys/bus/fsl-mc/devices/. and is the same as found in /sys/bus/fsl-mc/devices/.
For example:
# echo dpni.2 > /sys/bus/fsl-mc/drivers/fsl_dpaa2_eth/unbind For example::
# echo dpni.2 > /sys/bus/fsl-mc/drivers/fsl_dpaa2_eth/unbind
...@@ -3,19 +3,25 @@ Date: February 2011 ...@@ -3,19 +3,25 @@ Date: February 2011
Contact: Minkyu Kang <mk7.kang@samsung.com> Contact: Minkyu Kang <mk7.kang@samsung.com>
Description: Description:
show what device is attached show what device is attached
NONE - no device
USB - USB device is attached ======= ======================
UART - UART is attached NONE no device
CHARGER - Charger is attaced USB USB device is attached
JIG - JIG is attached UART UART is attached
CHARGER Charger is attaced
JIG JIG is attached
======= ======================
What: /sys/bus/i2c/devices/.../switch What: /sys/bus/i2c/devices/.../switch
Date: February 2011 Date: February 2011
Contact: Minkyu Kang <mk7.kang@samsung.com> Contact: Minkyu Kang <mk7.kang@samsung.com>
Description: Description:
show or set the state of manual switch show or set the state of manual switch
VAUDIO - switch to VAUDIO path
UART - switch to UART path ======= ==============================
AUDIO - switch to AUDIO path VAUDIO switch to VAUDIO path
DHOST - switch to DHOST path UART switch to UART path
AUTO - switch automatically by device AUDIO switch to AUDIO path
DHOST switch to DHOST path
AUTO switch automatically by device
======= ==============================
...@@ -6,15 +6,18 @@ Description: ...@@ -6,15 +6,18 @@ Description:
Value that exists only for mux devices that can be Value that exists only for mux devices that can be
written to control the behaviour of the multiplexer on written to control the behaviour of the multiplexer on
idle. Possible values: idle. Possible values:
-2 - disconnect on idle, i.e. deselect the last used
channel, which is useful when there is a device =========== ===============================================
with an address that conflicts with another -2 disconnect on idle, i.e. deselect the last used
device on another mux on the same parent bus. channel, which is useful when there is a device
-1 - leave the mux as-is, which is the most optimal with an address that conflicts with another
setting in terms of I2C operations and is the device on another mux on the same parent bus.
default mode. -1 leave the mux as-is, which is the most optimal
0..<nchans> - set the mux to a predetermined channel, setting in terms of I2C operations and is the
which is useful if there is one channel that is default mode.
used almost always, and you want to reduce the 0..<nchans> set the mux to a predetermined channel,
latency for normal operations after rare which is useful if there is one channel that is
transactions on other channels used almost always, and you want to reduce the
latency for normal operations after rare
transactions on other channels
=========== ===============================================
...@@ -84,6 +84,7 @@ Description: ...@@ -84,6 +84,7 @@ Description:
by space. Modes can be "hdr-ddr", "hdr-tsp" and "hdr-tsl". by space. Modes can be "hdr-ddr", "hdr-tsp" and "hdr-tsl".
See the I3C specification for more details about these HDR See the I3C specification for more details about these HDR
modes. modes.
This entry describes the HDRCAP of the master controller This entry describes the HDRCAP of the master controller
driving the bus. driving the bus.
...@@ -135,6 +136,7 @@ Description: ...@@ -135,6 +136,7 @@ Description:
Expose the HDR (High Data Rate) capabilities of a device. Expose the HDR (High Data Rate) capabilities of a device.
Returns a list of supported HDR mode, each element is separated Returns a list of supported HDR mode, each element is separated
by space. Modes can be "hdr-ddr", "hdr-tsp" and "hdr-tsl". by space. Modes can be "hdr-ddr", "hdr-tsp" and "hdr-tsl".
See the I3C specification for more details about these HDR See the I3C specification for more details about these HDR
modes. modes.
......
...@@ -15,6 +15,7 @@ Description: ...@@ -15,6 +15,7 @@ Description:
based on hardware generated events (e.g. data ready) or based on hardware generated events (e.g. data ready) or
provided by a separate driver for other hardware (e.g. provided by a separate driver for other hardware (e.g.
periodic timer, GPIO or high resolution timer). periodic timer, GPIO or high resolution timer).
Contains trigger type specific elements. These do not Contains trigger type specific elements. These do not
generalize well and hence are not documented in this file. generalize well and hence are not documented in this file.
X is the IIO index of the trigger. X is the IIO index of the trigger.
...@@ -65,6 +66,7 @@ Contact: linux-iio@vger.kernel.org ...@@ -65,6 +66,7 @@ Contact: linux-iio@vger.kernel.org
Description: Description:
When the internal sampling clock can only take a specific set of When the internal sampling clock can only take a specific set of
frequencies, we can specify the available values with: frequencies, we can specify the available values with:
- a small discrete set of values like "0 2 4 6 8" - a small discrete set of values like "0 2 4 6 8"
- a range with minimum, step and maximum frequencies like - a range with minimum, step and maximum frequencies like
"[min step max]" "[min step max]"
...@@ -665,6 +667,7 @@ Description: ...@@ -665,6 +667,7 @@ Description:
<type>[Y][_name]_<raw|input>_thresh_falling_value may take <type>[Y][_name]_<raw|input>_thresh_falling_value may take
different values, but the device can only enable both thresholds different values, but the device can only enable both thresholds
or neither. or neither.
Note the driver will assume the last p events requested are Note the driver will assume the last p events requested are
to be enabled where p is how many it supports (which may vary to be enabled where p is how many it supports (which may vary
depending on the exact set requested. So if you want to be depending on the exact set requested. So if you want to be
...@@ -719,6 +722,7 @@ Description: ...@@ -719,6 +722,7 @@ Description:
<type>[Y][_name]_<raw|input>_roc_falling_value may take <type>[Y][_name]_<raw|input>_roc_falling_value may take
different values, but the device can only enable both rate of different values, but the device can only enable both rate of
change thresholds or neither. change thresholds or neither.
Note the driver will assume the last p events requested are Note the driver will assume the last p events requested are
to be enabled where p is however many it supports (which may to be enabled where p is however many it supports (which may
vary depending on the exact set requested. So if you want to be vary depending on the exact set requested. So if you want to be
...@@ -774,9 +778,11 @@ Description: ...@@ -774,9 +778,11 @@ Description:
Specifies the value of threshold that the device is comparing Specifies the value of threshold that the device is comparing
against for the events enabled by against for the events enabled by
<type>Y[_name]_thresh[_rising|falling]_en. <type>Y[_name]_thresh[_rising|falling]_en.
If separate attributes exist for the two directions, but If separate attributes exist for the two directions, but
direction is not specified for this attribute, then a single direction is not specified for this attribute, then a single
threshold value applies to both directions. threshold value applies to both directions.
The raw or input element of the name indicates whether the The raw or input element of the name indicates whether the
value is in raw device units or in processed units (as _raw value is in raw device units or in processed units (as _raw
and _input do on sysfs direct channel read attributes). and _input do on sysfs direct channel read attributes).
...@@ -859,6 +865,7 @@ Description: ...@@ -859,6 +865,7 @@ Description:
If separate attributes exist for the two directions, but If separate attributes exist for the two directions, but
direction is not specified for this attribute, then a single direction is not specified for this attribute, then a single
hysteresis value applies to both directions. hysteresis value applies to both directions.
For falling events the hysteresis is added to the _value attribute for For falling events the hysteresis is added to the _value attribute for
this event to get the upper threshold for when the event goes back to this event to get the upper threshold for when the event goes back to
normal, for rising events the hysteresis is subtracted from the _value normal, for rising events the hysteresis is subtracted from the _value
...@@ -905,6 +912,7 @@ Description: ...@@ -905,6 +912,7 @@ Description:
Specifies the value of rate of change threshold that the Specifies the value of rate of change threshold that the
device is comparing against for the events enabled by device is comparing against for the events enabled by
<type>[Y][_name]_roc[_rising|falling]_en. <type>[Y][_name]_roc[_rising|falling]_en.
If separate attributes exist for the two directions, If separate attributes exist for the two directions,
but direction is not specified for this attribute, but direction is not specified for this attribute,
then a single threshold value applies to both directions. then a single threshold value applies to both directions.
...@@ -1304,6 +1312,7 @@ Description: ...@@ -1304,6 +1312,7 @@ Description:
Proximity measurement indicating that some Proximity measurement indicating that some
object is near the sensor, usually by observing object is near the sensor, usually by observing
reflectivity of infrared or ultrasound emitted. reflectivity of infrared or ultrasound emitted.
Often these sensors are unit less and as such conversion Often these sensors are unit less and as such conversion
to SI units is not possible. Higher proximity measurements to SI units is not possible. Higher proximity measurements
indicate closer objects, and vice versa. Units after indicate closer objects, and vice versa. Units after
...@@ -1449,9 +1458,12 @@ Contact: linux-iio@vger.kernel.org ...@@ -1449,9 +1458,12 @@ Contact: linux-iio@vger.kernel.org
Description: Description:
A single positive integer specifying the maximum number of scan A single positive integer specifying the maximum number of scan
elements to wait for. elements to wait for.
Poll will block until the watermark is reached. Poll will block until the watermark is reached.
Blocking read will wait until the minimum between the requested Blocking read will wait until the minimum between the requested
read amount or the low water mark is available. read amount or the low water mark is available.
Non-blocking read will retrieve the available samples from the Non-blocking read will retrieve the available samples from the
buffer even if there are less samples then watermark level. This buffer even if there are less samples then watermark level. This
allows the application to block on poll with a timeout and read allows the application to block on poll with a timeout and read
...@@ -1480,11 +1492,13 @@ Description: ...@@ -1480,11 +1492,13 @@ Description:
device settings allows it (e.g. if a trigger is set that samples device settings allows it (e.g. if a trigger is set that samples
data differently that the hardware fifo does then hardware fifo data differently that the hardware fifo does then hardware fifo
will not enabled). will not enabled).
If the hardware fifo is enabled and the level of the hardware If the hardware fifo is enabled and the level of the hardware
fifo reaches the hardware fifo watermark level the device will fifo reaches the hardware fifo watermark level the device will
flush its hardware fifo to the device buffer. Doing a non flush its hardware fifo to the device buffer. Doing a non
blocking read on the device when no samples are present in the blocking read on the device when no samples are present in the
device buffer will also force a flush. device buffer will also force a flush.
When the hardware fifo is enabled there is no need to use a When the hardware fifo is enabled there is no need to use a
trigger to use buffer mode since the watermark settings trigger to use buffer mode since the watermark settings
guarantees that the hardware fifo is flushed to the device guarantees that the hardware fifo is flushed to the device
...@@ -1522,6 +1536,7 @@ Description: ...@@ -1522,6 +1536,7 @@ Description:
A single positive integer specifying the minimum watermark level A single positive integer specifying the minimum watermark level
for the hardware fifo of this device. If the device does not for the hardware fifo of this device. If the device does not
have a hardware fifo this entry is not present. have a hardware fifo this entry is not present.
If the user sets buffer/watermark to a value less than this one, If the user sets buffer/watermark to a value less than this one,
then the hardware watermark will remain unset. then the hardware watermark will remain unset.
...@@ -1532,6 +1547,7 @@ Description: ...@@ -1532,6 +1547,7 @@ Description:
A single positive integer specifying the maximum watermark level A single positive integer specifying the maximum watermark level
for the hardware fifo of this device. If the device does not for the hardware fifo of this device. If the device does not
have a hardware fifo this entry is not present. have a hardware fifo this entry is not present.
If the user sets buffer/watermark to a value greater than this If the user sets buffer/watermark to a value greater than this
one, then the hardware watermark will be capped at this value. one, then the hardware watermark will be capped at this value.
...@@ -1543,6 +1559,7 @@ Description: ...@@ -1543,6 +1559,7 @@ Description:
levels for the hardware fifo. This entry is optional and if it levels for the hardware fifo. This entry is optional and if it
is not present it means that all the values between is not present it means that all the values between
hwfifo_watermark_min and hwfifo_watermark_max are supported. hwfifo_watermark_min and hwfifo_watermark_max are supported.
If the user sets buffer/watermark to a value greater than If the user sets buffer/watermark to a value greater than
hwfifo_watermak_min but not equal to any of the values in this hwfifo_watermak_min but not equal to any of the values in this
list, the driver will chose an appropriate value for the list, the driver will chose an appropriate value for the
...@@ -1604,7 +1621,8 @@ KernelVersion: 4.1.0 ...@@ -1604,7 +1621,8 @@ KernelVersion: 4.1.0
Contact: linux-iio@vger.kernel.org Contact: linux-iio@vger.kernel.org
Description: Description:
'1' (enable) or '0' (disable) specifying the enable '1' (enable) or '0' (disable) specifying the enable
of heater function. Same reading values apply of heater function. Same reading values apply.
This ABI is especially applicable for humidity sensors This ABI is especially applicable for humidity sensors
to heatup the device and get rid of any condensation to heatup the device and get rid of any condensation
in some humidity environment in some humidity environment
...@@ -1627,17 +1645,21 @@ Description: ...@@ -1627,17 +1645,21 @@ Description:
Mounting matrix for IIO sensors. This is a rotation matrix which Mounting matrix for IIO sensors. This is a rotation matrix which
informs userspace about sensor chip's placement relative to the informs userspace about sensor chip's placement relative to the
main hardware it is mounted on. main hardware it is mounted on.
Main hardware placement is defined according to the local Main hardware placement is defined according to the local
reference frame related to the physical quantity the sensor reference frame related to the physical quantity the sensor
measures. measures.
Given that the rotation matrix is defined in a board specific Given that the rotation matrix is defined in a board specific
way (platform data and / or device-tree), the main hardware way (platform data and / or device-tree), the main hardware
reference frame definition is left to the implementor's choice reference frame definition is left to the implementor's choice
(see below for a magnetometer example). (see below for a magnetometer example).
Applications should apply this rotation matrix to samples so Applications should apply this rotation matrix to samples so
that when main hardware reference frame is aligned onto local that when main hardware reference frame is aligned onto local
reference frame, then sensor chip reference frame is also reference frame, then sensor chip reference frame is also
perfectly aligned with it. perfectly aligned with it.
Matrix is a 3x3 unitary matrix and typically looks like Matrix is a 3x3 unitary matrix and typically looks like
[0, 1, 0; 1, 0, 0; 0, 0, -1]. Identity matrix [0, 1, 0; 1, 0, 0; 0, 0, -1]. Identity matrix
[1, 0, 0; 0, 1, 0; 0, 0, 1] means sensor chip and main hardware [1, 0, 0; 0, 1, 0; 0, 0, 1] means sensor chip and main hardware
...@@ -1646,8 +1668,10 @@ Description: ...@@ -1646,8 +1668,10 @@ Description:
For example, a mounting matrix for a magnetometer sensor informs For example, a mounting matrix for a magnetometer sensor informs
userspace about sensor chip's ORIENTATION relative to the main userspace about sensor chip's ORIENTATION relative to the main
hardware. hardware.
More specifically, main hardware orientation is defined with More specifically, main hardware orientation is defined with
respect to the LOCAL EARTH GEOMAGNETIC REFERENCE FRAME where : respect to the LOCAL EARTH GEOMAGNETIC REFERENCE FRAME where :
* Y is in the ground plane and positive towards magnetic North ; * Y is in the ground plane and positive towards magnetic North ;
* X is in the ground plane, perpendicular to the North axis and * X is in the ground plane, perpendicular to the North axis and
positive towards the East ; positive towards the East ;
...@@ -1656,13 +1680,16 @@ Description: ...@@ -1656,13 +1680,16 @@ Description:
An implementor might consider that for a hand-held device, a An implementor might consider that for a hand-held device, a
'natural' orientation would be 'front facing camera at the top'. 'natural' orientation would be 'front facing camera at the top'.
The main hardware reference frame could then be described as : The main hardware reference frame could then be described as :
* Y is in the plane of the screen and is positive towards the * Y is in the plane of the screen and is positive towards the
top of the screen ; top of the screen ;
* X is in the plane of the screen, perpendicular to Y axis, and * X is in the plane of the screen, perpendicular to Y axis, and
positive towards the right hand side of the screen ; positive towards the right hand side of the screen ;
* Z is perpendicular to the screen plane and positive out of the * Z is perpendicular to the screen plane and positive out of the
screen. screen.
Another example for a quadrotor UAV might be : Another example for a quadrotor UAV might be :
* Y is in the plane of the propellers and positive towards the * Y is in the plane of the propellers and positive towards the
front-view camera; front-view camera;
* X is in the plane of the propellers, perpendicular to Y axis, * X is in the plane of the propellers, perpendicular to Y axis,
...@@ -1704,6 +1731,7 @@ Description: ...@@ -1704,6 +1731,7 @@ Description:
This interface is deprecated; please use the Counter subsystem. This interface is deprecated; please use the Counter subsystem.
A list of possible counting directions which are: A list of possible counting directions which are:
- "up" : counter device is increasing. - "up" : counter device is increasing.
- "down": counter device is decreasing. - "down": counter device is decreasing.
......
...@@ -5,7 +5,8 @@ Contact: Peter Rosin <peda@axentia.se> ...@@ -5,7 +5,8 @@ Contact: Peter Rosin <peda@axentia.se>
Description: Description:
The DAC is used to find the peak level of an alternating The DAC is used to find the peak level of an alternating
voltage input signal by a binary search using the output voltage input signal by a binary search using the output
of a comparator wired to an interrupt pin. Like so: of a comparator wired to an interrupt pin. Like so::
_ _
| \ | \
input +------>-------|+ \ input +------>-------|+ \
...@@ -19,10 +20,12 @@ Description: ...@@ -19,10 +20,12 @@ Description:
| irq|------<-------' | irq|------<-------'
| | | |
'-------' '-------'
The boolean invert attribute (0/1) should be set when the The boolean invert attribute (0/1) should be set when the
input signal is centered around the maximum value of the input signal is centered around the maximum value of the
dac instead of zero. The envelope detector will search dac instead of zero. The envelope detector will search
from below in this case and will also invert the result. from below in this case and will also invert the result.
The edge/level of the interrupt is also switched to its The edge/level of the interrupt is also switched to its
opposite value. opposite value.
......
...@@ -19,9 +19,11 @@ Description: ...@@ -19,9 +19,11 @@ Description:
is separately set for "GND-Open" and "Supply-Open" modes. is separately set for "GND-Open" and "Supply-Open" modes.
Channels 0..31 have common low threshold values, but could have different Channels 0..31 have common low threshold values, but could have different
sensing_modes. sensing_modes.
The low voltage threshold range is between 2..21V. The low voltage threshold range is between 2..21V.
Hysteresis between low and high thresholds can not be lower then 2 and Hysteresis between low and high thresholds can not be lower then 2 and
can not be odd. can not be odd.
If falling threshold results hysteresis to odd value then rising If falling threshold results hysteresis to odd value then rising
threshold is automatically subtracted by one. threshold is automatically subtracted by one.
...@@ -34,10 +36,13 @@ Description: ...@@ -34,10 +36,13 @@ Description:
this value then the threshold rising event is pushed. this value then the threshold rising event is pushed.
Depending on in_voltageY_sensing_mode the high voltage threshold Depending on in_voltageY_sensing_mode the high voltage threshold
is separately set for "GND-Open" and "Supply-Open" modes. is separately set for "GND-Open" and "Supply-Open" modes.
Channels 0..31 have common high threshold values, but could have different Channels 0..31 have common high threshold values, but could have different
sensing_modes. sensing_modes.
The high voltage threshold range is between 3..22V. The high voltage threshold range is between 3..22V.
Hysteresis between low and high thresholds can not be lower then 2 and Hysteresis between low and high thresholds can not be lower then 2 and
can not be odd. can not be odd.
If rising threshold results hysteresis to odd value then falling If rising threshold results hysteresis to odd value then falling
threshold is automatically appended by one. threshold is automatically appended by one.
...@@ -5,10 +5,13 @@ Description: ...@@ -5,10 +5,13 @@ Description:
The STM32 ADC can be configured to use external trigger sources The STM32 ADC can be configured to use external trigger sources
(e.g. timers, pwm or exti gpio). Then, it can be tuned to start (e.g. timers, pwm or exti gpio). Then, it can be tuned to start
conversions on external trigger by either: conversions on external trigger by either:
- "rising-edge" - "rising-edge"
- "falling-edge" - "falling-edge"
- "both-edges". - "both-edges".
Reading returns current trigger polarity. Reading returns current trigger polarity.
Writing value before enabling conversions sets trigger polarity. Writing value before enabling conversions sets trigger polarity.
What: /sys/bus/iio/devices/triggerX/trigger_polarity_available What: /sys/bus/iio/devices/triggerX/trigger_polarity_available
......
...@@ -4,7 +4,7 @@ KernelVersion: 4.7 ...@@ -4,7 +4,7 @@ KernelVersion: 4.7
Contact: linux-iio@vger.kernel.org Contact: linux-iio@vger.kernel.org
Description: Description:
Writing '1' will perform a FOC (Fast Online Calibration). The Writing '1' will perform a FOC (Fast Online Calibration). The
corresponding calibration offsets can be read from *_calibbias corresponding calibration offsets can be read from `*_calibbias`
entries. entries.
What: /sys/bus/iio/devices/iio:deviceX/location What: /sys/bus/iio/devices/iio:deviceX/location
......
...@@ -3,14 +3,20 @@ KernelVersion: 4.14 ...@@ -3,14 +3,20 @@ KernelVersion: 4.14
Contact: arnaud.pouliquen@st.com Contact: arnaud.pouliquen@st.com
Description: Description:
For audio purpose only. For audio purpose only.
Used by audio driver to set/get the spi input frequency. Used by audio driver to set/get the spi input frequency.
This is mandatory if DFSDM is slave on SPI bus, to This is mandatory if DFSDM is slave on SPI bus, to
provide information on the SPI clock frequency during runtime provide information on the SPI clock frequency during runtime
Notice that the SPI frequency should be a multiple of sample Notice that the SPI frequency should be a multiple of sample
frequency to ensure the precision. frequency to ensure the precision.
if DFSDM input is SPI master
if DFSDM input is SPI master:
Reading SPI clkout frequency, Reading SPI clkout frequency,
error on writing error on writing
If DFSDM input is SPI Slave: If DFSDM input is SPI Slave:
Reading returns value previously set. Reading returns value previously set.
Writing value before starting conversions. Writing value before starting conversions.
...@@ -15,8 +15,11 @@ Description: ...@@ -15,8 +15,11 @@ Description:
first object echoed in meters. Default value is 6.020. first object echoed in meters. Default value is 6.020.
This setting limits the time the driver is waiting for a This setting limits the time the driver is waiting for a
echo. echo.
Showing the range of available values is represented as the Showing the range of available values is represented as the
minimum value, the step and the maximum value, all enclosed minimum value, the step and the maximum value, all enclosed
in square brackets. in square brackets.
Example:
[0.043 0.043 11.008] Example::
[0.043 0.043 11.008]
...@@ -8,7 +8,9 @@ KernelVersion: 3.4.0 ...@@ -8,7 +8,9 @@ KernelVersion: 3.4.0
Contact: linux-iio@vger.kernel.org Contact: linux-iio@vger.kernel.org
Description: Description:
Reading returns either '1' or '0'. Reading returns either '1' or '0'.
'1' means that the clock in question is present. '1' means that the clock in question is present.
'0' means that the clock is missing. '0' means that the clock is missing.
What: /sys/bus/iio/devices/iio:deviceX/pllY_locked What: /sys/bus/iio/devices/iio:deviceX/pllY_locked
......
...@@ -27,12 +27,12 @@ What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_name ...@@ -27,12 +27,12 @@ What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_name
KernelVersion: KernelVersion:
Contact: linux-iio@vger.kernel.org Contact: linux-iio@vger.kernel.org
Description: Description:
Reading returns the datasheet name for channel Y: Reading returns the datasheet name for channel Y::
out_altvoltage0_name: RF8x out_altvoltage0_name: RF8x
out_altvoltage1_name: RFAUX8x out_altvoltage1_name: RFAUX8x
out_altvoltage2_name: RF16x out_altvoltage2_name: RF16x
out_altvoltage3_name: RF32x out_altvoltage3_name: RF32x
What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_powerdown What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_powerdown
KernelVersion: KernelVersion:
......
...@@ -6,10 +6,14 @@ Description: ...@@ -6,10 +6,14 @@ Description:
Get measured values from the ADC for these stages. Y is the Get measured values from the ADC for these stages. Y is the
specific stage number corresponding to datasheet stage names specific stage number corresponding to datasheet stage names
as follows: as follows:
1 -> LED2
2 -> ALED2/LED3 == ==========
3 -> LED1 1 LED2
4 -> ALED1/LED4 2 ALED2/LED3
3 LED1
4 ALED1/LED4
== ==========
Note that channels 5 and 6 represent LED2-ALED2 and LED1-ALED1 Note that channels 5 and 6 represent LED2-ALED2 and LED1-ALED1
respectively which simply helper channels containing the respectively which simply helper channels containing the
calculated difference in the value of stage 1 - 2 and 3 - 4. calculated difference in the value of stage 1 - 2 and 3 - 4.
......
...@@ -15,5 +15,7 @@ Description: ...@@ -15,5 +15,7 @@ Description:
Scheme 0 has wider dynamic range, Scheme 1 proximity detection Scheme 0 has wider dynamic range, Scheme 1 proximity detection
is less affected by the ambient IR noise variation. is less affected by the ambient IR noise variation.
0 Sensing IR from LED and ambient == =============================================
1 Sensing IR from LED with ambient IR rejection 0 Sensing IR from LED and ambient
1 Sensing IR from LED with ambient IR rejection
== =============================================
...@@ -17,9 +17,11 @@ KernelVersion: 4.13 ...@@ -17,9 +17,11 @@ KernelVersion: 4.13
Contact: fabrice.gasnier@st.com Contact: fabrice.gasnier@st.com
Description: Description:
Configure the device counter quadrature modes: Configure the device counter quadrature modes:
- non-quadrature: - non-quadrature:
Encoder IN1 input servers as the count input (up Encoder IN1 input servers as the count input (up
direction). direction).
- quadrature: - quadrature:
Encoder IN1 and IN2 inputs are mixed to get direction Encoder IN1 and IN2 inputs are mixed to get direction
and count. and count.
...@@ -35,23 +37,26 @@ KernelVersion: 4.13 ...@@ -35,23 +37,26 @@ KernelVersion: 4.13
Contact: fabrice.gasnier@st.com Contact: fabrice.gasnier@st.com
Description: Description:
Configure the device encoder/counter active edge: Configure the device encoder/counter active edge:
- rising-edge - rising-edge
- falling-edge - falling-edge
- both-edges - both-edges
In non-quadrature mode, device counts up on active edge. In non-quadrature mode, device counts up on active edge.
In quadrature mode, encoder counting scenarios are as follows: In quadrature mode, encoder counting scenarios are as follows:
----------------------------------------------------------------
+---------+----------+--------------------+--------------------+
| Active | Level on | IN1 signal | IN2 signal | | Active | Level on | IN1 signal | IN2 signal |
| edge | opposite |------------------------------------------ | edge | opposite +----------+---------+----------+---------+
| | signal | Rising | Falling | Rising | Falling | | | signal | Rising | Falling | Rising | Falling |
---------------------------------------------------------------- +---------+----------+----------+---------+----------+---------+
| Rising | High -> | Down | - | Up | - | | Rising | High -> | Down | - | Up | - |
| edge | Low -> | Up | - | Down | - | | edge | Low -> | Up | - | Down | - |
---------------------------------------------------------------- +---------+----------+----------+---------+----------+---------+
| Falling | High -> | - | Up | - | Down | | Falling | High -> | - | Up | - | Down |
| edge | Low -> | - | Down | - | Up | | edge | Low -> | - | Down | - | Up |
---------------------------------------------------------------- +---------+----------+----------+---------+----------+---------+
| Both | High -> | Down | Up | Up | Down | | Both | High -> | Down | Up | Up | Down |
| edges | Low -> | Up | Down | Down | Up | | edges | Low -> | Up | Down | Down | Up |
---------------------------------------------------------------- +---------+----------+----------+---------+----------+---------+
...@@ -5,11 +5,16 @@ Contact: linux-iio@vger.kernel.org ...@@ -5,11 +5,16 @@ Contact: linux-iio@vger.kernel.org
Description: Description:
Current configuration and available configurations Current configuration and available configurations
for the bias current. for the bias current.
normal - Normal measurement configurations (default)
positivebias - Positive bias configuration ============ ============================================
negativebias - Negative bias configuration normal Normal measurement configurations (default)
disabled - Only available on HMC5983. Disables magnetic positivebias Positive bias configuration
negativebias Negative bias configuration
disabled Only available on HMC5983. Disables magnetic
sensor and enables temperature sensor. sensor and enables temperature sensor.
Note: The effect of this configuration may vary ============ ============================================
according to the device. For exact documentation
check the device's datasheet. Note:
The effect of this configuration may vary
according to the device. For exact documentation
check the device's datasheet.
...@@ -5,9 +5,12 @@ Description: ...@@ -5,9 +5,12 @@ Description:
Open-circuit fault. The detection of open-circuit faults, Open-circuit fault. The detection of open-circuit faults,
such as those caused by broken thermocouple wires. such as those caused by broken thermocouple wires.
Reading returns either '1' or '0'. Reading returns either '1' or '0'.
'1' = An open circuit such as broken thermocouple wires
has been detected. === =======================================================
'0' = No open circuit or broken thermocouple wires are detected '1' An open circuit such as broken thermocouple wires
has been detected.
'0' No open circuit or broken thermocouple wires are detected
=== =======================================================
What: /sys/bus/iio/devices/iio:deviceX/fault_ovuv What: /sys/bus/iio/devices/iio:deviceX/fault_ovuv
KernelVersion: 5.1 KernelVersion: 5.1
...@@ -18,7 +21,11 @@ Description: ...@@ -18,7 +21,11 @@ Description:
cables by integrated MOSFETs at the T+ and T- inputs, and the cables by integrated MOSFETs at the T+ and T- inputs, and the
BIAS output. These MOSFETs turn off when the input voltage is BIAS output. These MOSFETs turn off when the input voltage is
negative or greater than VDD. negative or greater than VDD.
Reading returns either '1' or '0'. Reading returns either '1' or '0'.
'1' = The input voltage is negative or greater than VDD.
'0' = The input voltage is positive and less than VDD (normal === =======================================================
state). '1' The input voltage is negative or greater than VDD.
'0' The input voltage is positive and less than VDD (normal
state).
=== =======================================================
...@@ -3,67 +3,85 @@ KernelVersion: 4.11 ...@@ -3,67 +3,85 @@ KernelVersion: 4.11
Contact: benjamin.gaignard@st.com Contact: benjamin.gaignard@st.com
Description: Description:
Reading returns the list possible master modes which are: Reading returns the list possible master modes which are:
- "reset" : The UG bit from the TIMx_EGR register is
- "reset"
The UG bit from the TIMx_EGR register is
used as trigger output (TRGO). used as trigger output (TRGO).
- "enable" : The Counter Enable signal CNT_EN is used - "enable"
The Counter Enable signal CNT_EN is used
as trigger output. as trigger output.
- "update" : The update event is selected as trigger output. - "update"
The update event is selected as trigger output.
For instance a master timer can then be used For instance a master timer can then be used
as a prescaler for a slave timer. as a prescaler for a slave timer.
- "compare_pulse" : The trigger output send a positive pulse - "compare_pulse"
when the CC1IF flag is to be set. The trigger output send a positive pulse
- "OC1REF" : OC1REF signal is used as trigger output. when the CC1IF flag is to be set.
- "OC2REF" : OC2REF signal is used as trigger output. - "OC1REF"
- "OC3REF" : OC3REF signal is used as trigger output. OC1REF signal is used as trigger output.
- "OC4REF" : OC4REF signal is used as trigger output. - "OC2REF"
OC2REF signal is used as trigger output.
- "OC3REF"
OC3REF signal is used as trigger output.
- "OC4REF"
OC4REF signal is used as trigger output.
Additional modes (on TRGO2 only): Additional modes (on TRGO2 only):
- "OC5REF" : OC5REF signal is used as trigger output.
- "OC6REF" : OC6REF signal is used as trigger output. - "OC5REF"
OC5REF signal is used as trigger output.
- "OC6REF"
OC6REF signal is used as trigger output.
- "compare_pulse_OC4REF": - "compare_pulse_OC4REF":
OC4REF rising or falling edges generate pulses. OC4REF rising or falling edges generate pulses.
- "compare_pulse_OC6REF": - "compare_pulse_OC6REF":
OC6REF rising or falling edges generate pulses. OC6REF rising or falling edges generate pulses.
- "compare_pulse_OC4REF_r_or_OC6REF_r": - "compare_pulse_OC4REF_r_or_OC6REF_r":
OC4REF or OC6REF rising edges generate pulses. OC4REF or OC6REF rising edges generate pulses.
- "compare_pulse_OC4REF_r_or_OC6REF_f": - "compare_pulse_OC4REF_r_or_OC6REF_f":
OC4REF rising or OC6REF falling edges generate pulses. OC4REF rising or OC6REF falling edges generate
pulses.
- "compare_pulse_OC5REF_r_or_OC6REF_r": - "compare_pulse_OC5REF_r_or_OC6REF_r":
OC5REF or OC6REF rising edges generate pulses. OC5REF or OC6REF rising edges generate pulses.
- "compare_pulse_OC5REF_r_or_OC6REF_f": - "compare_pulse_OC5REF_r_or_OC6REF_f":
OC5REF rising or OC6REF falling edges generate pulses. OC5REF rising or OC6REF falling edges generate
pulses.
+-----------+ +-------------+ +---------+
| Prescaler +-> | Counter | +-> | Master | TRGO(2) ::
+-----------+ +--+--------+-+ |-> | Control +-->
| | || +---------+ +-----------+ +-------------+ +---------+
+--v--------+-+ OCxREF || +---------+ | Prescaler +-> | Counter | +-> | Master | TRGO(2)
| Chx compare +----------> | Output | ChX +-----------+ +--+--------+-+ |-> | Control +-->
+-----------+-+ | | Control +--> | | || +---------+
. | | +---------+ +--v--------+-+ OCxREF || +---------+
. | | . | Chx compare +----------> | Output | ChX
+-----------v-+ OC6REF | . +-----------+-+ | | Control +-->
| Ch6 compare +---------+> . | | +---------+
+-------------+ . | | .
+-----------v-+ OC6REF | .
Example with: "compare_pulse_OC4REF_r_or_OC6REF_r": | Ch6 compare +---------+>
+-------------+
X
X X Example with: "compare_pulse_OC4REF_r_or_OC6REF_r"::
X . . X
X . . X X
X . . X X X
count X . . . . X X . . X
. . . . X . . X
. . . . X . . X
+---------------+ count X . . . . X
OC4REF | . . | . . . .
+-+ . . +-+ . . . .
. +---+ . +---------------+
OC6REF . | | . OC4REF | . . |
+-------+ +-------+ +-+ . . +-+
+-+ +-+ . +---+ .
TRGO2 | | | | OC6REF . | | .
+-+ +---+ +---------+ +-------+ +-------+
+-+ +-+
TRGO2 | | | |
+-+ +---+ +---------+
What: /sys/bus/iio/devices/triggerX/master_mode What: /sys/bus/iio/devices/triggerX/master_mode
KernelVersion: 4.11 KernelVersion: 4.11
...@@ -91,6 +109,30 @@ Description: ...@@ -91,6 +109,30 @@ Description:
When counting down the counter start from preset value When counting down the counter start from preset value
and fire event when reach 0. and fire event when reach 0.
What: /sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
KernelVersion: 4.12
Contact: benjamin.gaignard@st.com
Description:
Reading returns the list possible quadrature modes.
What: /sys/bus/iio/devices/iio:deviceX/in_count0_quadrature_mode
KernelVersion: 4.12
Contact: benjamin.gaignard@st.com
Description:
Configure the device counter quadrature modes:
channel_A:
Encoder A input servers as the count input and B as
the UP/DOWN direction control input.
channel_B:
Encoder B input serves as the count input and A as
the UP/DOWN direction control input.
quadrature:
Encoder A and B inputs are mixed to get direction
and count with a scale of 0.25.
What: /sys/bus/iio/devices/iio:deviceX/in_count_enable_mode_available What: /sys/bus/iio/devices/iio:deviceX/in_count_enable_mode_available
KernelVersion: 4.12 KernelVersion: 4.12
Contact: benjamin.gaignard@st.com Contact: benjamin.gaignard@st.com
...@@ -104,6 +146,7 @@ Description: ...@@ -104,6 +146,7 @@ Description:
Configure the device counter enable modes, in all case Configure the device counter enable modes, in all case
counting direction is set by in_count0_count_direction counting direction is set by in_count0_count_direction
attribute and the counter is clocked by the internal clock. attribute and the counter is clocked by the internal clock.
always: always:
Counter is always ON. Counter is always ON.
......
...@@ -10,10 +10,13 @@ Date: June 2015 ...@@ -10,10 +10,13 @@ Date: June 2015
KernelVersion: 4.3 KernelVersion: 4.3
Contact: Alexander Shishkin <alexander.shishkin@linux.intel.com> Contact: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Description: (RO) Output port type: Description: (RO) Output port type:
0: not present,
1: MSU (Memory Storage Unit) == =========================
2: CTP (Common Trace Port) 0 not present,
4: PTI (MIPI PTI). 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 What: /sys/bus/intel_th/devices/<intel_th_id>-gth/outputs/[0-7]_drop
Date: June 2015 Date: June 2015
......
...@@ -9,11 +9,13 @@ Date: June 2015 ...@@ -9,11 +9,13 @@ Date: June 2015
KernelVersion: 4.3 KernelVersion: 4.3
Contact: Alexander Shishkin <alexander.shishkin@linux.intel.com> Contact: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Description: (RW) Configure MSC operating mode: Description: (RW) Configure MSC operating mode:
- "single", for contiguous buffer mode (high-order alloc); - "single", for contiguous buffer mode (high-order alloc);
- "multi", for multiblock mode; - "multi", for multiblock mode;
- "ExI", for DCI handler mode; - "ExI", for DCI handler mode;
- "debug", for debug mode; - "debug", for debug mode;
- any of the currently loaded buffer sinks. - any of the currently loaded buffer sinks.
If operating mode changes, existing buffer is deallocated, If operating mode changes, existing buffer is deallocated,
provided there are no active users and tracing is not enabled, provided there are no active users and tracing is not enabled,
otherwise the write will fail. otherwise the write will fail.
...@@ -23,10 +25,12 @@ Date: June 2015 ...@@ -23,10 +25,12 @@ Date: June 2015
KernelVersion: 4.3 KernelVersion: 4.3
Contact: Alexander Shishkin <alexander.shishkin@linux.intel.com> Contact: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Description: (RW) Configure MSC buffer size for "single" or "multi" modes. Description: (RW) Configure MSC buffer size for "single" or "multi" modes.
In single mode, this is a single number of pages, has to be 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 power of 2. In multiblock mode, this is a comma-separated list
of numbers of pages for each window to be allocated. Number of of numbers of pages for each window to be allocated. Number of
windows is not limited. windows is not limited.
Writing to this file deallocates existing buffer (provided Writing to this file deallocates existing buffer (provided
there are no active users and tracing is not enabled) and then there are no active users and tracing is not enabled) and then
allocates a new one. allocates a new one.
......
...@@ -235,7 +235,8 @@ KernelVersion: 4.15 ...@@ -235,7 +235,8 @@ KernelVersion: 4.15
Contact: Christian Gromm <christian.gromm@microchip.com> Contact: Christian Gromm <christian.gromm@microchip.com>
Description: Description:
This is to read back the configured direction of the channel. This is to read back the configured direction of the channel.
The following strings will be accepted: The following strings will be accepted::
'tx', 'tx',
'rx' 'rx'
Users: Users:
...@@ -246,7 +247,8 @@ KernelVersion: 4.15 ...@@ -246,7 +247,8 @@ KernelVersion: 4.15
Contact: Christian Gromm <christian.gromm@microchip.com> Contact: Christian Gromm <christian.gromm@microchip.com>
Description: Description:
This is to read back the configured data type of the channel. This is to read back the configured data type of the channel.
The following strings will be accepted: The following strings will be accepted::
'control', 'control',
'async', 'async',
'sync', 'sync',
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment