2019-02-15 22:39:24 +00:00
|
|
|
What: /sys/kernel/debug/habanalabs/hl<n>/addr
|
|
|
|
Date: Jan 2019
|
|
|
|
KernelVersion: 5.1
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
Description: Sets the device address to be used for read or write through
|
2019-06-16 13:48:29 +00:00
|
|
|
PCI bar, or the device VA of a host mapped memory to be read or
|
|
|
|
written directly from the host. The latter option is allowed
|
|
|
|
only when the IOMMU is disabled.
|
|
|
|
The acceptable value is a string that starts with "0x"
|
2019-02-15 22:39:24 +00:00
|
|
|
|
2020-05-09 09:17:21 +00:00
|
|
|
What: /sys/kernel/debug/habanalabs/hl<n>/clk_gate
|
|
|
|
Date: May 2020
|
|
|
|
KernelVersion: 5.8
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2020-05-09 09:17:21 +00:00
|
|
|
Description: Allow the root user to disable/enable in runtime the clock
|
|
|
|
gating mechanism in Gaudi. Due to how Gaudi is built, the
|
|
|
|
clock gating needs to be disabled in order to access the
|
|
|
|
registers of the TPC and MME engines. This is sometimes needed
|
2020-07-03 17:46:12 +00:00
|
|
|
during debug by the user and hence the user needs this option.
|
|
|
|
The user can supply a bitmask value, each bit represents
|
|
|
|
a different engine to disable/enable its clock gating feature.
|
|
|
|
The bitmask is composed of 20 bits:
|
2020-10-30 07:40:50 +00:00
|
|
|
|
|
|
|
======= ============
|
|
|
|
0 - 7 DMA channels
|
|
|
|
8 - 11 MME engines
|
|
|
|
12 - 19 TPC engines
|
|
|
|
======= ============
|
|
|
|
|
2020-07-03 17:46:12 +00:00
|
|
|
The bit's location of a specific engine can be determined
|
|
|
|
using (1 << GAUDI_ENGINE_ID_*). GAUDI_ENGINE_ID_* values
|
|
|
|
are defined in uapi habanalabs.h file in enum gaudi_engine_id
|
2020-05-09 09:17:21 +00:00
|
|
|
|
2019-02-15 22:39:24 +00:00
|
|
|
What: /sys/kernel/debug/habanalabs/hl<n>/command_buffers
|
|
|
|
Date: Jan 2019
|
|
|
|
KernelVersion: 5.1
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2019-06-16 13:48:29 +00:00
|
|
|
transaction. This custom interface is needed (instead of using
|
2019-02-15 22:39:24 +00:00
|
|
|
the generic Linux user-space PCI mapping) because the DDR bar
|
2019-11-12 07:40:11 +00:00
|
|
|
is very small compared to the DDR memory and only the driver can
|
|
|
|
move the bar before and after the transaction.
|
2020-10-30 07:40:50 +00:00
|
|
|
|
2019-11-12 07:40:11 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
What: /sys/kernel/debug/habanalabs/hl<n>/data64
|
|
|
|
Date: Jan 2020
|
|
|
|
KernelVersion: 5.6
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-11-12 07:40:11 +00:00
|
|
|
Description: Allows the root user to read or write 64 bit data directly
|
|
|
|
through the device's PCI bar. Writing to this file generates a
|
|
|
|
write transaction while reading from the file generates a read
|
|
|
|
transaction. This custom interface is needed (instead of using
|
|
|
|
the generic Linux user-space PCI mapping) because the DDR bar
|
2019-02-15 22:39:24 +00:00
|
|
|
is very small compared to the DDR memory and only the driver can
|
2019-06-16 13:48:29 +00:00
|
|
|
move the bar before and after the transaction.
|
2020-10-30 07:40:50 +00:00
|
|
|
|
2019-06-16 13:48:29 +00:00
|
|
|
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
|
2019-02-15 22:39:24 +00:00
|
|
|
|
|
|
|
What: /sys/kernel/debug/habanalabs/hl<n>/device
|
|
|
|
Date: Jan 2019
|
|
|
|
KernelVersion: 5.1
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
|
|
|
|
2019-07-01 13:59:45 +00:00
|
|
|
What: /sys/kernel/debug/habanalabs/hl<n>/engines
|
|
|
|
Date: Jul 2019
|
|
|
|
KernelVersion: 5.3
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-07-01 13:59:45 +00:00
|
|
|
Description: Displays the status registers values of the device engines and
|
|
|
|
their derived idle status
|
|
|
|
|
2019-02-15 22:39:24 +00:00
|
|
|
What: /sys/kernel/debug/habanalabs/hl<n>/i2c_addr
|
|
|
|
Date: Jan 2019
|
|
|
|
KernelVersion: 5.1
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
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
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2019-02-15 22:39:24 +00:00
|
|
|
Description: Displays a list with information about all the active virtual
|
|
|
|
address mappings per ASID
|
2020-03-22 19:12:51 +00:00
|
|
|
|
|
|
|
What: /sys/kernel/debug/habanalabs/hl<n>/stop_on_err
|
|
|
|
Date: Mar 2020
|
|
|
|
KernelVersion: 5.6
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2020-03-22 19:12:51 +00:00
|
|
|
Description: Sets the stop-on_error option for the device engines. Value of
|
|
|
|
"0" is for disable, otherwise enable.
|
2021-01-07 10:14:17 +00:00
|
|
|
|
|
|
|
What: /sys/kernel/debug/habanalabs/hl<n>/dump_security_violations
|
|
|
|
Date: Jan 2021
|
|
|
|
KernelVersion: 5.12
|
2021-01-12 13:13:06 +00:00
|
|
|
Contact: ogabbay@kernel.org
|
2021-01-07 10:14:17 +00:00
|
|
|
Description: Dumps all security violations to dmesg. This will also ack
|
|
|
|
all security violations meanings those violations will not be
|
|
|
|
dumped next time user calls this API
|