-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branches 'feature/linux-hardened', 'feature/lockdown' and 'reve…
…rts' In this new major kernel version, we drop 'feature/stackleak' which was extending upstream's STACKLEAK with alloca() calls checking (7a94313 - "stackleak: reintroduce checking of alloca() calls"). The rationale described at that time was: - act as a failsafe, for instance if VLAs were to be inadvertently reintroduced: this should not happen now that -Wvla is used; - protect out-of-tree code: likewise, plus we control such code. Change-Id: I99b386055f97a1827d7b5461ffbf04604d062d7e Signed-off-by: Thibaut Sautereau <thibaut.sautereau@ssi.gouv.fr>
- Loading branch information
Showing
11,539 changed files
with
516,809 additions
and
272,369 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
What: /sys/class/dax/ | ||
Date: May, 2016 | ||
KernelVersion: v4.7 | ||
Contact: linux-nvdimm@lists.01.org | ||
Description: Device DAX is the device-centric analogue of Filesystem | ||
DAX (CONFIG_FS_DAX). It allows memory ranges to be | ||
allocated and mapped without need of an intervening file | ||
system. Device DAX is strict, precise and predictable. | ||
Specifically this interface: | ||
|
||
1/ Guarantees fault granularity with respect to a given | ||
page size (pte, pmd, or pud) set at configuration time. | ||
|
||
2/ Enforces deterministic behavior by being strict about | ||
what fault scenarios are supported. | ||
|
||
The /sys/class/dax/ interface enumerates all the | ||
device-dax instances in the system. The ABI is | ||
deprecated and will be removed after 2020. It is | ||
replaced with the DAX bus interface /sys/bus/dax/ where | ||
device-dax instances can be found under | ||
/sys/bus/dax/devices/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
What: /sys/kernel/debug/habanalabs/hl<n>/addr | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Sets the device address to be used for read or write through | ||
PCI bar. The acceptable value is a string that starts with "0x" | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/command_buffers | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Displays a list with information about the currently allocated | ||
command buffers | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/command_submission | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Displays a list with information about the currently active | ||
command submissions | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/command_submission_jobs | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Displays a list with detailed information about each JOB (CB) of | ||
each active command submission | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/data32 | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Allows the root user to read or write directly through the | ||
device's PCI bar. Writing to this file generates a write | ||
transaction while reading from the file generates a read | ||
transcation. This custom interface is needed (instead of using | ||
the generic Linux user-space PCI mapping) because the DDR bar | ||
is very small compared to the DDR memory and only the driver can | ||
move the bar before and after the transaction | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/device | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Enables the root user to set the device to specific state. | ||
Valid values are "disable", "enable", "suspend", "resume". | ||
User can read this property to see the valid values | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/i2c_addr | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Sets I2C device address for I2C transaction that is generated | ||
by the device's CPU | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/i2c_bus | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Sets I2C bus address for I2C transaction that is generated by | ||
the device's CPU | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/i2c_data | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Triggers an I2C transaction that is generated by the device's | ||
CPU. Writing to this file generates a write transaction while | ||
reading from the file generates a read transcation | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/i2c_reg | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Sets I2C register id for I2C transaction that is generated by | ||
the device's CPU | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/led0 | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Sets the state of the first S/W led on the device | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/led1 | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Sets the state of the second S/W led on the device | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/led2 | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Sets the state of the third S/W led on the device | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/mmu | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Displays the hop values and physical address for a given ASID | ||
and virtual address. The user should write the ASID and VA into | ||
the file and then read the file to get the result. | ||
e.g. to display info about VA 0x1000 for ASID 1 you need to do: | ||
echo "1 0x1000" > /sys/kernel/debug/habanalabs/hl0/mmu | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/set_power_state | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Sets the PCI power state. Valid values are "1" for D0 and "2" | ||
for D3Hot | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/userptr | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Displays a list with information about the currently user | ||
pointers (user virtual addresses) that are pinned and mapped | ||
to DMA addresses | ||
|
||
What: /sys/kernel/debug/habanalabs/hl<n>/vm | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: oded.gabbay@gmail.com | ||
Description: Displays a list with information about all the active virtual | ||
address mappings per ASID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
What: /sys/kernel/debug/wilco_ec/raw | ||
Date: January 2019 | ||
KernelVersion: 5.1 | ||
Description: | ||
Write and read raw mailbox commands to the EC. | ||
|
||
For writing: | ||
Bytes 0-1 indicate the message type: | ||
00 F0 = Execute Legacy Command | ||
00 F2 = Read/Write NVRAM Property | ||
Byte 2 provides the command code | ||
Bytes 3+ consist of the data passed in the request | ||
|
||
At least three bytes are required, for the msg type and command, | ||
with additional bytes optional for additional data. | ||
|
||
Example: | ||
// Request EC info type 3 (EC firmware build date) | ||
$ echo 00 f0 38 00 03 00 > raw | ||
// View the result. The decoded ASCII result "12/21/18" is | ||
// included after the raw hex. | ||
$ cat raw | ||
00 31 32 2f 32 31 2f 31 38 00 38 00 01 00 2f 00 .12/21/18.8... |
Oops, something went wrong.